Top |
#define | GST_MPEG_VIDEO_META_API_TYPE |
#define | GST_MPEG_VIDEO_META_INFO |
GstMpegVideoMeta * | gst_buffer_add_mpeg_video_meta () |
#define | gst_buffer_get_mpeg_video_meta() |
const GstMetaInfo * | gst_mpeg_video_meta_get_info () |
#define GST_MPEG_VIDEO_META_API_TYPE (gst_mpeg_video_meta_api_get_type())
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.
Since: 1.2
#define gst_buffer_get_mpeg_video_meta(b) ((GstMpegVideoMeta*)gst_buffer_get_meta((b),GST_MPEG_VIDEO_META_API_TYPE))
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.
GstMeta |
parent GstMeta |
|
GstMpegVideoSequenceHdr * |
the GstMpegVideoSequenceHdr if present in the buffer |
|
GstMpegVideoSequenceExt * |
the GstMpegVideoSequenceExt if present in the buffer |
|
the GstMpegVideoSequenceDisplayExt if present in the buffer. |
||
GstMpegVideoPictureHdr * |
the GstMpegVideoPictureHdr if present in the buffer. |
|
GstMpegVideoPictureExt * |
the GstMpegVideoPictureExt if present in the buffer. |
|
GstMpegVideoQuantMatrixExt * |
the GstMpegVideoQuantMatrixExt if present in the buffer |
|
guint |
||
Since: 1.2