*参照元 [#hd3b7d7b]
#backlinks

*説明 [#gf2ef4ef]
-パス: [[linux-4.4.1/include/media/v4l2-ioctl.h]]

-FIXME: これは何?
--説明


**参考 [#m26b56e1]


*実装 [#u60bec09]
 struct v4l2_ioctl_ops {
         /* ioctl callbacks */
 
         /* VIDIOC_QUERYCAP handler */
         int (*vidioc_querycap)(struct file *file, void *fh, struct v4l2_capability *cap);
 
-
--[[linux-4.4.1/file]]
--[[linux-4.4.1/v4l2_capability]]

         /* VIDIOC_ENUM_FMT handlers */
         int (*vidioc_enum_fmt_vid_cap)     (struct file *file, void *fh,
                                             struct v4l2_fmtdesc *f);
         int (*vidioc_enum_fmt_vid_overlay) (struct file *file, void *fh,
                                             struct v4l2_fmtdesc *f);
         int (*vidioc_enum_fmt_vid_out)     (struct file *file, void *fh,
                                             struct v4l2_fmtdesc *f);
         int (*vidioc_enum_fmt_vid_cap_mplane)(struct file *file, void *fh,
                                               struct v4l2_fmtdesc *f);
         int (*vidioc_enum_fmt_vid_out_mplane)(struct file *file, void *fh,
                                               struct v4l2_fmtdesc *f);
         int (*vidioc_enum_fmt_sdr_cap)     (struct file *file, void *fh,
                                             struct v4l2_fmtdesc *f);
         int (*vidioc_enum_fmt_sdr_out)     (struct file *file, void *fh,
                                             struct v4l2_fmtdesc *f);
 
-
--[[linux-4.4.1/v4l2_fmtdesc]]

         /* VIDIOC_G_FMT handlers */
         int (*vidioc_g_fmt_vid_cap)    (struct file *file, void *fh,
                                         struct v4l2_format *f);
         int (*vidioc_g_fmt_vid_overlay)(struct file *file, void *fh,
                                         struct v4l2_format *f);
         int (*vidioc_g_fmt_vid_out)    (struct file *file, void *fh,
                                         struct v4l2_format *f);
         int (*vidioc_g_fmt_vid_out_overlay)(struct file *file, void *fh,
                                         struct v4l2_format *f);
         int (*vidioc_g_fmt_vbi_cap)    (struct file *file, void *fh,
                                         struct v4l2_format *f);
         int (*vidioc_g_fmt_vbi_out)    (struct file *file, void *fh,
                                         struct v4l2_format *f);
         int (*vidioc_g_fmt_sliced_vbi_cap)(struct file *file, void *fh,
                                         struct v4l2_format *f);
         int (*vidioc_g_fmt_sliced_vbi_out)(struct file *file, void *fh,
                                         struct v4l2_format *f);
         int (*vidioc_g_fmt_vid_cap_mplane)(struct file *file, void *fh,
                                            struct v4l2_format *f);
         int (*vidioc_g_fmt_vid_out_mplane)(struct file *file, void *fh,
                                            struct v4l2_format *f);
         int (*vidioc_g_fmt_sdr_cap)    (struct file *file, void *fh,
                                         struct v4l2_format *f);
         int (*vidioc_g_fmt_sdr_out)    (struct file *file, void *fh,
                                         struct v4l2_format *f);
 
-
--[[linux-4.4.1/v4l2_format]]

         /* VIDIOC_S_FMT handlers */
         int (*vidioc_s_fmt_vid_cap)    (struct file *file, void *fh,
                                         struct v4l2_format *f);
         int (*vidioc_s_fmt_vid_overlay)(struct file *file, void *fh,
                                         struct v4l2_format *f);
         int (*vidioc_s_fmt_vid_out)    (struct file *file, void *fh,
                                         struct v4l2_format *f);
         int (*vidioc_s_fmt_vid_out_overlay)(struct file *file, void *fh,
                                         struct v4l2_format *f);
         int (*vidioc_s_fmt_vbi_cap)    (struct file *file, void *fh,
                                         struct v4l2_format *f);
         int (*vidioc_s_fmt_vbi_out)    (struct file *file, void *fh,
                                         struct v4l2_format *f);
         int (*vidioc_s_fmt_sliced_vbi_cap)(struct file *file, void *fh,
                                         struct v4l2_format *f);
         int (*vidioc_s_fmt_sliced_vbi_out)(struct file *file, void *fh,
                                         struct v4l2_format *f);
         int (*vidioc_s_fmt_vid_cap_mplane)(struct file *file, void *fh,
                                            struct v4l2_format *f);
         int (*vidioc_s_fmt_vid_out_mplane)(struct file *file, void *fh,
                                            struct v4l2_format *f);
         int (*vidioc_s_fmt_sdr_cap)    (struct file *file, void *fh,
                                         struct v4l2_format *f);
         int (*vidioc_s_fmt_sdr_out)    (struct file *file, void *fh,
                                         struct v4l2_format *f);
 
-
--[[linux-4.4.1/v4l2_format]]

         /* VIDIOC_TRY_FMT handlers */
         int (*vidioc_try_fmt_vid_cap)    (struct file *file, void *fh,
                                           struct v4l2_format *f);
         int (*vidioc_try_fmt_vid_overlay)(struct file *file, void *fh,
                                           struct v4l2_format *f);
         int (*vidioc_try_fmt_vid_out)    (struct file *file, void *fh,
                                           struct v4l2_format *f);
         int (*vidioc_try_fmt_vid_out_overlay)(struct file *file, void *fh,
                                           struct v4l2_format *f);
         int (*vidioc_try_fmt_vbi_cap)    (struct file *file, void *fh,
                                           struct v4l2_format *f);
         int (*vidioc_try_fmt_vbi_out)    (struct file *file, void *fh,
                                           struct v4l2_format *f);
         int (*vidioc_try_fmt_sliced_vbi_cap)(struct file *file, void *fh,
                                           struct v4l2_format *f);
         int (*vidioc_try_fmt_sliced_vbi_out)(struct file *file, void *fh,
                                           struct v4l2_format *f);
         int (*vidioc_try_fmt_vid_cap_mplane)(struct file *file, void *fh,
                                              struct v4l2_format *f);
         int (*vidioc_try_fmt_vid_out_mplane)(struct file *file, void *fh,
                                              struct v4l2_format *f);
         int (*vidioc_try_fmt_sdr_cap)    (struct file *file, void *fh,
                                           struct v4l2_format *f);
         int (*vidioc_try_fmt_sdr_out)    (struct file *file, void *fh,
                                           struct v4l2_format *f);
 
-
--[[linux-4.4.1/v4l2_format]]

         /* Buffer handlers */
         int (*vidioc_reqbufs) (struct file *file, void *fh, struct v4l2_requestbuffers *b);
         int (*vidioc_querybuf)(struct file *file, void *fh, struct v4l2_buffer *b);
         int (*vidioc_qbuf)    (struct file *file, void *fh, struct v4l2_buffer *b);
         int (*vidioc_expbuf)  (struct file *file, void *fh,
                                 struct v4l2_exportbuffer *e);
         int (*vidioc_dqbuf)   (struct file *file, void *fh, struct v4l2_buffer *b);
 
         int (*vidioc_create_bufs)(struct file *file, void *fh, struct v4l2_create_buffers *b);
         int (*vidioc_prepare_buf)(struct file *file, void *fh, struct v4l2_buffer *b);
 
         int (*vidioc_overlay) (struct file *file, void *fh, unsigned int i);
         int (*vidioc_g_fbuf)   (struct file *file, void *fh,
                                 struct v4l2_framebuffer *a);
         int (*vidioc_s_fbuf)   (struct file *file, void *fh,
                                 const struct v4l2_framebuffer *a);
 
-
--[[linux-4.4.1/v4l2_requestbuffers]]
--[[linux-4.4.1/v4l2_buffer]]
--[[linux-4.4.1/v4l2_exportbuffer]]
--[[linux-4.4.1/v4l2_create_buffers]]
--[[linux-4.4.1/v4l2_framebuffer]]

                 /* Stream on/off */
         int (*vidioc_streamon) (struct file *file, void *fh, enum v4l2_buf_type i);
         int (*vidioc_streamoff)(struct file *file, void *fh, enum v4l2_buf_type i);
 
-
--[[linux-4.4.1/v4l2_buf_type]]

                 /* Standard handling
                         ENUMSTD is handled by videodev.c
                  */
         int (*vidioc_g_std) (struct file *file, void *fh, v4l2_std_id *norm);
         int (*vidioc_s_std) (struct file *file, void *fh, v4l2_std_id norm);
         int (*vidioc_querystd) (struct file *file, void *fh, v4l2_std_id *a);
 
-
--[[linux-4.4.1/v4l2_std_id]]

                 /* Input handling */
         int (*vidioc_enum_input)(struct file *file, void *fh,
                                  struct v4l2_input *inp);
         int (*vidioc_g_input)   (struct file *file, void *fh, unsigned int *i);
         int (*vidioc_s_input)   (struct file *file, void *fh, unsigned int i);
 
-
--[[linux-4.4.1/v4l2_input]]

                 /* Output handling */
         int (*vidioc_enum_output) (struct file *file, void *fh,
                                   struct v4l2_output *a);
         int (*vidioc_g_output)   (struct file *file, void *fh, unsigned int *i);
         int (*vidioc_s_output)   (struct file *file, void *fh, unsigned int i);
 
-
--[[linux-4.4.1/v4l2_output]]

                 /* Control handling */
         int (*vidioc_queryctrl)        (struct file *file, void *fh,
                                         struct v4l2_queryctrl *a);
         int (*vidioc_query_ext_ctrl)   (struct file *file, void *fh,
                                         struct v4l2_query_ext_ctrl *a);
         int (*vidioc_g_ctrl)           (struct file *file, void *fh,
                                         struct v4l2_control *a);
         int (*vidioc_s_ctrl)           (struct file *file, void *fh,
                                         struct v4l2_control *a);
         int (*vidioc_g_ext_ctrls)      (struct file *file, void *fh,
                                         struct v4l2_ext_controls *a);
         int (*vidioc_s_ext_ctrls)      (struct file *file, void *fh,
                                         struct v4l2_ext_controls *a);
         int (*vidioc_try_ext_ctrls)    (struct file *file, void *fh,
                                         struct v4l2_ext_controls *a);
         int (*vidioc_querymenu)        (struct file *file, void *fh,
                                         struct v4l2_querymenu *a);
 
-
--[[linux-4.4.1/v4l2_queryctrl]]
--[[linux-4.4.1/v4l2_query_ext_ctrl]]
--[[linux-4.4.1/v4l2_control]]
--[[linux-4.4.1/v4l2_ext_controls]]
--[[linux-4.4.1/v4l2_querymenu]]

         /* Audio ioctls */
         int (*vidioc_enumaudio)        (struct file *file, void *fh,
                                         struct v4l2_audio *a);
         int (*vidioc_g_audio)          (struct file *file, void *fh,
                                         struct v4l2_audio *a);
         int (*vidioc_s_audio)          (struct file *file, void *fh,
                                         const struct v4l2_audio *a);
 
-
--[[linux-4.4.1/v4l2_audio]]

         /* Audio out ioctls */
         int (*vidioc_enumaudout)       (struct file *file, void *fh,
                                         struct v4l2_audioout *a);
         int (*vidioc_g_audout)         (struct file *file, void *fh,
                                         struct v4l2_audioout *a);
         int (*vidioc_s_audout)         (struct file *file, void *fh,
                                         const struct v4l2_audioout *a);
         int (*vidioc_g_modulator)      (struct file *file, void *fh,
                                         struct v4l2_modulator *a);
         int (*vidioc_s_modulator)      (struct file *file, void *fh,
                                         const struct v4l2_modulator *a);
-
--[[linux-4.4.1/v4l2_audioout]]
--[[linux-4.4.1/v4l2_modulator]]

         /* Crop ioctls */
         int (*vidioc_cropcap)          (struct file *file, void *fh,
                                         struct v4l2_cropcap *a);
         int (*vidioc_g_crop)           (struct file *file, void *fh,
                                         struct v4l2_crop *a);
         int (*vidioc_s_crop)           (struct file *file, void *fh,
                                         const struct v4l2_crop *a);
         int (*vidioc_g_selection)      (struct file *file, void *fh,
                                         struct v4l2_selection *s);
         int (*vidioc_s_selection)      (struct file *file, void *fh,
                                         struct v4l2_selection *s);
-
--[[linux-4.4.1/v4l2_cropcap]]
--[[linux-4.4.1/v4l2_crop]]
--[[linux-4.4.1/v4l2_selection]]

         /* Compression ioctls */
         int (*vidioc_g_jpegcomp)       (struct file *file, void *fh,
                                         struct v4l2_jpegcompression *a);
         int (*vidioc_s_jpegcomp)       (struct file *file, void *fh,
                                         const struct v4l2_jpegcompression *a);
         int (*vidioc_g_enc_index)      (struct file *file, void *fh,
                                         struct v4l2_enc_idx *a);
         int (*vidioc_encoder_cmd)      (struct file *file, void *fh,
                                         struct v4l2_encoder_cmd *a);
         int (*vidioc_try_encoder_cmd)  (struct file *file, void *fh,
                                         struct v4l2_encoder_cmd *a);
         int (*vidioc_decoder_cmd)      (struct file *file, void *fh,
                                         struct v4l2_decoder_cmd *a);
         int (*vidioc_try_decoder_cmd)  (struct file *file, void *fh,
                                         struct v4l2_decoder_cmd *a);
 
-
--[[linux-4.4.1/v4l2_jpegcompression]]
--[[linux-4.4.1/v4l2_enc_idx]]
--[[linux-4.4.1/v4l2_encoder_cmd]]
--[[linux-4.4.1/v4l2_decoder_cmd]]

         /* Stream type-dependent parameter ioctls */
         int (*vidioc_g_parm)           (struct file *file, void *fh,
                                         struct v4l2_streamparm *a);
         int (*vidioc_s_parm)           (struct file *file, void *fh,
                                         struct v4l2_streamparm *a);
 
-
--[[linux-4.4.1/v4l2_streamparm]]

         /* Tuner ioctls */
         int (*vidioc_g_tuner)          (struct file *file, void *fh,
                                         struct v4l2_tuner *a);
         int (*vidioc_s_tuner)          (struct file *file, void *fh,
                                         const struct v4l2_tuner *a);
         int (*vidioc_g_frequency)      (struct file *file, void *fh,
                                         struct v4l2_frequency *a);
         int (*vidioc_s_frequency)      (struct file *file, void *fh,
                                         const struct v4l2_frequency *a);
         int (*vidioc_enum_freq_bands) (struct file *file, void *fh,
                                     struct v4l2_frequency_band *band);
 
-
--[[linux-4.4.1/v4l2_tuner]]
--[[linux-4.4.1/v4l2_frequency]]
--[[linux-4.4.1/v4l2_frequency_band]]

         /* Sliced VBI cap */
         int (*vidioc_g_sliced_vbi_cap) (struct file *file, void *fh,
                                         struct v4l2_sliced_vbi_cap *a);
 
-
--[[linux-4.4.1/v4l2_sliced_vbi_cap]]

         /* Log status ioctl */
         int (*vidioc_log_status)       (struct file *file, void *fh);
 
         int (*vidioc_s_hw_freq_seek)   (struct file *file, void *fh,
                                         const struct v4l2_hw_freq_seek *a);
 
-
--[[linux-4.4.1/v4l2_hw_freq_seek]]

         /* Debugging ioctls */
 #ifdef CONFIG_VIDEO_ADV_DEBUG
-
--[[linux-4.4.1/CONFIG_VIDEO_ADV_DEBUG]]

         int (*vidioc_g_register)       (struct file *file, void *fh,
                                         struct v4l2_dbg_register *reg);
         int (*vidioc_s_register)       (struct file *file, void *fh,
                                         const struct v4l2_dbg_register *reg);
 
         int (*vidioc_g_chip_info)      (struct file *file, void *fh,
                                         struct v4l2_dbg_chip_info *chip);
-
--[[linux-4.4.1/v4l2_dbg_register]]
--[[linux-4.4.1/v4l2_dbg_chip_info]]

 #endif
 
         int (*vidioc_enum_framesizes)   (struct file *file, void *fh,
                                          struct v4l2_frmsizeenum *fsize);
 
         int (*vidioc_enum_frameintervals) (struct file *file, void *fh,
                                            struct v4l2_frmivalenum *fival);
 
-
--[[linux-4.4.1/v4l2_frmsizeenum]]
--[[linux-4.4.1/v4l2_frmivalenum]]

         /* DV Timings IOCTLs */
         int (*vidioc_s_dv_timings) (struct file *file, void *fh,
                                     struct v4l2_dv_timings *timings);
         int (*vidioc_g_dv_timings) (struct file *file, void *fh,
                                     struct v4l2_dv_timings *timings);
         int (*vidioc_query_dv_timings) (struct file *file, void *fh,
                                     struct v4l2_dv_timings *timings);
         int (*vidioc_enum_dv_timings) (struct file *file, void *fh,
                                     struct v4l2_enum_dv_timings *timings);
         int (*vidioc_dv_timings_cap) (struct file *file, void *fh,
                                     struct v4l2_dv_timings_cap *cap);
         int (*vidioc_g_edid) (struct file *file, void *fh, struct v4l2_edid *edid);
         int (*vidioc_s_edid) (struct file *file, void *fh, struct v4l2_edid *edid);
 
-
--[[linux-4.4.1/v4l2_dv_timings]]
--[[linux-4.4.1/v4l2_enum_dv_timings]]
--[[linux-4.4.1/v4l2_dv_timings_cap]]
--[[linux-4.4.1/v4l2_edid]]

         int (*vidioc_subscribe_event)  (struct v4l2_fh *fh,
                                         const struct v4l2_event_subscription *sub);
         int (*vidioc_unsubscribe_event)(struct v4l2_fh *fh,
                                         const struct v4l2_event_subscription *sub);
 
-
--[[linux-4.4.1/v4l2_event_subscription]]
--[[linux-4.4.1/v4l2_event_subscription]]

         /* For other private ioctls */
         long (*vidioc_default)         (struct file *file, void *fh,
                                         bool valid_prio, unsigned int cmd, void *arg);
 };


*コメント [#y94fbfea]

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS