Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003     file operation functions
0004     Copyright (C) 2003-2004  Kevin Thayer <nufan_wfk at yahoo.com>
0005     Copyright (C) 2005-2007  Hans Verkuil <hverkuil@xs4all.nl>
0006 
0007  */
0008 
0009 #ifndef IVTV_FILEOPS_H
0010 #define IVTV_FILEOPS_H
0011 
0012 /* Testing/Debugging */
0013 int ivtv_v4l2_open(struct file *filp);
0014 ssize_t ivtv_v4l2_read(struct file *filp, char __user *buf, size_t count,
0015               loff_t * pos);
0016 ssize_t ivtv_v4l2_write(struct file *filp, const char __user *buf, size_t count,
0017                loff_t * pos);
0018 int ivtv_v4l2_close(struct file *filp);
0019 __poll_t ivtv_v4l2_enc_poll(struct file *filp, poll_table * wait);
0020 __poll_t ivtv_v4l2_dec_poll(struct file *filp, poll_table * wait);
0021 int ivtv_start_capture(struct ivtv_open_id *id);
0022 void ivtv_stop_capture(struct ivtv_open_id *id, int gop_end);
0023 int ivtv_start_decoding(struct ivtv_open_id *id, int speed);
0024 void ivtv_mute(struct ivtv *itv);
0025 void ivtv_unmute(struct ivtv *itv);
0026 
0027 /* Utilities */
0028 /* Shared with ivtv-alsa module */
0029 int ivtv_claim_stream(struct ivtv_open_id *id, int type);
0030 void ivtv_release_stream(struct ivtv_stream *s);
0031 
0032 #endif