GstCodecs.Mpeg2Decoder¶
- Subclasses:
None
Methods¶
Virtual Methods¶
|
|
|
|
|
|
|
|
|
|
|
|
|
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
input_state |
r |
||
padding |
[ |
r |
|
parent |
r |
Class Details¶
- class GstCodecs.Mpeg2Decoder(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
The opaque
GstCodecs.Mpeg2Decoder
data structure.New in version 1.20.
- do_decode_slice(picture, slice) virtual¶
- Parameters:
picture (
GstCodecs.Mpeg2Picture
) – aGstCodecs.Mpeg2Picture
slice (
GstCodecs.Mpeg2Slice
) – aGstCodecs.Mpeg2Slice
- Return type:
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
) – aGstCodecs.Mpeg2Picture
- Return type:
Optional. Called per one
GstCodecs.Mpeg2Picture
to notify subclass to finish decoding process for theGstCodecs.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:
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:
first_field (
GstCodecs.Mpeg2Picture
) – the first fieldGstCodecs.Mpeg2Picture
already decodedsecond_field (
GstCodecs.Mpeg2Picture
) – aGstCodecs.Mpeg2Picture
for the second field
- Return type:
Called when a new field picture is created for interlaced field picture. Subclass can attach implementation specific user data on second_field via gst_mpeg2_picture_set_user_data
New in version 1.20.
- do_new_picture(frame, picture) virtual¶
- Parameters:
frame (
GstVideo.VideoCodecFrame
) – aGstVideo.VideoCodecFrame
picture (
GstCodecs.Mpeg2Picture
) – aGstCodecs.Mpeg2Picture
- Return type:
Optional. Called whenever new
GstCodecs.Mpeg2Picture
is created. Subclass can set implementation specific user data on theGstCodecs.Mpeg2Picture
via gst_mpeg2_picture_set_user_dataNew in version 1.20.
- do_output_picture(frame, picture) virtual¶
- Parameters:
frame (
GstVideo.VideoCodecFrame
) – aGstVideo.VideoCodecFrame
picture (
GstCodecs.Mpeg2Picture
) – aGstCodecs.Mpeg2Picture
- Return type:
Called with a
GstCodecs.Mpeg2Picture
which is required to be outputted. TheGstVideo.VideoCodecFrame
must be consumed by subclass.New in version 1.20.
- do_start_picture(picture, slice, prev_picture, next_picture) virtual¶
- Parameters:
picture (
GstCodecs.Mpeg2Picture
) – aGstCodecs.Mpeg2Picture
slice (
GstCodecs.Mpeg2Slice
) – aGstCodecs.Mpeg2Slice
prev_picture (
GstCodecs.Mpeg2Picture
) – aGstCodecs.Mpeg2Picture
next_picture (
GstCodecs.Mpeg2Picture
) – aGstCodecs.Mpeg2Picture
- Return type:
Optional. Called per one
GstCodecs.Mpeg2Picture
to notify subclass to prepare decoding process for theGstCodecs.Mpeg2Picture
New in version 1.20.