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, |
---|
30 | gint width, |
---|
31 | gint height); |
---|
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, |
---|
36 | gint num); |
---|
37 | gboolean gst_v4l2src_queue_frame (GstV4l2Src *v4l2src, |
---|
38 | guint i); |
---|
39 | gboolean gst_v4l2src_capture_stop (GstV4l2Src *v4l2src); |
---|
40 | gboolean gst_v4l2src_capture_deinit (GstV4l2Src *v4l2src); |
---|
41 | |
---|
42 | gboolean gst_v4l2src_fill_format_list (GstV4l2Src *v4l2src); |
---|
43 | gboolean gst_v4l2src_clear_format_list (GstV4l2Src *v4l2src); |
---|
44 | |
---|
45 | /* hacky */ |
---|
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); |
---|
50 | |
---|
51 | void gst_v4l2src_free_buffer (GstBuffer *buffer); |
---|
52 | |
---|
53 | #endif /* __V4L2SRC_CALLS_H__ */ |
---|