GstCodecParsers.Vp9Parser¶
Fields¶
Name |
Type |
Access |
Description |
|---|---|---|---|
bit_depth |
r/w |
bit depth of the stream |
|
color_range |
r/w |
color range standard |
|
color_space |
r/w |
color space standard |
|
mb_segment_tree_probs |
r/w |
decoding tree probabilities |
|
priv |
r/w |
GstVp9ParserPrivate struct to keep track of state variables |
|
segment_pred_probs |
r/w |
segment prediction probabiilties |
|
segmentation |
r/w |
Segmentation info |
|
subsampling_x |
r/w |
horizontal subsampling |
|
subsampling_y |
r/w |
vertical subsampling |
Methods¶
|
|
|
|
|
Details¶
- class GstCodecParsers.Vp9Parser¶
For more details about the structures, you can refer to the specifications:
New in version 1.8.
- free()¶
Frees self.
New in version 1.8.
- parse_frame_header(frame_hdr, data, size)¶
- Parameters:
frame_hdr (
GstCodecParsers.Vp9FrameHdr) – TheGstCodecParsers.Vp9FrameHdrto filldata (
int) – The data to parsesize (
int) – The size of the data to parse
- Returns:
- Return type:
Parses the VP9 bitstream contained in data, and fills in frame_hdr with the information. The size argument represent the whole frame size.
New in version 1.8.
- parse_superframe_info(superframe_info, data, size)¶
- Parameters:
superframe_info (
GstCodecParsers.Vp9SuperframeInfo) – TheGstCodecParsers.Vp9SuperframeInfoto filldata (
int) – The data to parsesize (
int) – The size of the data to parse
- Returns:
- Return type:
Parses the VP9 bitstream contained in data, and fills in superframe_info with the information. The size argument represent the whole superframe size. If data is not superframe but normal frame, the parser returns
GstCodecParsers.Vp9ParserResult.OK, frame_size[0] is set to size and frames_in_superframe is set to 1. Also this method does not validate vp9frame header and verifying the frame header is caller’s responsibility.New in version 1.18.