gst_plugins_base/sys/v4l/v4lsrc_calls.h
branchRCL_3
changeset 30 7e817e7e631c
parent 0 0e761a78d257
equal deleted inserted replaced
29:567bb019e3e3 30:7e817e7e631c
       
     1 /* GStreamer
       
     2  *
       
     3  * v4lsrc_calls.h: functions for V4L video source
       
     4  *
       
     5  * Copyright (C) 2001-2002 Ronald Bultje <rbultje@ronald.bitfreak.net>
       
     6  *
       
     7  * This library is free software; you can redistribute it and/or
       
     8  * modify it under the terms of the GNU Library General Public
       
     9  * License as published by the Free Software Foundation; either
       
    10  * version 2 of the License, or (at your option) any later version.
       
    11  *
       
    12  * This library is distributed in the hope that it will be useful,
       
    13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       
    15  * Library General Public License for more details.
       
    16  *
       
    17  * You should have received a copy of the GNU Library General Public
       
    18  * License along with this library; if not, write to the
       
    19  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
       
    20  * Boston, MA 02111-1307, USA.
       
    21  */
       
    22 
       
    23 #ifndef __V4L_SRC_CALLS_H__
       
    24 #define __V4L_SRC_CALLS_H__
       
    25 
       
    26 #include "gstv4lsrc.h"
       
    27 #include "v4l_calls.h"
       
    28 
       
    29 
       
    30 G_BEGIN_DECLS
       
    31 
       
    32 
       
    33 /* frame grabbing/capture (palette = VIDEO_PALETTE_* - see videodev.h) */
       
    34 gboolean gst_v4lsrc_set_capture    (GstV4lSrc *v4lsrc, gint width, gint height, gint palette);
       
    35 gboolean gst_v4lsrc_capture_init   (GstV4lSrc *v4lsrc);
       
    36 gboolean gst_v4lsrc_capture_start  (GstV4lSrc *v4lsrc);
       
    37 gboolean gst_v4lsrc_grab_frame     (GstV4lSrc *v4lsrc, gint *num);
       
    38 guint8 * gst_v4lsrc_get_buffer     (GstV4lSrc *v4lsrc, gint  num);
       
    39 gboolean gst_v4lsrc_requeue_frame  (GstV4lSrc *v4lsrc, gint  num);
       
    40 gboolean gst_v4lsrc_capture_stop   (GstV4lSrc *v4lsrc);
       
    41 gboolean gst_v4lsrc_capture_deinit (GstV4lSrc *v4lsrc);
       
    42 gboolean gst_v4lsrc_get_fps        (GstV4lSrc * v4lsrc, gint *fps_n, gint *fps_d);
       
    43 GValue * gst_v4lsrc_get_fps_list   (GstV4lSrc * v4lsrc);
       
    44 GstBuffer *gst_v4lsrc_buffer_new   (GstV4lSrc * v4lsrc, gint num);
       
    45 
       
    46 /* "the ugliest hack ever, now available at your local mirror" */
       
    47 gboolean gst_v4lsrc_try_capture    (GstV4lSrc *v4lsrc, gint width, gint height, gint palette);
       
    48 
       
    49 /* For debug purposes, share the palette names */
       
    50 #ifndef GST_DISABLE_GST_DEBUG
       
    51 const char *gst_v4lsrc_palette_name (int i);
       
    52 #endif
       
    53 
       
    54 
       
    55 G_END_DECLS
       
    56 
       
    57 
       
    58 #endif /* __V4L_SRC_CALLS_H__ */