]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
media: coda: reduce minimum frame size to 48x16 pixels.
authorPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 5 Nov 2018 15:25:03 +0000 (10:25 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 23 Nov 2018 10:27:25 +0000 (05:27 -0500)
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 <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/coda/coda-common.c

index e8b380f876b6c7602ea7451c2e9a90ade70323b9..053c486d7bdc70b30ead9b53eb76c0f606366e92 100644 (file)
@@ -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 */