00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef _PARSET_H_
00018 #define _PARSET_H_
00019
00020 #include "parsetcommon.h"
00021 #include "nalu.h"
00022 #include "sei.h"
00023
00024 extern void GenerateParameterSets (ImageParameters *p_Img, InputParameters *p_Inp);
00025 extern void FreeParameterSets (ImageParameters *p_Img);
00026
00027 extern NALU_t *GenerateSeq_parameter_set_NALU (ImageParameters *p_Img);
00028 extern NALU_t *GeneratePic_parameter_set_NALU (ImageParameters *p_Img, InputParameters *p_Inp, int);
00029 extern NALU_t *GenerateSEImessage_NALU(InputParameters *p_Inp);
00030
00031
00032 extern void GenerateSequenceParameterSet(seq_parameter_set_rbsp_t *sps, ImageParameters *p_Img, InputParameters *p_Inp, int SPS_id);
00033 extern void GeneratePictureParameterSet( pic_parameter_set_rbsp_t *pps, seq_parameter_set_rbsp_t *sps,
00034 ImageParameters *p_Img,
00035 InputParameters *p_Inp, int PPS_id,
00036 int WeightedPrediction, int WeightedBiprediction,
00037 int cb_qp_index_offset, int cr_qp_index_offset);
00038
00039 extern int Scaling_List(short *scalingListinput, short *scalingList, int sizeOfScalingList, short *UseDefaultScalingMatrix, Bitstream *bitstream);
00040 extern int GenerateSeq_parameter_set_rbsp (ImageParameters *p_Img, seq_parameter_set_rbsp_t *sps, byte *buf);
00041 extern int GeneratePic_parameter_set_rbsp (ImageParameters *p_Img, InputParameters *p_Inp, pic_parameter_set_rbsp_t *pps, byte *buf);
00042 extern int GenerateSEImessage_rbsp (InputParameters *p_Inp, int id, byte *buf);
00043 extern void FreeSPS (seq_parameter_set_rbsp_t *sps);
00044 extern void FreePPS (pic_parameter_set_rbsp_t *pps);
00045
00046 extern int WriteHRDParameters(seq_parameter_set_rbsp_t *sps, Bitstream *bitstream);
00047 extern void GenerateVUIParameters(seq_parameter_set_rbsp_t *sps, InputParameters *p_Inp);
00048
00049 extern pic_parameter_set_rbsp_t *AllocPPS (void);
00050 extern seq_parameter_set_rbsp_t *AllocSPS (void);
00051
00052
00053 #endif