1*c83a76b0SSuyog Pawar /****************************************************************************** 2*c83a76b0SSuyog Pawar * 3*c83a76b0SSuyog Pawar * Copyright (C) 2012 Ittiam Systems Pvt Ltd, Bangalore 4*c83a76b0SSuyog Pawar * 5*c83a76b0SSuyog Pawar * Licensed under the Apache License, Version 2.0 (the "License"); 6*c83a76b0SSuyog Pawar * you may not use this file except in compliance with the License. 7*c83a76b0SSuyog Pawar * You may obtain a copy of the License at: 8*c83a76b0SSuyog Pawar * 9*c83a76b0SSuyog Pawar * http://www.apache.org/licenses/LICENSE-2.0 10*c83a76b0SSuyog Pawar * 11*c83a76b0SSuyog Pawar * Unless required by applicable law or agreed to in writing, software 12*c83a76b0SSuyog Pawar * distributed under the License is distributed on an "AS IS" BASIS, 13*c83a76b0SSuyog Pawar * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14*c83a76b0SSuyog Pawar * See the License for the specific language governing permissions and 15*c83a76b0SSuyog Pawar * limitations under the License. 16*c83a76b0SSuyog Pawar * 17*c83a76b0SSuyog Pawar ******************************************************************************/ 18*c83a76b0SSuyog Pawar /** 19*c83a76b0SSuyog Pawar ******************************************************************************* 20*c83a76b0SSuyog Pawar * @file 21*c83a76b0SSuyog Pawar * ihevcd_parse_slice.h 22*c83a76b0SSuyog Pawar * 23*c83a76b0SSuyog Pawar * @brief 24*c83a76b0SSuyog Pawar * Contains miscellaneous utility functions such as init() etc 25*c83a76b0SSuyog Pawar * 26*c83a76b0SSuyog Pawar * @author 27*c83a76b0SSuyog Pawar * Harish 28*c83a76b0SSuyog Pawar * 29*c83a76b0SSuyog Pawar * @par List of Functions: 30*c83a76b0SSuyog Pawar * 31*c83a76b0SSuyog Pawar * @remarks 32*c83a76b0SSuyog Pawar * None 33*c83a76b0SSuyog Pawar * 34*c83a76b0SSuyog Pawar ******************************************************************************* 35*c83a76b0SSuyog Pawar */ 36*c83a76b0SSuyog Pawar 37*c83a76b0SSuyog Pawar #ifndef _IHEVCD_UTILS_H_ 38*c83a76b0SSuyog Pawar #define _IHEVCD_UTILS_H_ 39*c83a76b0SSuyog Pawar 40*c83a76b0SSuyog Pawar WORD32 ihevcd_get_lvl_idx(WORD32 level); 41*c83a76b0SSuyog Pawar WORD32 ihevcd_get_dpb_size(WORD32 level, WORD32 pic_size); 42*c83a76b0SSuyog Pawar WORD32 ihevcd_get_pic_mv_bank_size(WORD32 num_luma_samples); 43*c83a76b0SSuyog Pawar WORD32 ihevcd_get_tu_data_size(WORD32 num_luma_samples); 44*c83a76b0SSuyog Pawar WORD32 ihevcd_nctb_cnt(codec_t *ps_codec, sps_t *ps_sps); 45*c83a76b0SSuyog Pawar WORD32 ihevcd_get_max_luma_samples(WORD32 level); 46*c83a76b0SSuyog Pawar IHEVCD_ERROR_T ihevcd_get_tile_pos(pps_t *ps_pps, 47*c83a76b0SSuyog Pawar sps_t *ps_sps, 48*c83a76b0SSuyog Pawar WORD32 ctb_x, 49*c83a76b0SSuyog Pawar WORD32 ctb_y, 50*c83a76b0SSuyog Pawar WORD32 *pi4_ctb_tile_x, 51*c83a76b0SSuyog Pawar WORD32 *pi4_ctb_tile_y, 52*c83a76b0SSuyog Pawar WORD32 *pi4_tile_idx); 53*c83a76b0SSuyog Pawar IHEVCD_ERROR_T ihevcd_parse_pic_init(codec_t *ps_codec); 54*c83a76b0SSuyog Pawar WORD32 ihevcd_get_total_pic_buf_size(codec_t *ps_codec, 55*c83a76b0SSuyog Pawar WORD32 wd, 56*c83a76b0SSuyog Pawar WORD32 ht); 57*c83a76b0SSuyog Pawar #endif /* _IHEVCD_UTILS_H_ */ 58