GPAC
Open Source Multimedia Framework. For more information, check out http://gpac.wp.mines-telecom.fr
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
quant_matrix.cpp File Reference
#include "quant_matrix.h"
+ Include dependency graph for quant_matrix.cpp:

Macros

#define FIX(X)   (((X)==1) ? 0xFFFF : ((1UL << 16) / (X) + 1))
 
#define FIXL(X)   ((1UL << 16) / (X) - 1)
 

Functions

const byteget_default_intra_matrix ()
 
const byteget_default_inter_matrix ()
 
void set_intra_matrix (dword *mpeg_quant_matrices, const byte *matrix)
 
void set_inter_matrix (dword *mpeg_quant_matrices, const byte *matrix)
 
void init_mpeg_matrix (dword *mpeg_quant_matrices)
 

Variables

static const byte default_intra_matrix [64]
 
static const byte default_inter_matrix [64]
 

Macro Definition Documentation

#define FIX (   X)    (((X)==1) ? 0xFFFF : ((1UL << 16) / (X) + 1))
#define FIXL (   X)    ((1UL << 16) / (X) - 1)

Function Documentation

const byte* get_default_intra_matrix ( void  )

+ Here is the caller graph for this function:

const byte* get_default_inter_matrix ( void  )

+ Here is the caller graph for this function:

void set_intra_matrix ( dword mpeg_quant_matrices,
const byte matrix 
)

+ Here is the caller graph for this function:

void set_inter_matrix ( dword mpeg_quant_matrices,
const byte matrix 
)

+ Here is the caller graph for this function:

void init_mpeg_matrix ( dword mpeg_quant_matrices)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

const byte default_intra_matrix[64]
static
Initial value:
= {
8, 17, 18, 19, 21, 23, 25, 27,
17, 18, 19, 21, 23, 25, 27, 28,
20, 21, 22, 23, 24, 26, 28, 30,
21, 22, 23, 24, 26, 28, 30, 32,
22, 23, 24, 26, 28, 30, 32, 35,
23, 24, 26, 28, 30, 32, 35, 38,
25, 26, 28, 30, 32, 35, 38, 41,
27, 28, 30, 32, 35, 38, 41, 45
}
const byte default_inter_matrix[64]
static
Initial value:
= {
16, 17, 18, 19, 20, 21, 22, 23,
17, 18, 19, 20, 21, 22, 23, 24,
18, 19, 20, 21, 22, 23, 24, 25,
19, 20, 21, 22, 23, 24, 26, 27,
20, 21, 22, 23, 25, 26, 27, 28,
21, 22, 23, 24, 26, 27, 28, 30,
22, 23, 24, 26, 27, 28, 30, 31,
23, 24, 25, 27, 28, 30, 31, 33
}