From bf8fff4e33982c993de81e30b85b5aab47e3616e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 7 Apr 2010 17:21:43 +0200 Subject: [PATCH] video: API: Add GST_VIDEO_CAPS_GRAY{8,16} --- docs/libs/gst-plugins-base-libs-sections.txt | 2 ++ gst-libs/gst/video/video.h | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/docs/libs/gst-plugins-base-libs-sections.txt b/docs/libs/gst-plugins-base-libs-sections.txt index 5b0007740d..71ddfe911f 100644 --- a/docs/libs/gst-plugins-base-libs-sections.txt +++ b/docs/libs/gst-plugins-base-libs-sections.txt @@ -1816,6 +1816,8 @@ GST_VIDEO_CAPS_YUV GST_VIDEO_CAPS_xBGR GST_VIDEO_CAPS_xRGB GST_VIDEO_CAPS_xRGB_HOST_ENDIAN +GST_VIDEO_CAPS_GRAY8 +GST_VIDEO_CAPS_GRAY16 GST_VIDEO_FPS_RANGE GST_VIDEO_GREEN_MASK_15 GST_VIDEO_GREEN_MASK_15_INT diff --git a/gst-libs/gst/video/video.h b/gst-libs/gst/video/video.h index 070e6181a9..e92a0f15fb 100644 --- a/gst-libs/gst/video/video.h +++ b/gst-libs/gst/video/video.h @@ -247,6 +247,23 @@ typedef enum { "height = " GST_VIDEO_SIZE_RANGE ", " \ "framerate = " GST_VIDEO_FPS_RANGE +#define GST_VIDEO_CAPS_GRAY8 \ + "video/x-raw-gray, " \ + "bpp = (int) 8, " \ + "depth = (int) 8, " \ + "width = " GST_VIDEO_SIZE_RANGE ", " \ + "height = " GST_VIDEO_SIZE_RANGE ", " \ + "framerate = " GST_VIDEO_FPS_RANGE + +#define GST_VIDEO_CAPS_GRAY16(endianness) \ + "video/x-raw-gray, " \ + "bpp = (int) 16, " \ + "depth = (int) 16, " \ + "endianness = (int) " endianness ", " \ + "width = " GST_VIDEO_SIZE_RANGE ", " \ + "height = " GST_VIDEO_SIZE_RANGE ", " \ + "framerate = " GST_VIDEO_FPS_RANGE + /* buffer flags */ /**