diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2018-02-08 07:00:48 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-03-21 11:21:33 -0400 |
commit | 3c91d24fcd89c6b40bc3d4741311bc046456291d (patch) | |
tree | db6bb3089cd3a7a26c013e9a3b73309709650f08 /include/media/v4l2-common.h | |
parent | ac53212880a1af2191fd469dab275b94cd9d13c8 (diff) | |
download | linux-stable-3c91d24fcd89c6b40bc3d4741311bc046456291d.tar.gz linux-stable-3c91d24fcd89c6b40bc3d4741311bc046456291d.tar.bz2 linux-stable-3c91d24fcd89c6b40bc3d4741311bc046456291d.zip |
media: v4l: common: Remove v4l2_find_nearest_format
v4l2_find_nearest_format is not useful for drivers in finding the best
matching format as it assumes a V4L2 specific struct. Drivers will use
v4l2_find_nearest_size instead.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'include/media/v4l2-common.h')
-rw-r--r-- | include/media/v4l2-common.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/include/media/v4l2-common.h b/include/media/v4l2-common.h index 38947dc42ab6..160bca96d524 100644 --- a/include/media/v4l2-common.h +++ b/include/media/v4l2-common.h @@ -316,23 +316,6 @@ void v4l_bound_align_image(unsigned int *width, unsigned int wmin, unsigned int salign); /** - * v4l2_find_nearest_format - find the nearest format size among a discrete - * set of resolutions. - * - * @sizes: array of &struct v4l2_frmsize_discrete image sizes. - * @num_sizes: length of @sizes array. - * @width: desired width. - * @height: desired height. - * - * Finds the closest resolution to minimize the width and height differences - * between what requested and the supported resolutions. - */ -const struct v4l2_frmsize_discrete * -v4l2_find_nearest_format(const struct v4l2_frmsize_discrete *sizes, - const size_t num_sizes, - s32 width, s32 height); - -/** * v4l2_find_nearest_size - Find the nearest size among a discrete * set of resolutions contained in an array of a driver specific struct. * |