treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / media / pci / ivtv / ivtv-streams.h
blob5f35c57fcdfd612b0f074598a7aa69d17a37a7c4
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 init/start/stop/exit stream functions
4 Copyright (C) 2003-2004 Kevin Thayer <nufan_wfk at yahoo.com>
5 Copyright (C) 2005-2007 Hans Verkuil <hverkuil@xs4all.nl>
7 */
9 #ifndef IVTV_STREAMS_H
10 #define IVTV_STREAMS_H
12 int ivtv_streams_setup(struct ivtv *itv);
13 int ivtv_streams_register(struct ivtv *itv);
14 void ivtv_streams_cleanup(struct ivtv *itv);
16 /* Capture related */
17 int ivtv_start_v4l2_encode_stream(struct ivtv_stream *s);
18 int ivtv_stop_v4l2_encode_stream(struct ivtv_stream *s, int gop_end);
19 int ivtv_start_v4l2_decode_stream(struct ivtv_stream *s, int gop_offset);
20 int ivtv_stop_v4l2_decode_stream(struct ivtv_stream *s, int flags, u64 pts);
22 void ivtv_stop_all_captures(struct ivtv *itv);
23 int ivtv_passthrough_mode(struct ivtv *itv, int enable);
25 #endif