20 |
* along with this program ; if not, write to the Free Software |
* along with this program ; if not, write to the Free Software |
21 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
22 |
* |
* |
23 |
* $Id: bitstream.c,v 1.39.2.18 2003-10-01 23:23:01 edgomez Exp $ |
* $Id: bitstream.c,v 1.39.2.19 2003-11-19 15:42:38 syskin Exp $ |
24 |
* |
* |
25 |
****************************************************************************/ |
****************************************************************************/ |
26 |
|
|
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 |
|
|
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 */ |