Commit 37df608f authored by Wim Taymans's avatar Wim Taymans

fix Y800 format

parent 44d01027
......@@ -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,
......
......@@ -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,
......
......@@ -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",
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment