GstCodecs.AV1Decoder¶
- Subclasses:
None
Methods¶
Virtual Methods¶
|
|
|
|
|
|
|
|
|
|
|
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
highest_spatial_layer |
r |
||
input_state |
r |
||
padding |
[ |
r |
|
parent |
r |
Class Details¶
- class GstCodecs.AV1Decoder(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
The opaque
GstCodecs.AV1Decoder
data structure.New in version 1.20.
- do_decode_tile(picture, tile) virtual¶
- Parameters:
picture (
GstCodecs.AV1Picture
) – aGstCodecs.AV1Picture
tile (
GstCodecs.AV1Tile
) – aGstCodecs.AV1Tile
- Return type:
Provides the tile data with tile group header and required raw bitstream for subclass to decode it.
New in version 1.20.
- do_duplicate_picture(frame, picture) virtual¶
- Parameters:
frame (
GstVideo.VideoCodecFrame
) – the currentGstVideo.VideoCodecFrame
picture (
GstCodecs.AV1Picture
) – aGstCodecs.AV1Picture
- Return type:
Called when need to duplicate an existing
GstCodecs.AV1Picture
. As duplicated key-frame will populate the DPB, this virtual function is not optional.New in version 1.22.
- do_end_picture(picture) virtual¶
- Parameters:
picture (
GstCodecs.AV1Picture
) – aGstCodecs.AV1Picture
- Return type:
Optional. Called per one
GstCodecs.AV1Picture
to notify subclass to finish decoding process for theGstCodecs.AV1Picture
New in version 1.20.
- do_get_preferred_output_delay(live) virtual¶
- Parameters:
live (
bool
) – whether upstream is live or not- Returns:
the number of perferred delayed output frame
- Return type:
Optional. Called by baseclass to query whether delaying output is preferred by subclass or not.
New in version 1.22.
- do_new_picture(frame, picture) virtual¶
- Parameters:
frame (
GstVideo.VideoCodecFrame
) – aGstVideo.VideoCodecFrame
picture (
GstCodecs.AV1Picture
) – aGstCodecs.AV1Picture
- Return type:
Optional. Called whenever new
GstCodecs.AV1Picture
is created. Subclass can set implementation specific user data on theGstCodecs.AV1Picture
via gst_av1_picture_set_user_dataNew in version 1.20.
- do_output_picture(frame, picture) virtual¶
- Parameters:
frame (
GstVideo.VideoCodecFrame
) – aGstVideo.VideoCodecFrame
picture (
GstCodecs.AV1Picture
) – aGstCodecs.AV1Picture
- Return type:
Called with a
GstCodecs.AV1Picture
which is required to be outputted. TheGstVideo.VideoCodecFrame
must be consumed by subclass.New in version 1.20.
- do_start_picture(picture, dpb) virtual¶
- Parameters:
picture (
GstCodecs.AV1Picture
) – aGstCodecs.AV1Picture
dpb (
GstCodecs.AV1Dpb
) – aGstCodecs.AV1Dpb
- Return type:
Optional. Called per one
GstCodecs.AV1Picture
to notify subclass to prepare decoding process for theGstCodecs.AV1Picture
New in version 1.20.