parset.h
资源名称:chapter15.rar [点击查看]
上传用户:hjq518
上传日期:2021-12-09
资源大小:5084k
文件大小:2k
源码类别:
Audio
开发平台:
Visual C++
- /*!
- **************************************************************************************
- * file
- * parset.h
- * brief
- * Picture and Sequence Parameter Sets, encoder operations
- *
- * date 25 November 2002
- * author
- * Main contributors (see contributors.h for copyright, address and affiliation details)
- * - Stephan Wenger <stewe@cs.tu-berlin.de>
- ***************************************************************************************
- */
- #ifndef _PARSET_H_
- #define _PARSET_H_
- #include "parsetcommon.h"
- #include "nalu.h"
- #include "sei.h"
- void GenerateParameterSets (void);
- void FreeParameterSets (void);
- NALU_t *GenerateSeq_parameter_set_NALU (void);
- NALU_t *GeneratePic_parameter_set_NALU (int);
- NALU_t *GenerateSEImessage_NALU();
- // The following are local helpers, but may come handy in the future, hence public
- void GenerateSequenceParameterSet(seq_parameter_set_rbsp_t *sps, int SPS_id);
- void GeneratePictureParameterSet( pic_parameter_set_rbsp_t *pps, seq_parameter_set_rbsp_t *sps, int PPS_id,
- int WeightedPrediction, int WeightedBiprediction,
- int cb_qp_index_offset, int cr_qp_index_offset);
- int Scaling_List(short *scalingListinput, short *scalingList, int sizeOfScalingList, short *UseDefaultScalingMatrix, Bitstream *bitstream);
- int GenerateSeq_parameter_set_rbsp (seq_parameter_set_rbsp_t *sps, byte *buf);
- int GeneratePic_parameter_set_rbsp (pic_parameter_set_rbsp_t *pps, byte *buf);
- int GenerateSEImessage_rbsp (int id, byte *buf);
- void FreeSPS (seq_parameter_set_rbsp_t *sps);
- void FreePPS (pic_parameter_set_rbsp_t *pps);
- int WriteHRDParameters(seq_parameter_set_rbsp_t *sps, Bitstream *bitstream);
- void GenerateVUIParameters(seq_parameter_set_rbsp_t *sps);
- pic_parameter_set_rbsp_t *AllocPPS (void);
- seq_parameter_set_rbsp_t *AllocSPS (void);
- #endif