]> asedeno.scripts.mit.edu Git - linux.git/commit
[media] vcodec:mediatek: Fix visible_height larger than coded_height issue in s_fmt_out
authorTiffany Lin <tiffany.lin@mediatek.com>
Mon, 15 Aug 2016 03:08:03 +0000 (00:08 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 24 Aug 2016 14:26:41 +0000 (11:26 -0300)
commit91ae0e1ec6ec91cd297933886b424f9a4a8acbd4
tree0b8be6431ca01f6fe20b1678542cf84946ec4d83
parentad34f5412d2a04a894b2cd2912538ae2e5d64e76
[media] vcodec:mediatek: Fix visible_height larger than coded_height issue in s_fmt_out

The original code add extra 32 line to visible_height.
It is incorrect, 32 line should be add to coded_height.
The purpose is that user space could calcuate real buffer size needed by using
coded_width * coded_height.
But this method will make v4l2-compliance test fail, since g_fmt != s_fmt(g_fmt)
So remove extend visible_height or coded_height, user space should just
use sizeimage to get real buffer size needed

Signed-off-by: Tiffany Lin <tiffany.lin@mediatek.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c