41 |
* * |
* * |
42 |
* Revision history: * |
* Revision history: * |
43 |
* * |
* * |
44 |
|
* 08.05.2002 add low_delay support for B_VOP decode * |
45 |
|
* MinChen <chenm001@163.com> * |
46 |
|
* 06.05.2002 low_delay * |
47 |
* 06.05.2002 fixed fincr/fbase error * |
* 06.05.2002 fixed fincr/fbase error * |
48 |
* 01.05.2002 added BVOP support to BitstreamWriteVopHeader * |
* 01.05.2002 added BVOP support to BitstreamWriteVopHeader * |
49 |
* 15.04.2002 rewrite log2bin use asm386 By MinChen <chenm001@163.com> * |
* 15.04.2002 rewrite log2bin use asm386 By MinChen <chenm001@163.com> * |
226 |
{ |
{ |
227 |
DEBUG("+ vol_control_parameters"); |
DEBUG("+ vol_control_parameters"); |
228 |
BitstreamSkip(bs, 2); // chroma_format |
BitstreamSkip(bs, 2); // chroma_format |
229 |
BitstreamSkip(bs, 1); // low_delay |
dec->low_delay=BitstreamGetBit(bs); // low_delay |
230 |
if (BitstreamGetBit(bs)) // vbv_parameters |
if (BitstreamGetBit(bs)) // vbv_parameters |
231 |
{ |
{ |
232 |
DEBUG("+ vbv_parameters"); |
DEBUG("+ vbv_parameters"); |
645 |
BitstreamPutBits(bs, 0, 8); // video_object_type_indication |
BitstreamPutBits(bs, 0, 8); // video_object_type_indication |
646 |
BitstreamPutBit(bs, 0); // is_object_layer_identified (0=not given) |
BitstreamPutBit(bs, 0); // is_object_layer_identified (0=not given) |
647 |
BitstreamPutBits(bs, 1, 4); // aspect_ratio_info (1=1:1) |
BitstreamPutBits(bs, 1, 4); // aspect_ratio_info (1=1:1) |
648 |
BitstreamPutBit(bs, 0); // vol_control_parameters (0=not given) |
|
649 |
|
#ifdef BFRAMES |
650 |
|
if (pParam->max_bframes > 0) |
651 |
|
{ |
652 |
|
dprintf("low_delay=1"); |
653 |
|
BitstreamPutBit(bs, 1); // vol_control_parameters |
654 |
|
BitstreamPutBits(bs, 1, 2); // chroma_format 1="4:2:0" |
655 |
|
BitstreamPutBit(bs, 0); // low_delay |
656 |
|
BitstreamPutBit(bs, 0); // vbv_parameters (0=not given) |
657 |
|
} |
658 |
|
else |
659 |
|
#endif |
660 |
|
{ |
661 |
|
BitstreamPutBits(bs, 0, 1); // vol_control_parameters (0=not given) |
662 |
|
} |
663 |
|
|
664 |
|
|
665 |
BitstreamPutBits(bs, 0, 2); // video_object_layer_shape (0=rectangular) |
BitstreamPutBits(bs, 0, 2); // video_object_layer_shape (0=rectangular) |
666 |
|
|
667 |
WRITE_MARKER(); |
WRITE_MARKER(); |