quantize.h

来自「一个可以在DM642上运新的h.264算法」· C头文件 代码 · 共 50 行

H
50
字号
/*	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 + =
减小字号Ctrl + -
显示快捷键?