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_vui.h 24 * 25 * @brief 26 * This file contains routines to parse SEI NAL's 27 * 28 * @author 29 * Kishore 30 * 31 * @remarks 32 * None 33 * 34 ******************************************************************************* 35 */ 36 37 #ifndef _ISVCD_VUI_H_ 38 #define _ISVCD_VUI_H_ 39 40 #include "ih264_typedefs.h" 41 #include "ih264_macros.h" 42 #include "ih264_platform_macros.h" 43 #include "ih264d_bitstrm.h" 44 45 #define MAX_VUI_EXT_NUM_ENTRIES 1024 46 47 typedef struct 48 { 49 UWORD32 u4_vui_ext_num_entries_minus1; 50 UWORD8 u1_vui_ext_dependency_id[MAX_VUI_EXT_NUM_ENTRIES]; 51 UWORD8 u1_vui_ext_quality_id[MAX_VUI_EXT_NUM_ENTRIES]; 52 UWORD8 u1_vui_ext_temporal_id[MAX_VUI_EXT_NUM_ENTRIES]; 53 UWORD8 u1_vui_ext_timing_info_present_flag[MAX_VUI_EXT_NUM_ENTRIES]; 54 UWORD32 u4_vui_ext_num_units_in_tick[MAX_VUI_EXT_NUM_ENTRIES]; 55 UWORD32 u4_vui_ext_time_scale[MAX_VUI_EXT_NUM_ENTRIES]; 56 UWORD8 u1_vui_ext_fixed_frame_rate_flag[MAX_VUI_EXT_NUM_ENTRIES]; 57 UWORD8 u1_vui_ext_nal_hrd_params_present_flag[MAX_VUI_EXT_NUM_ENTRIES]; 58 hrd_t s_nal_hrd[MAX_VUI_EXT_NUM_ENTRIES]; 59 UWORD8 u1_vui_ext_vcl_hrd_params_present_flag[MAX_VUI_EXT_NUM_ENTRIES]; 60 hrd_t s_vcl_hrd[MAX_VUI_EXT_NUM_ENTRIES]; 61 UWORD8 u1_vui_ext_low_delay_hrd_flag[MAX_VUI_EXT_NUM_ENTRIES]; 62 UWORD8 u1_vui_ext_pic_struct_present_flag[MAX_VUI_EXT_NUM_ENTRIES]; 63 } svc_vui_ext_t; 64 65 WORD32 isvcd_parse_vui_ext_parametres(svc_vui_ext_t *ps_svc_vui_ext, dec_bit_stream_t *ps_bitstrm); 66 67 #endif /*_ISVCD_VUI_H_ */ 68