1 /****************************************************************************** 2 * 3 * Copyright (C) 2022 The Android Open Source Project 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at: 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 * 17 ***************************************************************************** 18 * Originally developed and contributed by Ittiam Systems Pvt. Ltd, Bangalore 19 */ 20 /** 21 ******************************************************************************* 22 * @file 23 * isvcd_utils.h 24 * 25 * @brief 26 * Contains declaration of routines that handle of start and end of 27 * pic processing 28 * 29 * @author 30 * Kishore 31 * 32 * @remarks 33 * None 34 * 35 ******************************************************************************* 36 */ 37 38 #ifndef _ISVCD_UTILS_H_ 39 #define _ISVCD_UTILS_H_ 40 41 #include "ih264d_defs.h" 42 #include "ih264_typedefs.h" 43 #include "ih264_macros.h" 44 #include "ih264_platform_macros.h" 45 #include "isvcd_structs.h" 46 #include "ih264d_parse_cavlc.h" 47 48 WORD16 isvcd_allocate_dynamic_bufs(svc_dec_lyr_struct_t *ps_svc_lyr_dec); 49 50 WORD16 isvcd_free_dynamic_bufs(svc_dec_lyr_struct_t *ps_svc_lyr_dec); 51 52 WORD32 isvcd_init_pic(svc_dec_lyr_struct_t *ps_svc_lyr_dec, UWORD16 u2_frame_num, WORD32 i4_poc, 53 dec_pic_params_t *ps_pps); 54 55 WORD32 isvcd_decode_gaps_in_frame_num(dec_struct_t *ps_dec, UWORD16 u2_frame_num); 56 57 WORD32 isvcd_decode_pic_order_cnt( 58 UWORD8 u1_is_idr_slice, UWORD32 u2_frame_num, pocstruct_t *ps_prev_poc, pocstruct_t *ps_cur_poc, 59 dec_slice_params_t *ps_cur_slice, /*!< Pointer to current slice Params*/ 60 dec_pic_params_t *ps_pps, UWORD8 u1_nal_ref_idc, UWORD8 u1_bottom_field_flag, 61 UWORD8 u1_field_pic_flag, WORD32 *pi4_poc, dec_struct_t *ps_dec); 62 63 #endif /*_ISVCD_UTILS_H_*/