From 18500664b012fe7c2174fedd1d4bc28cebbe5bda Mon Sep 17 00:00:00 2001 From: Jussi Saavalainen Date: Fri, 5 Apr 2013 17:18:53 +0300 Subject: [PATCH] Drop still shot resolution step requirement to 4/4 Everything in the pipeline should now handle 4x4 steps, so don't adjust the resolution more than that. Change-Id: I7d1c3cd8dfa51fb04af6453df6064b01ae82e2d0 --- gst/mfldv4l2cam/v4l2camsrc_calls.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gst/mfldv4l2cam/v4l2camsrc_calls.c b/gst/mfldv4l2cam/v4l2camsrc_calls.c index 7b6331b..51f2eaf 100644 --- a/gst/mfldv4l2cam/v4l2camsrc_calls.c +++ b/gst/mfldv4l2cam/v4l2camsrc_calls.c @@ -2532,9 +2532,9 @@ gst_v4l2camsrc_set_capture (GstCameraSrc * camsrc, GstOperationMode mode, "%" GST_FOURCC_FORMAT, *width, *height, GST_FOURCC_ARGS (*pixelformat)); if (try_only) { - /* Round width & height down to be dividable by 8 */ - *width = (*width) & ~7; - *height = (*height) & ~7; + /* Round width & height down to be dividable by 4 */ + *width = (*width) & ~3; + *height = (*height) & ~3; ret = TRUE; } else { ret = gst_v4l2camsrc_configure_device (v4l2camsrc, pixelformat, -- 2.7.4