mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
videocrop: Add support for GRAY16_LE/GRAY16_BE
https://bugzilla.gnome.org/show_bug.cgi?id=700331
This commit is contained in:
parent
41e1af3751
commit
837dcfb363
2 changed files with 6 additions and 6 deletions
|
@ -54,11 +54,12 @@ enum
|
|||
ARG_ASPECT_RATIO_CROP,
|
||||
};
|
||||
|
||||
/* we support the same caps as videocrop */
|
||||
/* we support the same caps as videocrop (sync changes) */
|
||||
#define ASPECT_RATIO_CROP_CAPS \
|
||||
GST_VIDEO_CAPS_MAKE ("{ RGBx, xRGB, BGRx, xBGR, " \
|
||||
"RGBA, ARGB, BGRA, ABGR, RGB, BGR, AYUV, YUY2, " \
|
||||
"YVYU, UYVY, I420, RGB16, RGB15, GRAY8 }")
|
||||
"YVYU, UYVY, I420, YV12, RGB16, RGB15, GRAY8, " \
|
||||
"NV12, NV21, GRAY16_LE, GRAY16_BE }")
|
||||
|
||||
static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
|
||||
GST_PAD_SRC,
|
||||
|
|
|
@ -77,10 +77,12 @@ enum
|
|||
ARG_BOTTOM
|
||||
};
|
||||
|
||||
/* we support the same caps as aspectratiocrop (sync changes) */
|
||||
#define VIDEO_CROP_CAPS \
|
||||
GST_VIDEO_CAPS_MAKE ("{ RGBx, xRGB, BGRx, xBGR, " \
|
||||
"RGBA, ARGB, BGRA, ABGR, RGB, BGR, AYUV, YUY2, " \
|
||||
"YVYU, UYVY, I420, YV12, RGB16, RGB15, GRAY8, NV12, NV21 }")
|
||||
"YVYU, UYVY, I420, YV12, RGB16, RGB15, GRAY8, " \
|
||||
"NV12, NV21, GRAY16_LE, GRAY16_BE }")
|
||||
|
||||
static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
|
||||
GST_PAD_SRC,
|
||||
|
@ -694,9 +696,6 @@ gst_video_crop_set_info (GstVideoFilter * vfilter, GstCaps * in,
|
|||
crop->macro_y_off = 0;
|
||||
}
|
||||
break;
|
||||
case GST_VIDEO_FORMAT_GRAY8:
|
||||
crop->packing = VIDEO_CROP_PIXEL_FORMAT_PACKED_SIMPLE;
|
||||
break;
|
||||
case GST_VIDEO_FORMAT_I420:
|
||||
case GST_VIDEO_FORMAT_YV12:
|
||||
crop->packing = VIDEO_CROP_PIXEL_FORMAT_PLANAR;
|
||||
|
|
Loading…
Reference in a new issue