From: Philipp Zabel Date: Mon, 5 Nov 2018 15:25:03 +0000 (-0500) Subject: media: coda: reduce minimum frame size to 48x16 pixels. X-Git-Tag: Ubuntu-5.2.0-15.16~2955^2~200 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=074e8db02cb4fa5890362bb6f11de5d055c03350;p=mirror_ubuntu-eoan-kernel.git media: coda: reduce minimum frame size to 48x16 pixels. Three macroblocks seem to be the minimum resolution that can be encoded and decoded by the CODA960 h.264 codec. Picture run commands fail for smaller resolutions. Signed-off-by: Philipp Zabel Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/coda/coda-common.c b/drivers/media/platform/coda/coda-common.c index e8b380f876b6..053c486d7bdc 100644 --- a/drivers/media/platform/coda/coda-common.c +++ b/drivers/media/platform/coda/coda-common.c @@ -51,8 +51,8 @@ #define CODA_ISRAM_SIZE (2048 * 2) -#define MIN_W 176 -#define MIN_H 144 +#define MIN_W 48 +#define MIN_H 16 #define S_ALIGN 1 /* multiple of 2 */ #define W_ALIGN 1 /* multiple of 2 */