GstCodecs.H265Decoder

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.H265Decoder GstCodecs.H265Decoder GstVideo.VideoDecoder->GstCodecs.H265Decoder

Subclasses:

None

Methods

Inherited:

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

Structs:

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

get_picture (system_frame_number)

set_process_ref_pic_lists (process)

Virtual Methods

Inherited:

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

do_decode_slice (picture, slice, ref_pic_list0, ref_pic_list1)

do_end_picture (picture)

do_get_preferred_output_delay (live)

do_new_picture (frame, picture)

do_output_picture (frame, picture)

do_start_picture (picture, slice, dpb)

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

NumPicTotalCurr

int

r

NumPocLtCurr

int

r

NumPocLtFoll

int

r

NumPocStCurrAfter

int

r

NumPocStCurrBefore

int

r

NumPocStFoll

int

r

RefPicSetLtCurr

[GstCodecs.H265Picture]

r

RefPicSetLtFoll

[GstCodecs.H265Picture]

r

RefPicSetStCurrAfter

[GstCodecs.H265Picture]

r

RefPicSetStCurrBefore

[GstCodecs.H265Picture]

r

RefPicSetStFoll

[GstCodecs.H265Picture]

r

input_state

GstVideo.VideoCodecState

r

padding

[object]

r

parent

GstVideo.VideoDecoder

r

Class Details

class GstCodecs.H265Decoder(**kwargs)
Bases:

GstVideo.VideoDecoder

Abstract:

Yes

Structure:

GstCodecs.H265DecoderClass

The opaque GstCodecs.H265Decoder data structure.

get_picture(system_frame_number)
Parameters:

system_frame_number (int) – a target system frame number of GstCodecs.H265Picture

Returns:

a GstCodecs.H265Picture if successful, or None otherwise

Return type:

GstCodecs.H265Picture or None

Retrive DPB and return a GstCodecs.H265Picture corresponding to the system_frame_number

New in version 1.20.

set_process_ref_pic_lists(process)
Parameters:

process (bool) – whether subclass is requiring reference picture modification process

Called to en/disable reference picture modification process.

New in version 1.20.

do_decode_slice(picture, slice, ref_pic_list0, ref_pic_list1) virtual
Parameters:
Return type:

Gst.FlowReturn

Provides per slice data with parsed slice header and required raw bitstream for subclass to decode it. If GstCodecs.H265Decoder.set_process_ref_pic_lists() is called with True by the subclass, ref_pic_list0 and ref_pic_list1 are non-None.

do_end_picture(picture) virtual
Parameters:

picture (GstCodecs.H265Picture) – a GstCodecs.H265Picture

Return type:

Gst.FlowReturn

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

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:

int

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:
Return type:

Gst.FlowReturn

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

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

Gst.FlowReturn

do_start_picture(picture, slice, dpb) virtual
Parameters:
Return type:

Gst.FlowReturn

Optional. Called per one GstCodecs.H265Picture to notify subclass to prepare decoding process for the GstCodecs.H265Picture