OSDN Git Service

media: cedrus: Increase maximum supported size
authorJernej Skrabec <jernej.skrabec@siol.net>
Wed, 6 Nov 2019 21:05:38 +0000 (22:05 +0100)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Sun, 10 Nov 2019 06:44:10 +0000 (07:44 +0100)
There are few variations of 4k resolutions. The biggest one is
4096x2304 which is also supported by HW. It has also nice property that
both width and size are divisible by maximum HEVC CTB size, which is 64.

Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
Acked-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/sunxi/cedrus/cedrus_video.c

index cc15a5c..15cf1f1 100644 (file)
@@ -29,8 +29,8 @@
 
 #define CEDRUS_MIN_WIDTH       16U
 #define CEDRUS_MIN_HEIGHT      16U
-#define CEDRUS_MAX_WIDTH       3840U
-#define CEDRUS_MAX_HEIGHT      2160U
+#define CEDRUS_MAX_WIDTH       4096U
+#define CEDRUS_MAX_HEIGHT      2304U
 
 static struct cedrus_format cedrus_formats[] = {
        {