1 /*!
2  ***************************************************************************
3  * \file
4  *    quant_params.h
5  *
6  * \author
7  *    Alexis Michael Tourapis
8  *
9  * \brief
10  *    Headerfile for Quantization parameters
11  **************************************************************************
12  */
13 
14 #ifndef _QUANT_PARAMS_H_
15 #define _QUANT_PARAMS_H_
16 
17 typedef struct level_quant_params {
18   int   OffsetComp;
19   int    ScaleComp;
20   int InvScaleComp;
21 } LevelQuantParams;
22 
23 typedef struct quant_params {
24   int AdaptRndWeight;
25   int AdaptRndCrWeight;
26 
27   LevelQuantParams *****q_params_4x4;
28   LevelQuantParams *****q_params_8x8;
29 
30   int *qp_per_matrix;
31   int *qp_rem_matrix;
32 
33   short **OffsetList4x4input;
34   short **OffsetList8x8input;
35   short ***OffsetList4x4;
36   short ***OffsetList8x8;
37 } QuantParameters;
38 
39 typedef struct quant_methods {
40   int   block_y;
41   int   block_x;
42   int   qp;
43   int*  ACLevel;
44   int*  ACRun;
45   int **fadjust;
46   LevelQuantParams **q_params;
47   int *coeff_cost;
48   const byte (*pos_scan)[2];
49   const byte *c_cost;
50   char type;
51 } QuantMethods;
52 
53 #endif
54 
55