gstmpegvideometa
Functions
gst_buffer_add_mpeg_video_meta
GstMpegVideoMeta * gst_buffer_add_mpeg_video_meta (GstBuffer * buffer, const GstMpegVideoSequenceHdr * seq_hdr, const GstMpegVideoSequenceExt * seq_ext, const GstMpegVideoSequenceDisplayExt * disp_ext, const GstMpegVideoPictureHdr * pic_hdr, const GstMpegVideoPictureExt * pic_ext, const GstMpegVideoQuantMatrixExt * quant_ext)
Creates and adds a GstMpegVideoMeta to a buffer.
Provided structures must either be NULL or GSlice-allocated.
Parameters:
buffer
–
seq_hdr
–
seq_ext
–
disp_ext
–
pic_hdr
–
pic_ext
–
quant_ext
–
a newly created GstMpegVideoMeta
Since : 1.2
gst_mpeg_video_meta_get_info
const GstMetaInfo * gst_mpeg_video_meta_get_info ()
Structures
GstMpegVideoMeta
struct _GstMpegVideoMeta { GstMeta meta; GstMpegVideoSequenceHdr *sequencehdr; GstMpegVideoSequenceExt *sequenceext; GstMpegVideoSequenceDisplayExt *sequencedispext; GstMpegVideoPictureHdr *pichdr; GstMpegVideoPictureExt *picext; GstMpegVideoQuantMatrixExt *quantext; guint num_slices; gsize slice_offset; };
Extra buffer metadata describing the contents of a MPEG1/2 Video frame
Can be used by elements (mainly decoders) to avoid having to parse Mpeg video 1/2 packets if it can be done upstream.
The various fields are only valid during the lifetime of the GstMpegVideoMeta. If elements wish to use those for longer, they are required to make a copy.
Fields
sequencehdr
(GstMpegVideoSequenceHdr *)
–
the GstMpegVideoSequenceHdr if present in the buffer
sequenceext
(GstMpegVideoSequenceExt *)
–
the GstMpegVideoSequenceExt if present in the buffer
sequencedispext
(GstMpegVideoSequenceDisplayExt *)
–
the GstMpegVideoSequenceDisplayExt if present in the buffer.
pichdr
(GstMpegVideoPictureHdr *)
–
the GstMpegVideoPictureHdr if present in the buffer.
picext
(GstMpegVideoPictureExt *)
–
the GstMpegVideoPictureExt if present in the buffer.
quantext
(GstMpegVideoQuantMatrixExt *)
–
the GstMpegVideoQuantMatrixExt if present in the buffer
num_slices
(guint)
–
slice_offset
(gsize)
–
The results of the search are