mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 12:53:14 +01:00
The stateless HEVC decoders compute the number of tile columns and rows
from num_tile_columns_minus1 / num_tile_rows_minus1 and clamp it to the
column_width_minus1[] / row_height_minus1[] capacity before using it as a
loop bound. Add shared helpers in a new <media/v4l2-hevc.h> so the rkvdec
and hantro drivers do not each open-code the min_t() clamp.
Signed-off-by: Michael Bommarito <[email protected]>
Assisted-by: Claude:claude-opus-4-8
Fixes: 256fa39208 ("media: v4l: Add definitions for HEVC stateless decoding")
Cc: [email protected]
Reviewed-by: Benjamin Gaignard <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>