1173 |
|
|
1174 |
if (pParam->fincr>0) { |
if (pParam->fincr>0) { |
1175 |
BitstreamPutBit(bs, 1); /* fixed_vop_rate = 1 */ |
BitstreamPutBit(bs, 1); /* fixed_vop_rate = 1 */ |
1176 |
BitstreamPutBits(bs, pParam->fincr, log2bin(pParam->fbase)); /* fixed_vop_time_increment */ |
BitstreamPutBits(bs, pParam->fincr, log2bin(pParam->fbase-1)); /* fixed_vop_time_increment */ |
1177 |
}else{ |
}else{ |
1178 |
BitstreamPutBit(bs, 0); /* fixed_vop_rate = 0 */ |
BitstreamPutBit(bs, 0); /* fixed_vop_rate = 0 */ |
1179 |
} |
} |
1264 |
Bitstream * const bs, |
Bitstream * const bs, |
1265 |
const MBParam * pParam, |
const MBParam * pParam, |
1266 |
const FRAMEINFO * const frame, |
const FRAMEINFO * const frame, |
1267 |
int vop_coded) |
int vop_coded, |
1268 |
|
unsigned int quant) |
1269 |
{ |
{ |
1270 |
uint32_t i; |
uint32_t i; |
1271 |
|
|
1294 |
|
|
1295 |
/* time_increment: value=nth_of_sec, nbits = log2(resolution) */ |
/* time_increment: value=nth_of_sec, nbits = log2(resolution) */ |
1296 |
|
|
1297 |
BitstreamPutBits(bs, frame->ticks, log2bin(pParam->fbase)); |
BitstreamPutBits(bs, frame->ticks, log2bin(pParam->fbase-1)); |
1298 |
#if 0 |
#if 0 |
1299 |
DPRINTF("[%i:%i] %c", |
DPRINTF("[%i:%i] %c", |
1300 |
frame->seconds, frame->ticks, |
frame->seconds, frame->ticks, |
1358 |
|
|
1359 |
|
|
1360 |
#if 0 |
#if 0 |
1361 |
DPRINTF(XVID_DEBUG_HEADER, "quant = %i\n", frame->quant); |
DPRINTF(XVID_DEBUG_HEADER, "quant = %i\n", quant); |
1362 |
#endif |
#endif |
1363 |
|
|
1364 |
BitstreamPutBits(bs, frame->quant, 5); /* quantizer */ |
BitstreamPutBits(bs, quant, 5); /* quantizer */ |
1365 |
|
|
1366 |
if (frame->coding_type != I_VOP) |
if (frame->coding_type != I_VOP) |
1367 |
BitstreamPutBits(bs, frame->fcode, 3); /* forward_fixed_code */ |
BitstreamPutBits(bs, frame->fcode, 3); /* forward_fixed_code */ |