GstCodecs.Mpeg2Decoder

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

Subclasses:

None

Methods

Inherited:

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

Structs:

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

Virtual Methods

Inherited:

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

do_decode_slice (picture, slice)

do_end_picture (picture)

do_get_preferred_output_delay (is_live)

do_new_field_picture (first_field, second_field)

do_new_picture (frame, picture)

do_output_picture (frame, picture)

do_start_picture (picture, slice, prev_picture, next_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

Class Details

class GstCodecs.Mpeg2Decoder(**kwargs)
Bases:

GstVideo.VideoDecoder

Abstract:

Yes

Structure:

GstCodecs.Mpeg2DecoderClass

The opaque GstCodecs.Mpeg2Decoder data structure.

New in version 1.20.

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

Gst.FlowReturn

Provides per slice data with parsed slice header and required raw bitstream for subclass to decode it.

New in version 1.20.

do_end_picture(picture) virtual
Parameters:

picture (GstCodecs.Mpeg2Picture) – a GstCodecs.Mpeg2Picture

Return type:

Gst.FlowReturn

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

New in version 1.20.

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 frames

Return type:

int

Optional. Called by baseclass to query whether delaying output is preferred by subclass or not.

New in version 1.20.

do_new_field_picture(first_field, second_field) virtual
Parameters:
Return type:

Gst.FlowReturn

Called when a new field picture is created for interlaced field picture. Subclass can attach implementation specific user data on second_field via GstCodecs.Mpeg2Picture.set_user_data()

New in version 1.20.

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

Gst.FlowReturn

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

New in version 1.20.

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

Gst.FlowReturn

Called with a GstCodecs.Mpeg2Picture which is required to be outputted. The GstVideo.VideoCodecFrame must be consumed by subclass.

New in version 1.20.

do_start_picture(picture, slice, prev_picture, next_picture) virtual
Parameters:
Return type:

Gst.FlowReturn

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

New in version 1.20.