linux/drivers/staging/media
Jonas Karlman 9d6e355a26 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-19 15:31:34 +02:00
..
atomisp media: atomisp: Add check for rgby_data memory allocation failure 2024-12-05 14:01:34 +01:00
av7110 media fixes for v6.12-rc7 2024-11-08 07:41:27 -10:00
deprecated/atmel staging: media: atmel: use for_each_endpoint_of_node() 2024-08-09 07:56:39 +02:00
imx staging: media: imx: fix OF node leak in imx_media_add_of_subdevs() 2025-02-08 09:57:54 +01:00
ipu3 staging: media: ipu3: Stop streaming in inverse order of starting 2024-08-31 09:40:42 +02:00
max96712 staging: media: max96712: fix kernel oops when removing module 2025-02-08 09:58:17 +01:00
meson/vdec media: meson: vdec: hevc: Refactor vdec_hevc_start and vdec_hevc_stop 2024-08-31 09:40:43 +02:00
omap4iss media: v4l: subdev: Switch to stream-aware state functions 2023-11-23 18:57:47 +01:00
rkvdec media: rkvdec: Fix frame size enumeration 2025-06-19 15:31:34 +02:00
starfive staging: media: starfive: Add the dynamic resolution support 2024-08-25 01:42:01 +03:00
sunxi media: staging: sun6i-isp: Remove redundant printk 2024-05-03 11:07:33 +01:00
tegra-video media: staging: media: tegra-video: Use swap macro 2024-05-03 11:10:00 +01:00
Kconfig media: staging: media: starfive: camss: Add core driver 2023-11-16 12:13:25 +01:00
Makefile media: staging: media: starfive: camss: Add core driver 2023-11-16 12:13:25 +01:00