media: ti-vpe: cal: Fix pixel processing parameters
authorBenoit Parrot <bparrot@ti.com>
Tue, 12 Nov 2019 14:53:37 +0000 (15:53 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 9 Dec 2019 10:28:07 +0000 (11:28 +0100)
commitcd0dacc256fc182b75d9b09e52237b222ab39e6b
treec7b41fb7aeae05d5985c0cc61fb5934a29dec981
parent5f9f2fb7c46f00d1b6a7b1ab743daf8f993148d4
media: ti-vpe: cal: Fix pixel processing parameters

The pixel processing unit was hard coded to only handle 8 bits per pixel
from input to output.

We now add handling for 10, 12 and 16 bits per pixel at the source and
setting the in-memory size (i.e. container size) to 16 bits for these 3
cases.

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