226 |
|
|
227 |
dct_codes[0] += predictors[0]; /* dc prediction */ |
dct_codes[0] += predictors[0]; /* dc prediction */ |
228 |
pCurrent[0] = dct_codes[0]*iDcScaler; |
pCurrent[0] = dct_codes[0]*iDcScaler; |
229 |
if (!bsversion || bsversion > BS_VERSION_BUGGY_DC_CLIPPING) { |
if (bsversion > BS_VERSION_BUGGY_DC_CLIPPING) { |
230 |
pCurrent[0] = CLIP(pCurrent[0], -2048, 2047); |
pCurrent[0] = CLIP(pCurrent[0], -2048, 2047); |
231 |
} |
} |
232 |
|
|
409 |
uint32_t x, |
uint32_t x, |
410 |
uint32_t y, |
uint32_t y, |
411 |
uint32_t mb_width, |
uint32_t mb_width, |
412 |
int16_t qcoeff[6 * 64]) |
int16_t qcoeff[6 * 64], |
413 |
|
const int bound) |
414 |
{ |
{ |
415 |
|
|
416 |
int32_t j; |
int32_t j; |
427 |
iDcScaler = get_dc_scaler(iQuant, j<4); |
iDcScaler = get_dc_scaler(iQuant, j<4); |
428 |
|
|
429 |
predict_acdc(frame->mbs, x, y, mb_width, j, &qcoeff[j * 64], |
predict_acdc(frame->mbs, x, y, mb_width, j, &qcoeff[j * 64], |
430 |
iQuant, iDcScaler, predictors[j], 0); |
iQuant, iDcScaler, predictors[j], bound); |
431 |
|
|
432 |
if ((frame->vop_flags & XVID_VOP_HQACPRED)) |
if ((frame->vop_flags & XVID_VOP_HQACPRED)) |
433 |
S += calc_acdc_bits(pMB, j, &qcoeff[j * 64], iDcScaler, predictors[j]); |
S += calc_acdc_bits(pMB, j, &qcoeff[j * 64], iDcScaler, predictors[j]); |