From c77e820a52ebb0d1cf6c4ca36782f74ba7f500cd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 24 Dec 2012 12:31:09 +0100 Subject: [PATCH] mfc: Workaround for wrongly reported strides by FIMC --- sys/mfc/fimc/fimc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/mfc/fimc/fimc.c b/sys/mfc/fimc/fimc.c index cf68616..011dd06 100644 --- a/sys/mfc/fimc/fimc.c +++ b/sys/mfc/fimc/fimc.c @@ -471,6 +471,12 @@ fimc_set_dst_format_direct (Fimc * fimc, FimcColorFormat format, int width, stride[i] = fimc->dst_fmt.fmt.pix_mp.plane_fmt[i].bytesperline; } + /* FIXME: The device reports wrong strides */ + if (fimc->dst_format == FIMC_COLOR_FORMAT_YUV420P) { + stride[1] /= 2; + stride[2] /= 2; + } + return 0; } -- 2.7.4