media: platform: Change the maximum width and height supported by JPEG dec
authorXia Jiang <xia.jiang@mediatek.com>
Fri, 14 Aug 2020 07:11:50 +0000 (09:11 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 28 Aug 2020 13:31:17 +0000 (15:31 +0200)
The maximum width and height supported by JPEG dec is 65535, so change
them from 8192 to 65535.

Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Xia Jiang <xia.jiang@mediatek.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/mtk-jpeg/mtk_jpeg_core.h

index 9b46b05..6106cfa 100644 (file)
@@ -25,8 +25,8 @@
 
 #define MTK_JPEG_MIN_WIDTH     32U
 #define MTK_JPEG_MIN_HEIGHT    32U
-#define MTK_JPEG_MAX_WIDTH     8192U
-#define MTK_JPEG_MAX_HEIGHT    8192U
+#define MTK_JPEG_MAX_WIDTH     65535U
+#define MTK_JPEG_MAX_HEIGHT    65535U
 
 #define MTK_JPEG_DEFAULT_SIZEIMAGE     (1 * 1024 * 1024)