GstCodecParsers.MpegVideoPacket¶
Fields¶
Name |
Type |
Access |
Description |
|---|---|---|---|
data |
r/w |
the data containing the packet starting at offset |
|
offset |
r/w |
the offset of the packet start in bytes from data. This is the start of the packet itself without the sync code |
|
size |
r/w |
The size in bytes of the packet or -1 if the end wasn’t found. This is the size of the packet itself without the sync code |
|
type |
r/w |
the type of the packet that start at offset, as a |
Methods¶
|
|
|
Details¶
- class GstCodecParsers.MpegVideoPacket¶
A structure that contains the type of a packet, its offset and its size
- parse_gop()¶
- Returns:
Trueif the gop could be parsed correctly,Falseotherwise.- gop:
The
GstCodecParsers.MpegVideoGopstructure to fill
- Return type:
(
bool, gop:GstCodecParsers.MpegVideoGop)
Parses the gop MPEG Video Group of Picture structure members from video self
New in version 1.2.
- parse_picture_extension()¶
- Returns:
Trueif the picture extension could be parsed correctly,Falseotherwise.- picext:
The
GstCodecParsers.MpegVideoPictureExtstructure to fill
- Return type:
(
bool, picext:GstCodecParsers.MpegVideoPictureExt)
Parse the ext MPEG Video Picture Extension structure members from video self
New in version 1.2.
- parse_picture_header()¶
- Returns:
Trueif the picture sequence could be parsed correctly,Falseotherwise.- pichdr:
The
GstCodecParsers.MpegVideoPictureHdrstructure to fill
- Return type:
(
bool, pichdr:GstCodecParsers.MpegVideoPictureHdr)
Parsers the pichdr MPEG Video Picture Header structure members from video self
New in version 1.2.
- parse_quant_matrix_extension()¶
- Returns:
Trueif the quant matrix extension could be parsed correctly,Falseotherwise.- quant:
The
GstCodecParsers.MpegVideoQuantMatrixExtstructure to fill
- Return type:
(
bool, quant:GstCodecParsers.MpegVideoQuantMatrixExt)
Parses the quant MPEG Video Quantization Matrix Extension structure members from video self
New in version 1.2.
- parse_sequence_display_extension()¶
- Returns:
Trueif the seqext could be parsed correctly,Falseotherwise.- seqdisplayext:
The
GstCodecParsers.MpegVideoSequenceDisplayExtstructure to fill
- Return type:
(
bool, seqdisplayext:GstCodecParsers.MpegVideoSequenceDisplayExt)
Parses the seqext MPEG Video Sequence Display Extension structure members from video self
New in version 1.2.
- parse_sequence_extension()¶
- Returns:
Trueif the seqext could be parsed correctly,Falseotherwise.- seqext:
The
GstCodecParsers.MpegVideoSequenceExtstructure to fill
- Return type:
(
bool, seqext:GstCodecParsers.MpegVideoSequenceExt)
Parses the seqext MPEG Video Sequence Extension structure members from video self
New in version 1.2.
- parse_sequence_header()¶
- Returns:
Trueif the seqhdr could be parsed correctly,Falseotherwise.- seqhdr:
The
GstCodecParsers.MpegVideoSequenceHdrstructure to fill
- Return type:
(
bool, seqhdr:GstCodecParsers.MpegVideoSequenceHdr)
Parses the seqhdr MPEG Video Sequence Header structure members from video self
New in version 1.2.
- parse_sequence_scalable_extension()¶
- Returns:
Trueif the seqext could be parsed correctly,Falseotherwise.- seqscaleext:
The
GstCodecParsers.MpegVideoSequenceScalableExtstructure to fill
- Return type:
(
bool, seqscaleext:GstCodecParsers.MpegVideoSequenceScalableExt)
Parses the seqscaleext MPEG Video Sequence Scalable Extension structure members from video self
New in version 1.2.
- parse_slice_header(seq_hdr, seqscaleext)¶
- Parameters:
seq_hdr (
GstCodecParsers.MpegVideoSequenceHdr) – TheGstCodecParsers.MpegVideoSequenceHdrheaderseqscaleext (
GstCodecParsers.MpegVideoSequenceScalableExt) – TheGstCodecParsers.MpegVideoSequenceScalableExtheader
- Returns:
Trueif the slice could be parsed correctly,Falseotherwise.- slice_hdr:
The
GstCodecParsers.MpegVideoSliceHdrstructure to fill
- Return type:
(
bool, slice_hdr:GstCodecParsers.MpegVideoSliceHdr)
Parses the GstMpegVideoSliceHdr structure members from data
New in version 1.2.