quant.h
来自「H.264基于baseline解码器的C++实现源码」· C头文件 代码 · 共 52 行
H
52 行
/*!
************************************************************************
* \file quant.h
*
* \brief
* definitions for quantization functions
*
* \author
*
************************************************************************
*/
#ifndef _QUANT_H_
#define _QUANT_H_
// Macro defines
#define Q_BITS 15
#define DQ_BITS 6
#define Q_BITS_8 16
#define DQ_BITS_8 6
// exported variables
extern const int dequant_coef[6][4][4];
extern const int quant_coef[6][4][4];
extern int InvLevelScale4x4_Intra[3][6][4][4];
extern int InvLevelScale4x4_Inter[3][6][4][4];
extern int InvLevelScale8x8_Intra[3][6][8][8];
extern int InvLevelScale8x8_Inter[3][6][8][8];
extern int *qmatrix[12];
// SP decoding parameter (EQ. 8-425)
extern const int A[4][4];
extern int *qp_per_matrix;
extern int *qp_rem_matrix;
// exported functions
// quantization initialization
void init_qp_process(ImageParameters *img);
void free_qp_matrices(void);
// For Q-matrix
void AssignQuantParam(pic_parameter_set_rbsp_t* pps, seq_parameter_set_rbsp_t* sps);
void CalculateQuantParam(void);
void CalculateQuant8Param(void);
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?