videocrop: Add support for GRAY16_LE/GRAY16_BE

https://bugzilla.gnome.org/show_bug.cgi?id=700331
This commit is contained in:
Joshua M. Doe 2013-05-14 10:28:10 -04:00 committed by Sebastian Dröge
parent 41e1af3751
commit 837dcfb363
2 changed files with 6 additions and 6 deletions

View file

@ -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,

View file

@ -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;