FLAG_IMAGE = (1 << 4), /* format is an image format, or image container/tag */
FLAG_SUB = (1 << 5), /* format is a subtitle format, or subtitle container */
FLAG_TAG = (1 << 6), /* format is a tag/container */
- FLAG_GENERIC = (1 << 7) /* format is a generic container (e.g. multipart) */
+ FLAG_GENERIC = (1 << 7), /* format is a generic container (e.g. multipart) */
+ FLAG_METADATA = (1 << 8), /* format is a metadata format, or metadata container/tag */
} FormatFlags;
typedef struct
{"video/x-svq", NULL, FLAG_VIDEO, ""},
{"video/x-wmv", NULL, FLAG_VIDEO, ""},
{"video/x-xan", NULL, FLAG_VIDEO, ""},
- {"video/x-tscc", NULL, FLAG_VIDEO, ""}
+ {"video/x-tscc", NULL, FLAG_VIDEO, ""},
+ {"application/x-onvif-metadata", "ONVIF XML Timed MetaData", FLAG_METADATA, ""}
};
static const gchar *
flags |= GST_PBUTILS_CAPS_DESCRIPTION_FLAG_TAG;
if ((info->flags | FLAG_GENERIC))
flags |= GST_PBUTILS_CAPS_DESCRIPTION_FLAG_GENERIC;
+ if ((info->flags | FLAG_METADATA))
+ flags |= GST_PBUTILS_CAPS_DESCRIPTION_FLAG_METADATA;
}
gst_caps_unref (tmp);
* @GST_PBUTILS_CAPS_DESCRIPTION_FLAG_TAG: Container format is a tags container.
* @GST_PBUTILS_CAPS_DESCRIPTION_FLAG_GENERIC: Container format can store any kind of
* stream type.
+ * @GST_PBUTILS_CAPS_DESCRIPTION_FLAG_METADATA: Caps describe a metadata
+ * format, or a container format that can store metadata.
*
* Flags that are returned by gst_pb_utils_get_caps_description_flags() and
* describe the format of the caps.
GST_PBUTILS_CAPS_DESCRIPTION_FLAG_SUBTITLE = 1 << 4,
GST_PBUTILS_CAPS_DESCRIPTION_FLAG_TAG = 1 << 5,
GST_PBUTILS_CAPS_DESCRIPTION_FLAG_GENERIC = 1 << 6,
+
+ /**
+ * GST_PBUTILS_CAPS_DESCRIPTION_FLAG_METADATA:
+ *
+ * Caps describe a metadata format, or a container format that can store
+ * metadata.
+ *
+ * Since: 1.22
+ */
+
+ GST_PBUTILS_CAPS_DESCRIPTION_FLAG_METADATA = 1 << 7,
} GstPbUtilsCapsDescriptionFlags;
/*