1 /* G-Streamer Video4linux2 video-capture plugin - system calls
2 * Copyright (C) 2002 Ronald Bultje <rbultje@ronald.bitfreak.net>
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.
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.
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.
20 #ifndef __V4L2SRC_CALLS_H__
21 #define __V4L2SRC_CALLS_H__
23 #include "gstv4l2src.h"
24 #include "v4l2_calls.h"
27 gboolean gst_v4l2src_get_capture (GstV4l2Src *v4l2src);
28 gboolean gst_v4l2src_set_capture (GstV4l2Src *v4l2src,
29 struct v4l2_fmtdesc *fmt,
32 gboolean gst_v4l2src_capture_init (GstV4l2Src *v4l2src);
33 gboolean gst_v4l2src_capture_start (GstV4l2Src *v4l2src);
34 gint gst_v4l2src_grab_frame (GstV4l2Src *v4l2src);
35 guint8 * gst_v4l2src_get_buffer (GstV4l2Src *v4l2src,
37 gboolean gst_v4l2src_queue_frame (GstV4l2Src *v4l2src,
39 gboolean gst_v4l2src_capture_stop (GstV4l2Src *v4l2src);
40 gboolean gst_v4l2src_capture_deinit (GstV4l2Src *v4l2src);
42 gboolean gst_v4l2src_fill_format_list (GstV4l2Src *v4l2src);
43 gboolean gst_v4l2src_clear_format_list (GstV4l2Src *v4l2src);
46 gboolean gst_v4l2src_get_size_limits (GstV4l2Src *v4l2src,
47 struct v4l2_fmtdesc *fmt,
48 gint *min_w, gint *max_w,
49 gint *min_h, gint *max_h);
51 void gst_v4l2src_free_buffer (GstBuffer *buffer);
53 #endif /* __V4L2SRC_CALLS_H__ */