mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-14 11:25:39 +00:00
video-format: Add GST_VIDEO_CAPS_MAKE_WITH_FEATURES() macro
This commit is contained in:
parent
f14c4bbbd7
commit
229d7aa910
1 changed files with 16 additions and 0 deletions
|
@ -470,6 +470,22 @@ gconstpointer gst_video_format_get_palette (GstVideoFormat format, gsi
|
||||||
"height = " GST_VIDEO_SIZE_RANGE ", " \
|
"height = " GST_VIDEO_SIZE_RANGE ", " \
|
||||||
"framerate = " GST_VIDEO_FPS_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
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_VIDEO_FORMAT_H__ */
|
#endif /* __GST_VIDEO_FORMAT_H__ */
|
||||||
|
|
Loading…
Reference in a new issue