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
mbprediction.cpp File Reference
#include "global.h"
#include "mbprediction.h"
+ Include dependency graph for mbprediction.cpp:

Macros

#define RET_DIV(a, N)   return (a*N+32768) >> 16;
 
#define RET_SHR(a, N, S)   return (a+N) >> S;
 

Functions

static int Divide (int a, int b)
 
int rescale (int predict_quant, int current_quant, int coeff)
 
void predict_acdc (MACROBLOCK *pMBs, dword x, dword y, dword mb_width, dword block, int qcoeff[64], dword current_quant, int iDcScaler, int predictors[8], int bound)
 
void add_acdc (MACROBLOCK *pMB, dword block, int dct_codes[64], dword iDcScaler, int predictors[8])
 
VECTOR get_pmv2 (const MACROBLOCK *const mbs, const int mb_width, const int bound, const int x, const int y, const int block)
 

Variables

static const int default_acdc_values [15]
 
static const VECTOR zeroMV = { 0, 0 }
 

Macro Definition Documentation

#define RET_DIV (   a,
  N 
)    return (a*N+32768) >> 16;
#define RET_SHR (   a,
  N,
  S 
)    return (a+N) >> S;

Function Documentation

static int Divide ( int  a,
int  b 
)
static

+ Here is the caller graph for this function:

int rescale ( int  predict_quant,
int  current_quant,
int  coeff 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void predict_acdc ( MACROBLOCK pMBs,
dword  x,
dword  y,
dword  mb_width,
dword  block,
int  qcoeff[64],
dword  current_quant,
int  iDcScaler,
int  predictors[8],
int  bound 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void add_acdc ( MACROBLOCK pMB,
dword  block,
int  dct_codes[64],
dword  iDcScaler,
int  predictors[8] 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VECTOR get_pmv2 ( const MACROBLOCK *const  mbs,
const int  mb_width,
const int  bound,
const int  x,
const int  y,
const int  block 
)

+ Here is the caller graph for this function:

Variable Documentation

const int default_acdc_values[15]
static
Initial value:
= {
1024,
0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0
}
const VECTOR zeroMV = { 0, 0 }
static