#include <mnt_mpeg1_seq.h>
Public Member Functions | |
| int | parse (BitParser *bp) |
Assuming the BitParser bp is pointing to the beginning of a sequence header in the bitstream, parse the header and initialize hdr. | |
| int | find (BitParser *bp) |
| Advance the BitParser bp to the beginning of a sequence header (by finding SEQ_START_CODE in the corrsponding bitstream). | |
| int | dump (BitParser *inbp, BitParser *outbp) |
Dump a sequence header from inbp to outbp without interpreting it. | |
| int | skip (BitParser *bp) |
Assuming that the input BitParser bp is at the beginning of a MPEG sequence header, skip the sequence header and advance bp's cursors to the beginning of GOP header immediately following the sequence header. | |
| int | encode (BitParser *bp) |
| double | get_pic_rate () |
| double | get_aspect_ratio () |
Public Attributes | |
| short | width_ |
| short | height_ |
| short | mb_width_ |
| short | mb_height_ |
| int | bitrate_ |
| int | vbv_buffer_size_ |
| char | pel_aspect_ratio_ |
| char | picture_rate_ |
| char | constrained_ |
| char | default_qt_ |
| unsigned char | iqt_ [64] |
| unsigned char | niqt_ [64] |
Static Private Attributes | |
| static const int | RESERVE = -1 |
| static const double | pel_aspect_ratio_table_ [16] |
| static const double | picture_rate_table_ [16] |
|
||||||||||||
|
Dump a sequence header from
|
|
|
Advance the BitParser bp to the beginning of a sequence header (by finding SEQ_START_CODE in the corrsponding bitstream).
|
|
|
Assuming the BitParser
Note: Header extension and user data are ignored. When this function completes,
|
|
|
Assuming that the input BitParser
|
|
|
In units of 400 bits/second |
|
|
Boolean - true if a constrained param mpeg |
|
|
0 - both, 1 - iqt, 2 - niqt, 3 - none |
|
|
height of each frame |
|
|
Intra quantization table - 64 elements |
|
|
height of each frame in macroblocks |
|
|
width of each frame in macroblocks |
|
|
Non intra quantization table |
|
|
Index to aspect ratio table |
|
|
Initial value:
{
RESERVE, 1.000, 0.6735, 0.7031, 0.7615, 0.8055, 0.8437, 0.8935, 0.9375,
0.9815, 1.0255, 1.0695, 1.1250, 1.1575, 1.2015, RESERVE
}
|
|
|
Index to picture rate table |
|
|
Initial value:
{
RESERVE, 23.976, 24, 25, 29.97, 30, 50, 59.94, 60,
RESERVE, RESERVE, RESERVE, RESERVE, RESERVE, RESERVE, RESERVE
}
|
|
|
Decoding verifier buffer size |
|
|
width of each frame |
1.4.4