linux-mainline/include/media
Sakari Ailus 454ad0169c media: common: Add v4l2_find_nearest_size_conditional()
v4l2_find_nearest_size() returns a mode from sensor driver's mode list
that is a best match width and height wise for the sensor. Some drivers
have different set of available modes depending on the number of lanes.
While this could be handled within a driver by providing different lists
of modes, provide a helper v4l2_find_nearest_size_conditional() to ignore
modes that aren't available.

Also use size_t for the array index and remove extra commas while at it.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2025-05-06 13:06:30 +02:00
..
davinci
drv-intf
i2c
tpg
cec-notifier.h
cec-pin.h
cec.h
demux.h
dmxdev.h
dvb_ca_en50221.h
dvb_demux.h
dvb_frontend.h
dvb_net.h
dvb_ringbuffer.h
dvb_vb2.h
dvb-usb-ids.h
dvbdev.h
frame_vector.h
imx.h
ipu6-pci-table.h
ipu-bridge.h
jpeg.h
media-dev-allocator.h
media-device.h
media-devnode.h
media-entity.h
media-request.h
mipi-csi2.h
rc-core.h media: rc: reduce useless padding in struct rc_dev etc 2025-03-04 15:56:11 +01:00
rc-map.h media: rc: add keymap for Siemens Gigaset RC20 remote 2025-02-13 12:12:31 +01:00
rcar-fcp.h
tuner-types.h media: tuners: Constify struct tunertype, tuner_range and tuner_params 2025-02-21 10:33:15 +01:00
tuner.h
tveeprom.h
v4l2-async.h
v4l2-cci.h
v4l2-common.h media: common: Add v4l2_find_nearest_size_conditional() 2025-05-06 13:06:30 +02:00
v4l2-ctrls.h media: v4l2-core: Introduce v4l2_query_ext_ctrl_to_v4l2_queryctrl 2025-03-05 10:43:26 +01:00
v4l2-dev.h
v4l2-device.h
v4l2-dv-timings.h media: v4l2-dv-timings: add v4l2_num_edid_blocks() helper 2025-02-18 08:11:37 +01:00
v4l2-event.h
v4l2-fh.h
v4l2-flash-led-class.h
v4l2-fwnode.h
v4l2-h264.h
v4l2-image-sizes.h
v4l2-ioctl.h media: v4l2: Remove vidioc_s_ctrl callback 2025-03-05 10:43:26 +01:00
v4l2-jpeg.h
v4l2-mc.h
v4l2-mediabus.h media: v4l: Support obtaining link frequency via get_mbus_config 2025-02-15 15:22:53 +01:00
v4l2-mem2mem.h
v4l2-rect.h
v4l2-subdev.h media: v4l: Memset argument to 0 before calling get_mbus_config pad op 2025-02-15 15:22:54 +01:00
v4l2-vp9.h
videobuf2-core.h
videobuf2-dma-contig.h
videobuf2-dma-sg.h
videobuf2-dvb.h
videobuf2-memops.h
videobuf2-v4l2.h
videobuf2-vmalloc.h
vsp1.h media: renesas: vsp1: Expose color space through the DRM API 2025-05-02 10:16:44 +02:00