Path: blob/master/drivers/media/video/ivtv/ivtv-streams.h
17751 views
/*1init/start/stop/exit stream functions2Copyright (C) 2003-2004 Kevin Thayer <nufan_wfk at yahoo.com>3Copyright (C) 2005-2007 Hans Verkuil <[email protected]>45This program is free software; you can redistribute it and/or modify6it under the terms of the GNU General Public License as published by7the Free Software Foundation; either version 2 of the License, or8(at your option) any later version.910This program is distributed in the hope that it will be useful,11but WITHOUT ANY WARRANTY; without even the implied warranty of12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13GNU General Public License for more details.1415You should have received a copy of the GNU General Public License16along with this program; if not, write to the Free Software17Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA18*/1920#ifndef IVTV_STREAMS_H21#define IVTV_STREAMS_H2223int ivtv_streams_setup(struct ivtv *itv);24int ivtv_streams_register(struct ivtv *itv);25void ivtv_streams_cleanup(struct ivtv *itv, int unregister);2627/* Capture related */28int ivtv_start_v4l2_encode_stream(struct ivtv_stream *s);29int ivtv_stop_v4l2_encode_stream(struct ivtv_stream *s, int gop_end);30int ivtv_start_v4l2_decode_stream(struct ivtv_stream *s, int gop_offset);31int ivtv_stop_v4l2_decode_stream(struct ivtv_stream *s, int flags, u64 pts);3233void ivtv_stop_all_captures(struct ivtv *itv);34int ivtv_passthrough_mode(struct ivtv *itv, int enable);3536#endif373839