#include <mnt_mpeg1_gop.h>
Public Member Functions | |
int | parse (BitParser *bp) |
Assuming that the bp position is at the beginning of a MPEG GOP header, parse the bitstream using BitParser bp and initilize the GOP header hdr . | |
int | find (BitParser *bp) |
Advance the BitParser bp to the beginning of a GOP header (by finding GOP_START_CODE in the bitstream it is attached to). | |
int | dump (BitParser *inbp, BitParser *outbp) |
Assuming the BitParser inbp is pointing to the beginning of a GOP header in the bitstream, dump the header from the input bitstream to the output bitstream attached to BitParser outbp . | |
int | skip (BitParser *bp) |
Assuming that bp is pointing to the begining of a GOP header in the bitstream, skip the header and move bp to point to the beginning of the picture header immediately following the GOP header. | |
int | encode (BitParser *bp) |
Public Attributes | |
char | closed_gop_ |
If closed_gop = 1, then this GOP is encoded without vectors pointing to pictures in previous GOP. | |
char | broken_link_ |
if broken_link = 1, then the first B-frame that follows the first I-frame in this GOP cannot be decoded because the other frame used for prediction is not available. | |
time codes | |
These fields correspond the the fields defined in the IEC standard 461 ("time and control codes for video tape recorders"). The code refers to the first picture in the group of pictures that has a temporal_reference of zero.
The | |
char | drop_frame_flag_ |
char | time_code_hours_ |
char | time_code_minutes_ |
char | time_code_seconds_ |
char | time_code_pictures_ |
|
Assuming the BitParser After dumping, the current bit position is at the beginning of picture header.
|
|
Advance the BitParser
|
|
Assuming that the
After parsing,
|
|
Assuming that
|
|
if This can be used to avoid decoding pictures that cannot be correctly decoded due to editing. |
|
If
|