media: coda: align internal mpeg4 framebuffers to 16x16 macroblocks
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 7 Jul 2017 09:58:29 +0000 (05:58 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 19 Jul 2017 19:20:35 +0000 (15:20 -0400)
commit551c675782dd4c4441f2c6a8a42380eb7f961616
tree0880bea33dc48cdef1f8aab4fbba4729f434a553
parent52fde8491d834a82334f8be54c3560e0e83ddbdb
media: coda: align internal mpeg4 framebuffers to 16x16 macroblocks

This fixes visual artifacts in the first macroblock row of encoded
MPEG-4 video output caused by 8 additional lines of luma data leaking
into the chroma planes of the internal reference framebuffers: the
buffer size is rounded up to a multiple of 16x16 macroblock size, same
as for the h.264 encoder.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/coda/coda-bit.c