117 |
const IMAGE * const b_refhv, |
const IMAGE * const b_refhv, |
118 |
int16_t * dct_codes); |
int16_t * dct_codes); |
119 |
|
|
|
|
|
|
/* GMC stuff. Maybe better put it into a separate file */ |
|
|
|
|
|
void |
|
|
generate_GMCparameters( const int num_wp, /* [input]: number of warppoints */ |
|
|
const int res, /* [input]: resolution */ |
|
|
const WARPPOINTS *const warp, /* [input]: warp points */ |
|
|
const int width, const int height, /* [input]: without edges! */ |
|
|
GMC_DATA *const gmc); /* [output] precalculated parameters */ |
|
|
|
|
|
void |
|
|
generate_GMCimage( const GMC_DATA *const gmc_data, /* [input] precalculated data */ |
|
|
const IMAGE *const pRef, /* [input] */ |
|
|
const int mb_width, |
|
|
const int mb_height, |
|
|
const int stride, |
|
|
const int stride2, |
|
|
const int fcode, /* [input] some parameters... */ |
|
|
const int32_t quarterpel, /* [input] for rounding avgMV */ |
|
|
const int reduced_resolution, /* [input] ignored */ |
|
|
const int32_t rounding, /* [input] for rounding image data */ |
|
|
MACROBLOCK *const pMBs, /* [output] average motion vectors */ |
|
|
IMAGE *const pGMC); /* [output] full warped image */ |
|
|
|
|
|
VECTOR generate_GMCimageMB( const GMC_DATA *const gmc_data, /* [input] all precalc data */ |
|
|
const IMAGE *const pRef, /* [input] */ |
|
|
const int mi, const int mj, /* [input] MB position */ |
|
|
const int stride, /* [input] Lumi stride */ |
|
|
const int stride2, /* [input] chroma stride */ |
|
|
const int quarterpel, /* [input] for rounding of AvgMV */ |
|
|
const int rounding, |
|
|
IMAGE *const pGMC); /* [outut] generate image */ |
|
|
|
|
120 |
int |
int |
121 |
MEanalysis( const IMAGE * const pRef, |
MEanalysis( const IMAGE * const pRef, |
122 |
const FRAMEINFO * const Current, |
const FRAMEINFO * const Current, |