comparison h263.c @ 1150:dde68a430ba9 libavcodec

user setable quantizer bias
author michaelni
date Sat, 22 Mar 2003 12:09:02 +0000
parents 79e8ed620b17
children 8c15d82c1893
comparison
equal deleted inserted replaced
1149:b48bf370ff44 1150:dde68a430ba9
1481 default: //nothing needed default table allready set in mpegvideo.c 1481 default: //nothing needed default table allready set in mpegvideo.c
1482 s->min_qcoeff= -127; 1482 s->min_qcoeff= -127;
1483 s->max_qcoeff= 127; 1483 s->max_qcoeff= 127;
1484 s->y_dc_scale_table= 1484 s->y_dc_scale_table=
1485 s->c_dc_scale_table= ff_mpeg1_dc_scale_table; 1485 s->c_dc_scale_table= ff_mpeg1_dc_scale_table;
1486 }
1487
1488 if(s->mpeg_quant){
1489 s->intra_quant_bias= 3<<(QUANT_BIAS_SHIFT-3); //(a + x*3/8)/x
1490 s->inter_quant_bias= 0;
1491 }else{
1492 s->intra_quant_bias=0;
1493 s->inter_quant_bias=-(1<<(QUANT_BIAS_SHIFT-2)); //(a - x/4)/x
1494 } 1486 }
1495 } 1487 }
1496 1488
1497 /** 1489 /**
1498 * encodes a 8x8 block. 1490 * encodes a 8x8 block.