]> git.baikalelectronics.ru Git - kernel.git/commit
[media] exynos4-is: fimc: Roundup imagesize to row size for tiled formats
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 26 Mar 2014 22:48:39 +0000 (19:48 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 16 Nov 2016 18:24:53 +0000 (16:24 -0200)
commitb4adb9a7e777416eb54b44a952b0d6d4cc360d65
treed8d0583295666e000329122b2101ba9b06369191
parent45602c1de5b363827e66f900fe60a99bd5d6eef9
[media] exynos4-is: fimc: Roundup imagesize to row size for tiled formats

For tiled format, we need to allocated a multiple of the row size. A
good example is for 1280x720, wich get adjusted to 1280x736. In tiles,
this mean Y plane is 20x23 and UV plane 20x12. Because of the rounding,
the previous code would only have enough space to fit half of the last
row.

[mchehab@s-opensource.com: fix coding style]
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/exynos4-is/fimc-core.c