00001 00017 #ifndef _PARSET_H_ 00018 #define _PARSET_H_ 00019 00020 #include "parsetcommon.h" 00021 #include "nalucommon.h" 00022 00023 static const byte ZZ_SCAN[16] = 00024 { 0, 1, 4, 8, 5, 2, 3, 6, 9, 12, 13, 10, 7, 11, 14, 15 00025 }; 00026 00027 static const byte ZZ_SCAN8[64] = 00028 { 0, 1, 8, 16, 9, 2, 3, 10, 17, 24, 32, 25, 18, 11, 4, 5, 00029 12, 19, 26, 33, 40, 48, 41, 34, 27, 20, 13, 6, 7, 14, 21, 28, 00030 35, 42, 49, 56, 57, 50, 43, 36, 29, 22, 15, 23, 30, 37, 44, 51, 00031 58, 59, 52, 45, 38, 31, 39, 46, 53, 60, 61, 54, 47, 55, 62, 63 00032 }; 00033 00034 extern void Scaling_List(int *scalingList, int sizeOfScalingList, Boolean *UseDefaultScalingMatrix, Bitstream *s); 00035 00036 extern void InitVUI(seq_parameter_set_rbsp_t *sps); 00037 extern int ReadVUI(DataPartition *p, seq_parameter_set_rbsp_t *sps); 00038 extern int ReadHRDParameters(DataPartition *p, hrd_parameters_t *hrd); 00039 00040 extern void PPSConsistencyCheck (pic_parameter_set_rbsp_t *pps); 00041 extern void SPSConsistencyCheck (seq_parameter_set_rbsp_t *sps); 00042 00043 extern void MakePPSavailable (ImageParameters *p_Img, int id, pic_parameter_set_rbsp_t *pps); 00044 extern void MakeSPSavailable (ImageParameters *p_Img, int id, seq_parameter_set_rbsp_t *sps); 00045 00046 extern void ProcessSPS (ImageParameters *p_Img, NALU_t *nalu); 00047 extern void ProcessPPS (ImageParameters *p_Img, NALU_t *nalu); 00048 00049 extern void UseParameterSet (Slice *currSlice, int PicParsetId); 00050 00051 extern void CleanUpPPS(ImageParameters *p_Img); 00052 00053 extern void activate_sps (ImageParameters *p_Img, seq_parameter_set_rbsp_t *sps); 00054 extern void activate_pps (ImageParameters *p_Img, pic_parameter_set_rbsp_t *pps); 00055 00056 #endif