]> git.baikalelectronics.ru Git - kernel.git/commit
media: hantro: Support cropping visible area for encoders
authorChen-Yu Tsai <wenst@chromium.org>
Fri, 7 Jan 2022 09:34:50 +0000 (10:34 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 28 Jan 2022 12:23:48 +0000 (13:23 +0100)
commit0a996ef90470682bdb2a9b4f406ff4dba5a56261
treeded5b5867d9d5bf5804ac8deebc9de510a2b6052
parentcc2ad34404d4d48c0ec07c63088060069392960c
media: hantro: Support cropping visible area for encoders

Encoders typically operate on macroblocks. Thus their output or coded
resolution is constrained to multiples of macroblocks. For frame sizes
not aligned to macroblocks, cropping is needed to limit the visible
area of the frame.

Add support for cropping on the output (source) side for encoders,
using the selection API.

Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/hantro/TODO
drivers/staging/media/hantro/hantro_h1_jpeg_enc.c
drivers/staging/media/hantro/hantro_v4l2.c
drivers/staging/media/hantro/rockchip_vpu2_hw_jpeg_enc.c