LiVES  3.2.0
videodev.h
Go to the documentation of this file.
1 // LiVES - videodev input
2 // (c) G. Finch 2010 - 2020 <salsaman+lives@gmail.com>
3 // released under the GNU GPL 3 or later
4 // see file COPYING or www.gnu.org for details
5 
6 #ifndef _VIDEODEV_H
7 #define _VIDEODEV_H
8 
9 #ifdef HAVE_UNICAP
10 
11 #include <unicap/unicap.h>
12 
13 typedef struct {
14  unicap_handle_t handle;
15  int fileno;
16  int buffer_type;
17  volatile int buffer_ready;
18  unicap_data_buffer_t buffer1;
19  unicap_data_buffer_t buffer2;
20  int current_palette;
21  int YUV_sampling;
22  int YUV_subspace;
23  int YUV_clamping;
24  boolean is_really_grey;
25 } lives_vdev_t;
26 
27 #define MAX_DEVICES 1024
28 #define MAX_FORMATS 1024
29 
30 boolean on_open_vdev_activate(LiVESMenuItem *, livespointer devname);
31 boolean weed_layer_set_from_lvdev(weed_layer_t *layer, lives_clip_t *sfile, double timeoutsecs);
32 void lives_vdev_free(lives_vdev_t *);
33 
34 #endif
35 #endif
weed_layer_t
weed_plant_t weed_layer_t
Definition: colourspace.h:71
lives_clip_t
corresponds to one clip in the GUI
Definition: main.h:877