mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-29 11:44:39 -04:00
media: hantro: HEVC: Fix chroma offset computation
The chroma offset depends of the bitstream depth. Make sure that ctx->bit_depth is used to compute it. Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com> 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>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
8a438580a0
commit
f64853ad7f
@@ -12,7 +12,7 @@
|
||||
|
||||
static size_t hantro_hevc_chroma_offset(struct hantro_ctx *ctx)
|
||||
{
|
||||
return ctx->dst_fmt.width * ctx->dst_fmt.height;
|
||||
return ctx->dst_fmt.width * ctx->dst_fmt.height * ctx->bit_depth / 8;
|
||||
}
|
||||
|
||||
static size_t hantro_hevc_motion_vectors_offset(struct hantro_ctx *ctx)
|
||||
|
||||
Reference in New Issue
Block a user