From: Bård Eirik Winther <bwinther@xxxxxxxxx> Add the remaining 16-bit bayer formats to rle_calc_bpl, namely: V4L2_PIX_FMT_SGBRG16 V4L2_PIX_FMT_SGRBG16 V4L2_PIX_FMT_SRGGB16 Signed-off-by: Bård Eirik Winther <bwinther@xxxxxxxxx> --- utils/common/v4l-stream.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/common/v4l-stream.c b/utils/common/v4l-stream.c index 772de727..89f57379 100644 --- a/utils/common/v4l-stream.c +++ b/utils/common/v4l-stream.c @@ -51,6 +51,9 @@ unsigned rle_calc_bpl(unsigned bpl, __u32 pixelformat) case V4L2_PIX_FMT_SGRBG12: case V4L2_PIX_FMT_SRGGB12: case V4L2_PIX_FMT_SBGGR16: + case V4L2_PIX_FMT_SGBRG16: + case V4L2_PIX_FMT_SGRBG16: + case V4L2_PIX_FMT_SRGGB16: return 2 * bpl; default: return bpl; -- 2.17.1