mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 04:52:28 +00:00
fix Y800 format
This commit is contained in:
parent
44d010277c
commit
37df608fdc
4 changed files with 4 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue