30 |
* |
* |
31 |
*************************************************************************/ |
*************************************************************************/ |
32 |
|
|
33 |
|
/****************************************************************************** |
34 |
|
* * |
35 |
|
* Revision history: * |
36 |
|
* * |
37 |
|
* 29.06.2002 get_pmvdata() bounding * |
38 |
|
* * |
39 |
|
******************************************************************************/ |
40 |
|
|
41 |
|
|
42 |
#ifndef _MBPREDICTION_H_ |
#ifndef _MBPREDICTION_H_ |
43 |
#define _MBPREDICTION_H_ |
#define _MBPREDICTION_H_ |
44 |
|
|
79 |
int16_t qcoeff[64], |
int16_t qcoeff[64], |
80 |
uint32_t current_quant, |
uint32_t current_quant, |
81 |
int32_t iDcScaler, |
int32_t iDcScaler, |
82 |
int16_t predictors[8]); |
int16_t predictors[8], |
83 |
|
const unsigned int bound_x, |
84 |
|
const unsigned int bound_y); |
85 |
|
|
86 |
|
|
87 |
/* get_pmvdata returns the median predictor and nothing else */ |
/* get_pmvdata returns the median predictor and nothing else */ |
88 |
|
|
218 |
const uint32_t x_dim, |
const uint32_t x_dim, |
219 |
const uint32_t block, |
const uint32_t block, |
220 |
VECTOR * const pmv, |
VECTOR * const pmv, |
221 |
int32_t * const psad) |
int32_t * const psad, |
222 |
|
const unsigned int bound_x, |
223 |
|
const unsigned int bound_y) |
224 |
{ |
{ |
225 |
|
|
226 |
/* |
/* |
244 |
const VECTOR zeroMV = { 0, 0 }; |
const VECTOR zeroMV = { 0, 0 }; |
245 |
|
|
246 |
// first row of blocks (special case) |
// first row of blocks (special case) |
247 |
if (y == 0 && (block == 0 || block == 1)) { |
/* if (y == 0 && (block == 0 || block == 1)) { */ |
248 |
if ((x == 0) && (block == 0)) // first column, first block |
if (((y == bound_y && x >= bound_x) || (y == bound_y + 1 && x < bound_x)) |
249 |
|
&& (block == 0 || block == 1)) { |
250 |
|
|
251 |
|
/* if ((x == 0) && (block == 0)) */ // first column, first block |
252 |
|
if ((x == 0 || (y == bound_y && x == bound_x)) && (block == 0)) // first column, first block |
253 |
{ |
{ |
254 |
pmv[0] = pmv[1] = pmv[2] = pmv[3] = zeroMV; |
pmv[0] = pmv[1] = pmv[2] = pmv[3] = zeroMV; |
255 |
psad[0] = 0; |
psad[0] = 0; |