--- branches/dev-api-4/xvidcore/src/utils/mbtransquant.c 2003/03/26 11:01:03 948 +++ branches/dev-api-4/xvidcore/src/utils/mbtransquant.c 2003/03/26 14:56:49 949 @@ -83,14 +83,14 @@ uint32_t stride = pParam->edged_width; uint32_t stride2 = stride / 2; - uint32_t next_block = stride * ((frame->vop_flags & XVID_REDUCED)?16:8); + uint32_t next_block = stride * ((frame->vop_flags & XVID_VOP_REDUCED)?16:8); uint32_t i; const uint32_t iQuant = pMB->quant; uint8_t *pY_Cur, *pU_Cur, *pV_Cur; IMAGE *pCurrent = &frame->image; start_timer(); - if ((frame->vop_flags & XVID_REDUCED)) + if ((frame->vop_flags & XVID_VOP_REDUCED)) { pY_Cur = pCurrent->y + (y_pos << 5) * stride + (x_pos << 5); pU_Cur = pCurrent->u + (y_pos << 4) * stride2 + (x_pos << 4); @@ -119,7 +119,7 @@ /* XXX: rrv+interlacing is buggy */ start_timer(); pMB->field_dct = 0; - if ((frame->vol_flags & XVID_INTERLACING) && + if ((frame->vol_flags & XVID_VOL_INTERLACING) && (x_pos>0) && (x_posmb_width-1) && (y_pos>0) && (y_posmb_height-1)) { pMB->field_dct = MBDecideFieldDCT(data); @@ -133,7 +133,7 @@ fdct(&data[i * 64]); stop_dct_timer(); - if (!(pParam->vol_flags & XVID_MPEGQUANT)) { + if (!(pParam->vol_flags & XVID_VOL_MPEGQUANT)) { start_timer(); quant_intra(&qcoeff[i * 64], &data[i * 64], iQuant, iDcScaler); stop_quant_timer(); @@ -146,7 +146,7 @@ /* speedup: dont decode when encoding only ivops */ if (pParam->iMaxKeyInterval != 1 || pParam->max_bframes > 0) { - if (!(pParam->vol_flags & XVID_MPEGQUANT)) { + if (!(pParam->vol_flags & XVID_VOL_MPEGQUANT)) { start_timer(); dequant_intra(&data[i * 64], &qcoeff[i * 64], iQuant, iDcScaler); stop_iquant_timer(); @@ -172,7 +172,7 @@ } start_timer(); - if ((frame->vop_flags & XVID_REDUCED)) + if ((frame->vop_flags & XVID_VOP_REDUCED)) { copy_upsampled_8x8_16to8(pY_Cur, &data[0 * 64], stride); copy_upsampled_8x8_16to8(pY_Cur + 16, &data[1 * 64], stride); @@ -207,7 +207,7 @@ uint32_t stride = pParam->edged_width; uint32_t stride2 = stride / 2; - uint32_t next_block = stride * ((frame->vop_flags & XVID_REDUCED)?16:8); + uint32_t next_block = stride * ((frame->vop_flags & XVID_VOP_REDUCED)?16:8); uint32_t i; const uint32_t iQuant = pMB->quant; uint8_t *pY_Cur, *pU_Cur, *pV_Cur; @@ -215,7 +215,7 @@ uint32_t sum; IMAGE *pCurrent = &frame->image; - if ((frame->vop_flags & XVID_REDUCED)) + if ((frame->vop_flags & XVID_VOP_REDUCED)) { pY_Cur = pCurrent->y + (y_pos << 5) * stride + (x_pos << 5); pU_Cur = pCurrent->u + (y_pos << 4) * stride2 + (x_pos << 4); @@ -228,7 +228,7 @@ start_timer(); pMB->field_dct = 0; - if ((frame->vol_flags & XVID_INTERLACING) && + if ((frame->vol_flags & XVID_VOL_INTERLACING) && (x_pos>0) && (x_posmb_width-1) && (y_pos>0) && (y_posmb_height-1)) { pMB->field_dct = MBDecideFieldDCT(data); @@ -246,7 +246,7 @@ fdct(&data[i * 64]); stop_dct_timer(); - if (!(pParam->vol_flags & XVID_MPEGQUANT)) { + if (!(pParam->vol_flags & XVID_VOL_MPEGQUANT)) { start_timer(); sum = quant_inter(&qcoeff[i * 64], &data[i * 64], iQuant); stop_quant_timer(); @@ -259,7 +259,7 @@ if ((sum >= TOOSMALL_LIMIT + increase_limit) || (qcoeff[i*64] != 0) || (qcoeff[i*64+1] != 0) || (qcoeff[i*64+8] != 0)) { - if (!(pParam->vol_flags & XVID_MPEGQUANT)) { + if (!(pParam->vol_flags & XVID_VOL_MPEGQUANT)) { start_timer(); dequant_inter(&data[i * 64], &qcoeff[i * 64], iQuant); stop_iquant_timer(); @@ -283,7 +283,7 @@ } start_timer(); - if ((frame->vop_flags & XVID_REDUCED)) + if ((frame->vop_flags & XVID_VOP_REDUCED)) { if (cbp & 32) add_upsampled_8x8_16to8(pY_Cur, &data[0 * 64], stride); @@ -402,7 +402,7 @@ start_timer(); pMB->field_dct = 0; - if ((frame->vol_flags & XVID_INTERLACING)) { + if ((frame->vol_flags & XVID_VOL_INTERLACING)) { pMB->field_dct = MBDecideFieldDCT(data); } stop_interlacing_timer(); @@ -426,7 +426,7 @@ start_timer(); pMB->field_dct = 0; - if ((frame->vol_flags & XVID_INTERLACING)) { + if ((frame->vol_flags & XVID_VOL_INTERLACING)) { pMB->field_dct = MBDecideFieldDCT(data); } stop_interlacing_timer(); @@ -434,7 +434,7 @@ for (i = 0; i < 6; i++) { uint32_t iDcScaler = get_dc_scaler(iQuant, i < 4); - if (!(pParam->vol_flags & XVID_MPEGQUANT)) { + if (!(pParam->vol_flags & XVID_VOL_MPEGQUANT)) { start_timer(); quant_intra(&qcoeff[i * 64], &data[i * 64], iQuant, iDcScaler); stop_quant_timer(); @@ -466,7 +466,7 @@ start_timer(); pMB->field_dct = 0; - if ((frame->vol_flags & XVID_INTERLACING)) { + if ((frame->vol_flags & XVID_VOL_INTERLACING)) { pMB->field_dct = MBDecideFieldDCT(data); } stop_interlacing_timer(); @@ -474,7 +474,7 @@ for (i = 0; i < 6; i++) { uint32_t iDcScaler = get_dc_scaler(iQuant, i < 4); - if (!(pParam->vol_flags & XVID_MPEGQUANT)) { + if (!(pParam->vol_flags & XVID_VOL_MPEGQUANT)) { start_timer(); quant_intra(&qcoeff[i * 64], &data[i * 64], iQuant, iDcScaler); stop_quant_timer(); @@ -497,7 +497,7 @@ for (i = 0; i < 6; i++) { uint32_t iDcScaler = get_dc_scaler(iQuant, i < 4); - if (!(pParam->vol_flags & XVID_MPEGQUANT)) { + if (!(pParam->vol_flags & XVID_VOL_MPEGQUANT)) { start_timer(); dequant_intra(&data[i * 64], &qcoeff[i * 64], iQuant, iDcScaler); stop_iquant_timer(); @@ -522,7 +522,7 @@ for (i = 0; i < 6; i++) { - if (!(pParam->vol_flags & XVID_MPEGQUANT)) { + if (!(pParam->vol_flags & XVID_VOL_MPEGQUANT)) { start_timer(); sum = quant_inter(&qcoeff[i * 64], &data[i * 64], iQuant); stop_quant_timer(); @@ -551,7 +551,7 @@ for (i = 0; i < 6; i++) { if (cbp & (1 << (5 - i))) { - if (!(pParam->vol_flags & XVID_MPEGQUANT)) { + if (!(pParam->vol_flags & XVID_VOL_MPEGQUANT)) { start_timer(); dequant_inter(&data[i * 64], &qcoeff[i * 64], iQuant); stop_iquant_timer();