📄 quantize.h
字号:
/* Open H.264
*
* #include <standard_disclaimer>
*
* Authors: aitorgaray@yifan.net
* _
*/
#if !defined( __QUANTIZE_H)
#define __QUANTIZE_H
#include "../Common.h" // #include "common/Common.h"
#include "../Block.h"
#include "../Lumamacroblock.h"
class Quantize {
protected:
static const int _quant_coeff[ 6][ 4][ 4];
static const int _qp_scale_cr[ 52];
static const int _Q_BITS; // = 15
public:
void doQuantization( LumaMacroblock& sourceMacroblock, LumaMacroblock& targetMacroblock, int qp, bool intra, bool chroma);
public:
virtual void do4x4Quantization( Block& sourceBlock, Block& targetBlock, int qp, bool intra, bool chroma) = 0;
/* *toDO*
public int[][] do4x4InverseTransform( int[][] source) {
public int[][] do4x4Quantization( int[][] source, int qp, boolean intra, boolean chroma) {
public int[][] do4x4DCLumaQuantization( int[][] source, int qp, boolean intra) {
public int[][] do4x4DCLumaInverseQuantization( int[][] source, int qp) {
public int[][] do2x2DCChromaInverseQuantization( int[][] source, int qp) {
public int[][] do2x2DCChromaInverseTransform( int[][] source) {
*/
};
#endif
/* $Log:$
*
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -