gst-indent
[platform/upstream/gst-plugins-good.git] / sys / v4l2 / v4l2src_calls.h
1 /* G-Streamer Video4linux2 video-capture plugin - system calls
2  * Copyright (C) 2002 Ronald Bultje <rbultje@ronald.bitfreak.net>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19
20 #ifndef __V4L2SRC_CALLS_H__
21 #define __V4L2SRC_CALLS_H__
22
23 #include "gstv4l2src.h"
24 #include "v4l2_calls.h"
25
26
27 gboolean gst_v4l2src_get_capture (GstV4l2Src * v4l2src);
28 gboolean gst_v4l2src_set_capture (GstV4l2Src * v4l2src,
29     struct v4l2_fmtdesc *fmt, gint width, gint height);
30 gboolean gst_v4l2src_capture_init (GstV4l2Src * v4l2src);
31 gboolean gst_v4l2src_capture_start (GstV4l2Src * v4l2src);
32 gint gst_v4l2src_grab_frame (GstV4l2Src * v4l2src);
33 guint8 *gst_v4l2src_get_buffer (GstV4l2Src * v4l2src, gint num);
34 gboolean gst_v4l2src_queue_frame (GstV4l2Src * v4l2src, guint i);
35 gboolean gst_v4l2src_capture_stop (GstV4l2Src * v4l2src);
36 gboolean gst_v4l2src_capture_deinit (GstV4l2Src * v4l2src);
37
38 gboolean gst_v4l2src_fill_format_list (GstV4l2Src * v4l2src);
39 gboolean gst_v4l2src_clear_format_list (GstV4l2Src * v4l2src);
40
41 /* hacky */
42 gboolean gst_v4l2src_get_size_limits (GstV4l2Src * v4l2src,
43     struct v4l2_fmtdesc *fmt,
44     gint * min_w, gint * max_w, gint * min_h, gint * max_h);
45
46 void gst_v4l2src_free_buffer (GstBuffer * buffer);
47
48 #endif /* __V4L2SRC_CALLS_H__ */