diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2013-04-01 10:21:18 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2013-04-01 10:22:04 +0200 |
commit | 229d7aa910c9034aeb54994cc3aadea7614526b1 (patch) | |
tree | d881fe3cb77b77bd3d4e888eece736009d5e4849 | |
parent | f14c4bbbd7c409ec571a99ee58b612243c51b1aa (diff) |
video-format: Add GST_VIDEO_CAPS_MAKE_WITH_FEATURES() macro
-rw-r--r-- | gst-libs/gst/video/video-format.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gst-libs/gst/video/video-format.h b/gst-libs/gst/video/video-format.h index e5a878f32..37a9a408a 100644 --- a/gst-libs/gst/video/video-format.h +++ b/gst-libs/gst/video/video-format.h @@ -470,6 +470,22 @@ gconstpointer gst_video_format_get_palette (GstVideoFormat format, gsi "height = " GST_VIDEO_SIZE_RANGE ", " \ "framerate = " GST_VIDEO_FPS_RANGE +/** + * GST_VIDEO_CAPS_MAKE_WITH_FEATURES: + * @format: string format that describes the pixel layout, as string + * (e.g. "I420", "RGB", "YV12", "YUY2", "AYUV", etc.) + * @features: Requires caps features as a string, e.g. + * "memory:SystemMemory". + * + * Generic caps string for video, for use in pad templates. + */ +#define GST_VIDEO_CAPS_MAKE_WITH_FEATURES(features,format) \ + "video/x-raw(" features "), " \ + "format = (string) " format ", " \ + "width = " GST_VIDEO_SIZE_RANGE ", " \ + "height = " GST_VIDEO_SIZE_RANGE ", " \ + "framerate = " GST_VIDEO_FPS_RANGE + G_END_DECLS #endif /* __GST_VIDEO_FORMAT_H__ */ |