linux/drivers/media/platform/vivid/vivid-vid-cap.h
<<
>>
Prefs
   1/* SPDX-License-Identifier: GPL-2.0-only */
   2/*
   3 * vivid-vid-cap.h - video capture support functions.
   4 *
   5 * Copyright 2014 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
   6 */
   7
   8#ifndef _VIVID_VID_CAP_H_
   9#define _VIVID_VID_CAP_H_
  10
  11void vivid_update_quality(struct vivid_dev *dev);
  12void vivid_update_format_cap(struct vivid_dev *dev, bool keep_controls);
  13enum tpg_video_aspect vivid_get_video_aspect(const struct vivid_dev *dev);
  14
  15extern const v4l2_std_id vivid_standard[];
  16extern const char * const vivid_ctrl_standard_strings[];
  17
  18extern const struct vb2_ops vivid_vid_cap_qops;
  19
  20int vivid_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
  21int vivid_try_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
  22int vivid_s_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
  23int vidioc_g_fmt_vid_cap_mplane(struct file *file, void *priv, struct v4l2_format *f);
  24int vidioc_try_fmt_vid_cap_mplane(struct file *file, void *priv, struct v4l2_format *f);
  25int vidioc_s_fmt_vid_cap_mplane(struct file *file, void *priv, struct v4l2_format *f);
  26int vidioc_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
  27int vidioc_try_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
  28int vidioc_s_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
  29int vivid_vid_cap_g_selection(struct file *file, void *priv, struct v4l2_selection *sel);
  30int vivid_vid_cap_s_selection(struct file *file, void *fh, struct v4l2_selection *s);
  31int vivid_vid_cap_g_pixelaspect(struct file *file, void *priv, int type, struct v4l2_fract *f);
  32int vidioc_enum_fmt_vid_overlay(struct file *file, void  *priv, struct v4l2_fmtdesc *f);
  33int vidioc_g_fmt_vid_overlay(struct file *file, void *priv, struct v4l2_format *f);
  34int vidioc_try_fmt_vid_overlay(struct file *file, void *priv, struct v4l2_format *f);
  35int vidioc_s_fmt_vid_overlay(struct file *file, void *priv, struct v4l2_format *f);
  36int vivid_vid_cap_overlay(struct file *file, void *fh, unsigned i);
  37int vivid_vid_cap_g_fbuf(struct file *file, void *fh, struct v4l2_framebuffer *a);
  38int vivid_vid_cap_s_fbuf(struct file *file, void *fh, const struct v4l2_framebuffer *a);
  39int vidioc_enum_input(struct file *file, void *priv, struct v4l2_input *inp);
  40int vidioc_g_input(struct file *file, void *priv, unsigned *i);
  41int vidioc_s_input(struct file *file, void *priv, unsigned i);
  42int vidioc_enumaudio(struct file *file, void *fh, struct v4l2_audio *vin);
  43int vidioc_g_audio(struct file *file, void *fh, struct v4l2_audio *vin);
  44int vidioc_s_audio(struct file *file, void *fh, const struct v4l2_audio *vin);
  45int vivid_video_g_frequency(struct file *file, void *fh, struct v4l2_frequency *vf);
  46int vivid_video_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *vf);
  47int vivid_video_s_tuner(struct file *file, void *fh, const struct v4l2_tuner *vt);
  48int vivid_video_g_tuner(struct file *file, void *fh, struct v4l2_tuner *vt);
  49int vidioc_querystd(struct file *file, void *priv, v4l2_std_id *id);
  50int vivid_vid_cap_s_std(struct file *file, void *priv, v4l2_std_id id);
  51int vivid_vid_cap_s_dv_timings(struct file *file, void *_fh, struct v4l2_dv_timings *timings);
  52int vidioc_query_dv_timings(struct file *file, void *_fh, struct v4l2_dv_timings *timings);
  53int vidioc_s_edid(struct file *file, void *_fh, struct v4l2_edid *edid);
  54int vidioc_enum_framesizes(struct file *file, void *fh, struct v4l2_frmsizeenum *fsize);
  55int vidioc_enum_frameintervals(struct file *file, void *priv, struct v4l2_frmivalenum *fival);
  56int vivid_vid_cap_g_parm(struct file *file, void *priv, struct v4l2_streamparm *parm);
  57int vivid_vid_cap_s_parm(struct file *file, void *priv, struct v4l2_streamparm *parm);
  58
  59#endif
  60