iq_dmem.h 1.83 KB
 #
 # iq_dmem.h
 # 
 # This file lays out DMEM usage for the RSP inverse quantization task.
 #

/* IQ_CONST_BASE:	 */

	#################################
	#	IQ Constants		#
	#	(16 bytes)		#
	#################################

  
#define	IQ_CONSTS	0
		
	.half	1		/* SCALE1	*/
	.half	2		/* SCALE2	*/
	.half	0xfffe		/* MASK		*/
	.half	-2047		/* IQ_MIN	*/
	.half	2048		/* IQ_MAX	*/
	.half	0		/* QUANT	*/
	.half	0x1000		/* SHIFT_R	*/
	.half	8		/* SHIFT_L	*/


	
/* default 8x8 intra QMAT */

#define	INTRA_QMAT	16
	
	.half	8
	.half	16
	.half	19
	.half	22
	.half	26
	.half	27
	.half	29
	.half	34
	
	.half	16
	.half	16
	.half	22
	.half	24
	.half	27
	.half	29
	.half	34
	.half	37

	.half	19
	.half	22
	.half	26
	.half	27
	.half	29
	.half	34
	.half	34
	.half	38
	
	.half	22
	.half	22
	.half	26
	.half	27
	.half	29
	.half	34
	.half	37
	.half	40
    
	.half	22
	.half	26
	.half	27
	.half	29
	.half	32
	.half	35
	.half	40
	.half	48
	
	.half	26
	.half	27
	.half	29
	.half	32
	.half	35
	.half	40
	.half	48
	.half	58

	.half	26
	.half	27
	.half	29
	.half	34
	.half	38
	.half	46
	.half	56
	.half	69

	.half	27
	.half	29
	.half	35
	.half	38
	.half	46
	.half	56
	.half	69
	.half	83

	
/* default 8x8 non-intra QMAT */

#define	NONI_QMAT	144
	
	.half	16
	.half	16
	.half	16
	.half	16
	.half	16
	.half	16
	.half	16
	.half	16

	.half	16
	.half	16
	.half	16
	.half	16
	.half	16
	.half	16
	.half	16
	.half	16

	.half	16
	.half	16
	.half	16
	.half	16
	.half	16
	.half	16
	.half	16
	.half	16

	.half	16
	.half	16
	.half	16
	.half	16
	.half	16
	.half	16
	.half	16
	.half	16

	.half	16
	.half	16
	.half	16
	.half	16
	.half	16
	.half	16
	.half	16
	.half	16

	.half	16
	.half	16
	.half	16
	.half	16
	.half	16
	.half	16
	.half	16
	.half	16

	.half	16
	.half	16
	.half	16
	.half	16
	.half	16
	.half	16
	.half	16
	.half	16

	.half	16
	.half	16
	.half	16
	.half	16
	.half	16
	.half	16
	.half	16
	.half	16