#include <mnt_mpeg1_pic.h>
Public Member Functions | |
int | parse (BitParser *bp) |
Assuming the BitParser bp is pointing to the beginning of a picture header in the bitstream, parse the header and initialized\ the structure pointed to by hdr . | |
int | find (BitParser *bp) |
Scan forward in the bitstream using BitParser bp , looking for the next picture header, and position bp 's cursor at the beginning of the picture header. | |
int | dump (BitParser *inbp, BitParser *outbp) |
Assuming the BitParser inbp is pointing to the beginning of a picture header in the bitstream, dump the header (without parsing it) from the input bitstream to the output bitstream attached to BitParser outbp . | |
int | skip (BitParser *bp) |
Assuming that the bitstream position is at the beginning of a MPEG pic header, skip the bitstream using BitParser bp without parsing and return the number of bytes skipped. | |
int | encode (BitParser *bp) |
Encode the content of pic header hdr into bitstream using BitParser bp . | |
Public Attributes | |
short | temporal_reference_ |
Frame number module 1024. | |
char | type_ |
Indicates the type of encoding for this picture : could be I_FRAME, P_FRAME, B_FRAME or D_FRAME. | |
unsigned short | vbv_delay_ |
char | full_pel_forward_vector_ |
For P/B frames, indicates if the forward motion vector is in full or half pixel units. | |
char | full_pel_backward_vector_ |
For B frames, indicates if the backward motion vector is in full or half pixel units. | |
Motion Vector Scales | |
Use internally for decoding motion vectors from bitstream. See standard for details. | |
char | forward_r_size_ |
char | forward_f_ |
char | backward_r_size_ |
char | backward_f_ |
|
Assuming the BitParser After dumping, the current bitparser cursor position is at the end of the picture header and beginning of a slice header ("picture body").
|
|
Encode the content of pic header
|
|
Scan forward in the bitstream using BitParser
|
|
Assuming the BitParser
After parsing
|
|
Assuming that the bitstream position is at the beginning of a MPEG pic header, skip the bitstream using BitParser After skipping the current bitparser position is at the end of the picture header and beginning of a slice header.
|
|
For B frames, indicates if the backward motion vector is in full or half pixel units. If this slot is 1, the backward motion vectors are in full-pixel units. If this slot is 0, the backward motion vectors are in half-pixel units. |
|
For P/B frames, indicates if the forward motion vector is in full or half pixel units. If this slot is 1, the forward motion vectors are in full-pixel units. If this slot is 0, the forward motion vectors are in half-pixel units. |
|
Frame number module 1024. This integer is associated with each picture, start from 0 for first (in display order) picture of each GOP. It increases by one modulo 1024 for every picture (in display order). |
|
see standard |