linux/drivers/staging/media
Jonas Karlman 2c49efa51e media: rkvdec: Fix frame size enumeration
[ Upstream commit f270005b99 ]

The VIDIOC_ENUM_FRAMESIZES ioctl should return all frame sizes (i.e.
width and height in pixels) that the device supports for the given pixel
format.

It doesn't make a lot of sense to return the frame-sizes in a stepwise
manner, which is used to enforce hardware alignments requirements for
CAPTURE buffers, for coded formats.

Instead, applications should receive an indication, about the maximum
supported frame size for that hardware decoder, via a continuous
frame-size enumeration.

Fixes: cd33c83044 ("media: rkvdec: Add the rkvdec driver")
Suggested-by: Alex Bee <knaerzche@gmail.com>
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-06-27 11:07:08 +01:00
..
atomisp media: atomisp: Add check for rgby_data memory allocation failure 2024-12-14 19:53:24 +01:00
deprecated media: ttpci: fix two memleaks in budget_av_attach 2024-03-26 18:20:51 -04:00
imx staging: media: imx: fix OF node leak in imx_media_add_of_subdevs() 2025-02-21 13:49:19 +01:00
ipu3 media: staging: ipu3-imgu: Set fields before media_entity_pads_init() 2024-04-03 15:19:23 +02:00
max96712 staging: media: max96712: fix kernel oops when removing module 2025-02-21 13:49:28 +01:00
meson/vdec media: meson: vdec: fix possible refcount leak in vdec_probe() 2022-09-24 08:55:43 +02:00
omap4iss media: Prefer designated initializers over memset for subdev pad ops 2023-05-24 17:32:36 +01:00
rkvdec media: rkvdec: Fix frame size enumeration 2025-06-27 11:07:08 +01:00
sunxi media: cedrus: h265: Fix configuring bitstream size 2024-03-26 18:20:49 -04:00
tegra-video staging: media: tegra-video: fix device_node use after free 2023-01-07 11:11:49 +01:00
Kconfig media: destage Hantro VPU driver 2022-08-31 10:23:50 +02:00
Makefile media: destage Hantro VPU driver 2022-08-31 10:23:50 +02:00