]> git.baikalelectronics.ru Git - kernel.git/commit
media: ti-vpe: cal: Properly calculate max resolution boundary
authorBenoit Parrot <bparrot@ti.com>
Tue, 12 Nov 2019 14:53:44 +0000 (15:53 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 9 Dec 2019 10:39:34 +0000 (11:39 +0100)
commit5da3f56e32de0a127679faced175affc77139d87
treee7dc20922efdf76ea8b2d1aa513af9d175665801
parent8b538802c74afa9fd985047c9e13e8d5b73a8e53
media: ti-vpe: cal: Properly calculate max resolution boundary

Currently we were using an arbitrarily small maximum resolution mostly
based on available sensor capabilities. However the hardware DMA limits
are much higher than the statically define maximum resolution we were
using.

There we rework the boundary check code to handle the maximum width and
height based on the maximum line width in bytes and re-calculating the
pixel width based on the given pixel format.

Signed-off-by: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/ti-vpe/cal.c