quant.c File Reference

Quantization functions. More...

#include "contributors.h"
#include "global.h"
#include "memalloc.h"
#include "block.h"
#include "image.h"
#include "mb_access.h"
#include "transform.h"
#include "quant.h"

Include dependency graph for quant.c:

Go to the source code of this file.

Functions

void init_qp_process (ImageParameters *p_Img)
void free_qp_matrices (ImageParameters *p_Img)
void assign_quant_params (Slice *currSlice, pic_parameter_set_rbsp_t *pps, seq_parameter_set_rbsp_t *sps)
void CalculateQuant4x4Param (Slice *currSlice)
void CalculateQuant8x8Param (Slice *currSlice)

Variables

int quant_intra_default [16]
int quant_inter_default [16]
int quant8_intra_default [64]
int quant8_inter_default [64]
int quant_org [16]
int quant8_org [64]


Detailed Description

Quantization functions.

quant.c

Author:
Main contributors (see contributors.h for copyright, address and affiliation details)

Definition in file quant.c.


Function Documentation

void assign_quant_params ( Slice currSlice,
pic_parameter_set_rbsp_t *  pps,
seq_parameter_set_rbsp_t *  sps 
)

For mapping the q-matrix to the active id and calculate quantisation values.

Parameters:
currSlice Slice pointer
pps Picture parameter set
sps Sequence parameter set

Definition at line 137 of file quant.c.

References CalculateQuant4x4Param(), CalculateQuant8x8Param(), and YUV444.

Referenced by read_new_slice().

Here is the call graph for this function:

void CalculateQuant4x4Param ( Slice currSlice  ) 

For calculating the quantisation values at frame level.

Definition at line 265 of file quant.c.

References dequant_coef.

Referenced by assign_quant_params().

void CalculateQuant8x8Param ( Slice currSlice  ) 

Calculate the quantisation and inverse quantisation parameters.

Definition at line 295 of file quant.c.

Referenced by assign_quant_params().

void init_qp_process ( ImageParameters *  p_Img  ) 

Initiate quantization process arrays.

Definition at line 86 of file quant.c.

References no_mem_exit().

Referenced by init_global_buffers().

Here is the call graph for this function:


Variable Documentation

int quant8_inter_default[64]

Initial value:

 {
 9,13,15,17,19,21,22,24,
13,13,17,19,21,22,24,25,
15,17,19,21,22,24,25,27,
17,19,21,22,24,25,27,28,
19,21,22,24,25,27,28,30,
21,22,24,25,27,28,30,32,
22,24,25,27,28,30,32,33,
24,25,27,28,30,32,33,35
}

Definition at line 51 of file quant.c.

int quant8_intra_default[64]

Initial value:

 {
 6,10,13,16,18,23,25,27,
10,11,16,18,23,25,27,29,
13,16,18,23,25,27,29,31,
16,18,23,25,27,29,31,33,
18,23,25,27,29,31,33,36,
23,25,27,29,31,33,36,38,
25,27,29,31,33,36,38,40,
27,29,31,33,36,38,40,42
}

Definition at line 40 of file quant.c.

int quant8_org[64]

Initial value:

 { 
16,16,16,16,16,16,16,16,
16,16,16,16,16,16,16,16,
16,16,16,16,16,16,16,16,
16,16,16,16,16,16,16,16,
16,16,16,16,16,16,16,16,
16,16,16,16,16,16,16,16,
16,16,16,16,16,16,16,16,
16,16,16,16,16,16,16,16
}

Definition at line 69 of file quant.c.

int quant_inter_default[16]

Initial value:

 {
  10,14,20,24,
  14,20,24,27,
  20,24,27,30,
  24,27,30,34
}

Definition at line 33 of file quant.c.

int quant_intra_default[16]

Initial value:

 {
   6,13,20,28,
  13,20,28,32,
  20,28,32,37,
  28,32,37,42
}

Definition at line 26 of file quant.c.

int quant_org[16]

Initial value:

 { 
16,16,16,16,
16,16,16,16,
16,16,16,16,
16,16,16,16
}

Definition at line 62 of file quant.c.


Documentation generated with DoxyGen