]> git.baikalelectronics.ru Git - kernel.git/commit
[media] coda: allow odd width, but still round up bytesperline
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 11 Jul 2014 09:36:37 +0000 (06:36 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 22 Jul 2014 15:11:48 +0000 (12:11 -0300)
commitf349fcc24de12c7d1e7fd177c0da9dcf578449d1
tree06df633d35a9812ca2a2fdf4816398218957414f
parent132d6359f11d829e8f7990677065e0e866dce061
[media] coda: allow odd width, but still round up bytesperline

Even though the CODA h.264 decoder always decodes complete macroblocks, we can
set the stride to the corresponding multiple of 16 and use a value smaller than
that as real width. Unfortunately the same doesn't work for height, as there
is no vertical linesperframe stride for discontiguous planar YUV frames.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/coda.c