Home | History | Annotate | Download | only in decoder
      1 /******************************************************************************
      2  *
      3  * Copyright (C) 2015 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 /*                                                                           */
     23 /*  File Name         : ih264d_sei.h                                                */
     24 /*                                                                           */
     25 /*  Description       : This file contains routines to parse SEI NAL's       */
     26 /*                                                                           */
     27 /*  List of Functions : <List the functions defined in this file>            */
     28 /*                                                                           */
     29 /*  Issues / Problems : None                                                 */
     30 /*                                                                           */
     31 /*  Revision History  :                                                      */
     32 /*                                                                           */
     33 /*         DD MM YYYY   Author(s)       Changes (Describe the changes made)  */
     34 /*         25 05 2005   NS              Draft                                */
     35 /*                                                                           */
     36 /*****************************************************************************/
     37 
     38 #ifndef _IH264D_SEI_H_
     39 #define _IH264D_SEI_H_
     40 
     41 #include "ih264_typedefs.h"
     42 #include "ih264_macros.h"
     43 #include "ih264_platform_macros.h"
     44 #include "ih264d_bitstrm.h"
     45 #include "ih264d_structs.h"
     46 
     47 #define SEI_BUF_PERIOD      0
     48 #define SEI_PIC_TIMING      1
     49 #define SEI_PAN_SCAN_RECT   2
     50 #define SEI_FILLER          3
     51 #define SEI_UD_REG_T35      4
     52 #define SEI_UD_UN_REG       5
     53 #define SEI_RECOVERY_PT     6
     54 #define SEI_DEC_REF_MARK    7
     55 #define SEI_SPARE_PIC       8
     56 #define SEI_SCENE_INFO      9
     57 #define SEI_SUB_SEQN_INFO   10
     58 #define SEI_SUB_SEQN_LAY_CHAR       11
     59 #define SEI_SUB_SEQN_CHAR   12
     60 #define SEI_FULL_FRAME_FREEZE       13
     61 #define SEI_FULL_FRAME_FREEZE_REL   14
     62 #define SEI_FULL_FRAME_SNAP_SHOT    15
     63 #define SEI_PROG_REF_SEGMENT_START  16
     64 #define SEI_PROG_REF_SEGMENT_END    17
     65 #define SEI_MOT_CON_SLICE_GRP_SET   18
     66 /* Declaration of dec_struct_t to avoid CCS compilation Error */
     67 struct _DecStruct;
     68 WORD32 ih264d_parse_sei_message(struct _DecStruct *ps_dec,
     69                                 dec_bit_stream_t *ps_bitstrm);
     70 typedef struct
     71 {
     72     UWORD8 u1_seq_parameter_set_id;
     73     UWORD32 u4_initial_cpb_removal_delay;
     74     UWORD32 u4_nitial_cpb_removal_delay_offset;
     75 
     76 } buf_period_t;
     77 
     78 struct _sei
     79 {
     80     UWORD8 u1_seq_param_set_id;
     81     buf_period_t s_buf_period;
     82     UWORD8 u1_pic_struct;
     83     UWORD16 u2_recovery_frame_cnt;
     84     UWORD8 u1_exact_match_flag;
     85     UWORD8 u1_broken_link_flag;
     86     UWORD8 u1_changing_slice_grp_idc;
     87     UWORD8 u1_is_valid;
     88 };
     89 typedef struct _sei sei;
     90 #endif /* _IH264D_SEI_H_ */
     91 
     92