media: hantro: output encoded JPEG content directly to capture buffers
authorChen-Yu Tsai <wenst@chromium.org>
Fri, 7 Jan 2022 09:34:54 +0000 (10:34 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 28 Jan 2022 12:27:12 +0000 (13:27 +0100)
commitdc8bfe1e482de4395cf39f2c7cb3b885793ec7b8
tree299e0ef031f240d46cd38e9e63459d1dad889482
parent7464f055e9c348b86ca09abf7f2c2df017cdedbf
media: hantro: output encoded JPEG content directly to capture buffers

Now that the JPEG header length is aligned with bus access boundaries,
the JPEG encoder can output to the capture buffers directly without
going through a bounce buffer.

Do just that, and get rid of all the bounce buffer related code.

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.h
drivers/staging/media/hantro/hantro_drv.c
drivers/staging/media/hantro/hantro_h1_jpeg_enc.c
drivers/staging/media/hantro/hantro_hw.h
drivers/staging/media/hantro/hantro_jpeg.c
drivers/staging/media/hantro/rockchip_vpu2_hw_jpeg_enc.c
drivers/staging/media/hantro/rockchip_vpu_hw.c