fix Y800 format

This commit is contained in:
Wim Taymans 2012-06-06 13:00:58 +02:00
parent 44d010277c
commit 37df608fdc
4 changed files with 4 additions and 7 deletions

View file

@ -58,7 +58,7 @@ enum
#define ASPECT_RATIO_CROP_CAPS \
GST_VIDEO_CAPS_MAKE ("{ RGBx, xRGB, BGRx, xBGR, " \
"RGBA, ARGB, BGRA, ABGR, RGB, BGR, AYUV, YUY2, " \
"YVYU, UYVY, Y800, I420, RGB16, RGB15, GRAY8 }")
"YVYU, UYVY, I420, RGB16, RGB15, GRAY8 }")
static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,

View file

@ -80,7 +80,7 @@ enum
#define VIDEO_CROP_CAPS \
GST_VIDEO_CAPS_MAKE ("{ RGBx, xRGB, BGRx, xBGR, " \
"RGBA, ARGB, BGRA, ABGR, RGB, BGR, AYUV, YUY2, " \
"YVYU, UYVY, Y800, I420, RGB16, RGB15, GRAY8 }")
"YVYU, UYVY, I420, RGB16, RGB15, GRAY8 }")
static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,

View file

@ -28,7 +28,7 @@
#define ASPECT_RATIO_CROP_CAPS \
GST_VIDEO_CAPS_MAKE ("{ RGBx, xRGB, BGRx, xBGR, " \
"RGBA, ARGB, BGRA, ABGR, RGB, BGR, AYUV, " \
"YUY2, YVYU, UYVY, Y800, I420, YV12, RGB16, " \
"YUY2, YVYU, UYVY, GRAY8, I420, YV12, RGB16, " \
"RGB15 }")
static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",

View file

@ -271,10 +271,7 @@ check_1x1_buffer (GstBuffer * buf, GstCaps * caps)
finfo = info.finfo;
if (GST_VIDEO_INFO_FORMAT (&info) == GST_VIDEO_FORMAT_Y800)
values = gray_values;
else if (GST_VIDEO_INFO_IS_YUV (&info))
if (GST_VIDEO_INFO_IS_YUV (&info))
values = yuv_values;
else if (GST_VIDEO_INFO_IS_GRAY (&info))
values = gray_values;