diff options
| author | Michael Bommarito <michael.bommarito@gmail.com> | 2026-06-16 22:19:00 -0400 |
|---|---|---|
| committer | Hans Verkuil <hverkuil+cisco@kernel.org> | 2026-09-07 09:01:05 +0200 |
| commit | 592dd4f8442a13bed6e946d73d3164ba38b33bbd (patch) | |
| tree | 3a676513a7651916650ce355106e0dec452d6e48 /scripts/Makefile.thinlto | |
| parent | 439058ced617fbb3febc017b9e93bb7387f309e0 (diff) | |
| download | linux-592dd4f8442a13bed6e946d73d3164ba38b33bbd.tar.gz linux-592dd4f8442a13bed6e946d73d3164ba38b33bbd.zip | |
media: hevc: add bounded tile-count helpers
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 <michael.bommarito@gmail.com>
Assisted-by: Claude:claude-opus-4-8
Fixes: 256fa3920874 ("media: v4l: Add definitions for HEVC stateless decoding")
Cc: stable@vger.kernel.org
Reviewed-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
