#include <linux/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/string.h>
#include <linux/errno.h>
#include <linux/uaccess.h>
#include <asm/io.h>
#include <asm/div64.h>
#include <media/v4l2-common.h>
#include <media/v4l2-device.h>
#include <media/v4l2-ctrls.h>
#include <linux/videodev2.h>
int v4l2_ctrl_query_fill(struct v4l2_queryctrl *qctrl, s32 _min, s32 _max, s32 _step, s32 _def)
{ … }
EXPORT_SYMBOL(…);
static unsigned int clamp_align(unsigned int x, unsigned int min,
unsigned int max, unsigned int align)
{ … }
static unsigned int clamp_roundup(unsigned int x, unsigned int min,
unsigned int max, unsigned int alignment)
{ … }
void v4l_bound_align_image(u32 *w, unsigned int wmin, unsigned int wmax,
unsigned int walign,
u32 *h, unsigned int hmin, unsigned int hmax,
unsigned int halign, unsigned int salign)
{ … }
EXPORT_SYMBOL_GPL(…);
const void *
__v4l2_find_nearest_size(const void *array, size_t array_size,
size_t entry_size, size_t width_offset,
size_t height_offset, s32 width, s32 height)
{ … }
EXPORT_SYMBOL_GPL(…);
int v4l2_g_parm_cap(struct video_device *vdev,
struct v4l2_subdev *sd, struct v4l2_streamparm *a)
{ … }
EXPORT_SYMBOL_GPL(…);
int v4l2_s_parm_cap(struct video_device *vdev,
struct v4l2_subdev *sd, struct v4l2_streamparm *a)
{ … }
EXPORT_SYMBOL_GPL(…);
const struct v4l2_format_info *v4l2_format_info(u32 format)
{ … }
EXPORT_SYMBOL(…);
static inline unsigned int v4l2_format_block_width(const struct v4l2_format_info *info, int plane)
{ … }
static inline unsigned int v4l2_format_block_height(const struct v4l2_format_info *info, int plane)
{ … }
void v4l2_apply_frmsize_constraints(u32 *width, u32 *height,
const struct v4l2_frmsize_stepwise *frmsize)
{ … }
EXPORT_SYMBOL_GPL(…);
int v4l2_fill_pixfmt_mp(struct v4l2_pix_format_mplane *pixfmt,
u32 pixelformat, u32 width, u32 height)
{ … }
EXPORT_SYMBOL_GPL(…);
int v4l2_fill_pixfmt(struct v4l2_pix_format *pixfmt, u32 pixelformat,
u32 width, u32 height)
{ … }
EXPORT_SYMBOL_GPL(…);
s64 v4l2_get_link_freq(struct v4l2_ctrl_handler *handler, unsigned int mul,
unsigned int div)
{ … }
EXPORT_SYMBOL_GPL(…);
void v4l2_simplify_fraction(u32 *numerator, u32 *denominator,
unsigned int n_terms, unsigned int threshold)
{ … }
EXPORT_SYMBOL_GPL(…);
u32 v4l2_fraction_to_interval(u32 numerator, u32 denominator)
{ … }
EXPORT_SYMBOL_GPL(…);
int v4l2_link_freq_to_bitmap(struct device *dev, const u64 *fw_link_freqs,
unsigned int num_of_fw_link_freqs,
const s64 *driver_link_freqs,
unsigned int num_of_driver_link_freqs,
unsigned long *bitmap)
{ … }
EXPORT_SYMBOL_GPL(…);