mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
update for metadata tags
This commit is contained in:
parent
63ace8872d
commit
1c05eeece5
4 changed files with 12 additions and 5 deletions
|
@ -153,13 +153,14 @@ const GstMetaInfo *
|
|||
gst_audio_downmix_meta_get_info (void)
|
||||
{
|
||||
static const GstMetaInfo *audio_downmix_meta_info = NULL;
|
||||
static const gchar *tags[] = { NULL };
|
||||
|
||||
if (audio_downmix_meta_info == NULL) {
|
||||
audio_downmix_meta_info =
|
||||
gst_meta_register (GST_AUDIO_DOWNMIX_META_API, "GstAudioDownmixMeta",
|
||||
sizeof (GstAudioDownmixMeta),
|
||||
gst_audio_downmix_meta_init,
|
||||
gst_audio_downmix_meta_free, gst_audio_downmix_meta_transform);
|
||||
gst_audio_downmix_meta_free, gst_audio_downmix_meta_transform, tags);
|
||||
}
|
||||
return audio_downmix_meta_info;
|
||||
}
|
||||
|
|
|
@ -52,12 +52,13 @@ const GstMetaInfo *
|
|||
gst_video_meta_get_info (void)
|
||||
{
|
||||
static const GstMetaInfo *video_meta_info = NULL;
|
||||
static const gchar *tags[] = { "memory", "colorspace", "size", NULL };
|
||||
|
||||
if (video_meta_info == NULL) {
|
||||
video_meta_info = gst_meta_register (GST_VIDEO_META_API, "GstVideoMeta",
|
||||
sizeof (GstVideoMeta),
|
||||
(GstMetaInitFunction) NULL,
|
||||
(GstMetaFreeFunction) NULL, gst_video_meta_transform);
|
||||
(GstMetaFreeFunction) NULL, gst_video_meta_transform, tags);
|
||||
}
|
||||
return video_meta_info;
|
||||
}
|
||||
|
@ -307,12 +308,13 @@ const GstMetaInfo *
|
|||
gst_video_crop_meta_get_info (void)
|
||||
{
|
||||
static const GstMetaInfo *video_crop_meta_info = NULL;
|
||||
static const gchar *tags[] = { "size", "orientation", NULL };
|
||||
|
||||
if (video_crop_meta_info == NULL) {
|
||||
video_crop_meta_info =
|
||||
gst_meta_register (GST_VIDEO_CROP_META_API, "GstVideoCropMeta",
|
||||
sizeof (GstVideoCropMeta), (GstMetaInitFunction) NULL,
|
||||
(GstMetaFreeFunction) NULL, gst_video_crop_meta_transform);
|
||||
(GstMetaFreeFunction) NULL, gst_video_crop_meta_transform, tags);
|
||||
}
|
||||
return video_crop_meta_info;
|
||||
}
|
||||
|
|
|
@ -53,13 +53,15 @@ const GstMetaInfo *
|
|||
gst_ximage_meta_get_info (void)
|
||||
{
|
||||
static const GstMetaInfo *ximage_meta_info = NULL;
|
||||
static const gchar *tags[] =
|
||||
{ "memory", "size", "colorspace", "orientation", NULL };
|
||||
|
||||
if (ximage_meta_info == NULL) {
|
||||
ximage_meta_info = gst_meta_register ("GstXImageMeta", "GstXImageMeta",
|
||||
sizeof (GstXImageMeta),
|
||||
(GstMetaInitFunction) NULL,
|
||||
(GstMetaFreeFunction) gst_ximage_meta_free,
|
||||
(GstMetaTransformFunction) NULL);
|
||||
(GstMetaTransformFunction) NULL, tags);
|
||||
}
|
||||
return ximage_meta_info;
|
||||
}
|
||||
|
|
|
@ -56,13 +56,15 @@ const GstMetaInfo *
|
|||
gst_xvimage_meta_get_info (void)
|
||||
{
|
||||
static const GstMetaInfo *xvimage_meta_info = NULL;
|
||||
static const gchar *tags[] =
|
||||
{ "memory", "size", "colorspace", "orientation", NULL };
|
||||
|
||||
if (xvimage_meta_info == NULL) {
|
||||
xvimage_meta_info = gst_meta_register ("GstXvImageMeta", "GstXvImageMeta",
|
||||
sizeof (GstXvImageMeta),
|
||||
(GstMetaInitFunction) NULL,
|
||||
(GstMetaFreeFunction) gst_xvimage_meta_free,
|
||||
(GstMetaTransformFunction) NULL);
|
||||
(GstMetaTransformFunction) NULL, tags);
|
||||
}
|
||||
return xvimage_meta_info;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue