summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2025-03-05 12:22:01 +0300
committerHans Verkuil <hverkuil@xs4all.nl>2025-05-06 14:06:30 +0300
commit454ad0169cf7bb09e622c5bc40275ea725ab3a8a (patch)
tree59d48370f07f4c2916b37e5a348fa4e2be13aba4 /tools/perf/scripts/python/export-to-postgresql.py
parent65e52d07f1aada509c85c1bb86ce80dd8a5ce0c8 (diff)
downloadlinux-454ad0169cf7bb09e622c5bc40275ea725ab3a8a.tar.xz
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions