GstMpeg2Decoder
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstElement ╰──GstVideoDecoder ╰──GstMpeg2Decoder
The opaque GstMpeg2Decoder data structure.
Since : 1.20
Class structure
Virtual Methods
decode_slice
GstFlowReturn decode_slice (GstMpeg2Decoder * decoder, GstMpeg2Picture * picture, GstMpeg2Slice * slice)
Provides per slice data with parsed slice header and required raw bitstream for subclass to decode it.
Parameters:
decoder
–
picture
(
[transfer: none])
–
slice
(
[transfer: none])
–
Since : 1.20
end_picture
GstFlowReturn end_picture (GstMpeg2Decoder * decoder, GstMpeg2Picture * picture)
Optional. Called per one GstMpeg2Picture to notify subclass to finish decoding process for the GstMpeg2Picture
Since : 1.20
get_preferred_output_delay
guint get_preferred_output_delay (GstMpeg2Decoder * decoder, gboolean is_live)
Optional. Called by baseclass to query whether delaying output is preferred by subclass or not.
the number of perferred delayed output frames
Since : 1.20
new_field_picture
GstFlowReturn new_field_picture (GstMpeg2Decoder * decoder, GstMpeg2Picture * first_field, GstMpeg2Picture * second_field)
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
Parameters:
decoder
–
first_field
(
[transfer: none])
–
the first field GstMpeg2Picture already decoded
second_field
(
[transfer: none])
–
a GstMpeg2Picture for the second field
Since : 1.20
new_picture
GstFlowReturn new_picture (GstMpeg2Decoder * decoder, GstVideoCodecFrame * frame, GstMpeg2Picture * picture)
Optional. Called whenever new GstMpeg2Picture is created. Subclass can set implementation specific user data on the GstMpeg2Picture via gst_mpeg2_picture_set_user_data
Parameters:
decoder
–
frame
(
[transfer: none])
–
picture
(
[transfer: none])
–
Since : 1.20
new_sequence
GstFlowReturn new_sequence (GstMpeg2Decoder * decoder, const GstMpegVideoSequenceHdr * seq, const GstMpegVideoSequenceExt * seq_ext, const GstMpegVideoSequenceDisplayExt * seq_display_ext, const GstMpegVideoSequenceScalableExt * seq_scalable_ext, gint max_dpb_size)
Notifies subclass of SPS update
Parameters:
decoder
–
seq
–
seq_ext
–
seq_display_ext
–
seq_scalable_ext
–
max_dpb_size
–
the size of dpb including preferred output delay by subclass reported via get_preferred_output_delay method.
Since : 1.20
output_picture
GstFlowReturn output_picture (GstMpeg2Decoder * decoder, GstVideoCodecFrame * frame, GstMpeg2Picture * picture)
Called with a GstMpeg2Picture which is required to be outputted. The GstVideoCodecFrame must be consumed by subclass.
Parameters:
decoder
–
frame
(
[transfer: full])
–
picture
(
[transfer: full])
–
Since : 1.20
start_picture
GstFlowReturn start_picture (GstMpeg2Decoder * decoder, GstMpeg2Picture * picture, GstMpeg2Slice * slice, GstMpeg2Picture * prev_picture, GstMpeg2Picture * next_picture)
Optional. Called per one GstMpeg2Picture to notify subclass to prepare decoding process for the GstMpeg2Picture
Parameters:
decoder
–
picture
(
[transfer: none])
–
slice
(
[transfer: none])
–
prev_picture
(
[transfer: none])
–
next_picture
(
[transfer: none])
–
Since : 1.20
Methods
gst_mpeg2_dpb_add
gst_mpeg2_dpb_add (GstMpeg2Dpb * dpb, GstMpeg2Picture * picture)
Store the picture
Since : 1.20
gst_mpeg2_dpb_bump
GstMpeg2Picture * gst_mpeg2_dpb_bump (GstMpeg2Dpb * dpb)
Parameters:
dpb
–
a GstMpeg2Picture which is needed to be outputted
Since : 1.20
gst_mpeg2_dpb_clear
gst_mpeg2_dpb_clear (GstMpeg2Dpb * dpb)
Clear all stored GstMpeg2Picture
Parameters:
dpb
–
Since : 1.20
gst_mpeg2_dpb_free
gst_mpeg2_dpb_free (GstMpeg2Dpb * dpb)
Free the dpb
Parameters:
dpb
–
a GstMpeg2Dpb to free
Since : 1.20
gst_mpeg2_dpb_get_neighbours
gst_mpeg2_dpb_get_neighbours (GstMpeg2Dpb * dpb, GstMpeg2Picture * picture, GstMpeg2Picture ** prev_picture_ptr, GstMpeg2Picture ** next_picture_ptr)
Gets the neighbours GstMpeg2Picture of picture in dpb.
Parameters:
dpb
–
picture
–
current GstMpeg2Picture
prev_picture_ptr
(
[transfer: none][out][nullable])
–
previuous GstMpeg2Picture in dpb
next_picture_ptr
(
[transfer: none][out][nullable])
–
next GstMpeg2Picture in dpb
Since : 1.20
gst_mpeg2_dpb_need_bump
gboolean gst_mpeg2_dpb_need_bump (GstMpeg2Dpb * dpb)
Checks if dbp has a new picture.
Parameters:
dpb
–
Since : 1.20
Functions
gst_mpeg2_dpb_new
GstMpeg2Dpb * gst_mpeg2_dpb_new ()
Create new GstMpeg2Dpb
a new GstMpeg2Dpb
Since : 1.20
Constructors
gst_mpeg2_picture_new
GstMpeg2Picture * gst_mpeg2_picture_new ()
Create new GstMpeg2Picture
a new GstMpeg2Picture
Since : 1.20
Function Macros
Constants
The results of the search are