GstCodecs.Vp9Decoder

g GObject.InitiallyUnowned GObject.InitiallyUnowned Gst.Object Gst.Object GObject.InitiallyUnowned->Gst.Object GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gst.Element Gst.Element GstVideo.VideoDecoder GstVideo.VideoDecoder Gst.Element->GstVideo.VideoDecoder Gst.Object->Gst.Element GstCodecs.Vp9Decoder GstCodecs.Vp9Decoder GstVideo.VideoDecoder->GstCodecs.Vp9Decoder

Subclasses:

None

Methods

Inherited:

GstVideo.VideoDecoder (43), Gst.Element (81), Gst.Object (27), GObject.Object (37)

Structs:

Gst.ElementClass (10), GObject.ObjectClass (5)

set_non_keyframe_format_change_support (support)

Virtual Methods

Inherited:

GstVideo.VideoDecoder (21), Gst.Element (16), Gst.Object (1), GObject.Object (7)

do_decode_picture (picture, dpb)

do_duplicate_picture (frame, picture)

do_end_picture (picture)

do_get_preferred_output_delay (is_live)

do_new_picture (frame, picture)

do_new_sequence (frame_hdr, max_dpb_size)

do_output_picture (frame, picture)

do_start_picture (picture)

Properties

Inherited:

GstVideo.VideoDecoder (6), Gst.Object (2)

Signals

Inherited:

Gst.Element (3), Gst.Object (1), GObject.Object (1)

Fields

Inherited:

Gst.Element (3), Gst.Object (1), GObject.Object (1)

Name

Type

Access

Description

input_state

GstVideo.VideoCodecState

r

padding

[object]

r

parent

GstVideo.VideoDecoder

r

parse_compressed_headers

bool

r

Class Details

class GstCodecs.Vp9Decoder(**kwargs)
Bases:

GstVideo.VideoDecoder

Abstract:

Yes

Structure:

GstCodecs.Vp9DecoderClass

The opaque GstCodecs.Vp9Decoder data structure.

set_non_keyframe_format_change_support(support)
Parameters:

support (bool) – whether subclass can support non-keyframe format change

Called to set non-keyframe format change awareness

New in version 1.20.

do_decode_picture(picture, dpb) virtual
Parameters:
Return type:

Gst.FlowReturn

Called to notify decoding for subclass to decoder given picture with given dpb

New in version 1.18.

do_duplicate_picture(frame, picture) virtual
Parameters:
Returns:

a GstCodecs.Vp9Picture or None if failed to duplicate picture.

Return type:

GstCodecs.Vp9Picture or None

Optional. Called to duplicate picture when show_existing_frame flag is set in the parsed vp9 frame header. Returned GstCodecs.Vp9Picture from this method should hold already decoded picture data corresponding to the picture, since the returned GstCodecs.Vp9Picture from this method will be passed to the output_picture method immediately without additional decoding process.

If this method is not implemented by subclass, baseclass will drop current GstVideo.VideoCodecFrame without additional processing for the current frame.

New in version 1.18.

do_end_picture(picture) virtual
Parameters:

picture (GstCodecs.Vp9Picture) – a GstCodecs.Vp9Picture

Return type:

Gst.FlowReturn

Optional. Called per one GstCodecs.Vp9Picture to notify subclass to finish decoding process for the GstCodecs.Vp9Picture

New in version 1.18.

do_get_preferred_output_delay(is_live) virtual
Parameters:

is_live (bool) – whether upstream is live or not

Returns:

the number of perferred delayed output frame

Return type:

int

Optional. Retrieve the preferred output delay from child classes. controls how many frames to delay when calling GstVp9DecoderClass::output_picture

New in version 1.20.

do_new_picture(frame, picture) virtual
Parameters:
Return type:

Gst.FlowReturn

Optional. Called whenever new GstCodecs.Vp9Picture is created. Subclass can set implementation specific user data on the GstCodecs.Vp9Picture via GstCodecs.Vp9Picture.set_user_data()

New in version 1.18.

do_new_sequence(frame_hdr, max_dpb_size) virtual
Parameters:
Return type:

Gst.FlowReturn

Notifies subclass of video sequence update such as resolution, bitdepth, profile.

New in version 1.18.

do_output_picture(frame, picture) virtual
Parameters:
Return type:

Gst.FlowReturn

Called to notify picture is ready to be outputted.

New in version 1.18.

do_start_picture(picture) virtual
Parameters:

picture (GstCodecs.Vp9Picture) – a GstCodecs.Vp9Picture

Return type:

Gst.FlowReturn

Optional. Called to notify subclass to prepare decoding process for picture

New in version 1.18.