LiVES  2.4.1-svn
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
ldvgrab.h
Go to the documentation of this file.
1 // ldvgrab.h
2 // LiVES
3 // (c) G. Finch 2006 - 2013 <salsaman@gmail.com>
4 // released under the GNU GPL 3 or later
5 // see file ../COPYING for licensing details
6 
7 
8 /* linux1394 includes */
9 #include <libraw1394/raw1394.h>
10 #include <libavc1394/rom1394.h>
11 #include <libavc1394/avc1394.h>
12 #include <libavc1394/avc1394_vcr.h>
13 
14 typedef struct {
15  raw1394handle_t handle;
16  raw1394handle_t rec_handle;
17  int device;
18  int format;
19  boolean grabbed_clips;
21 } s_cam;
22 
24 
25 boolean rec(s_cam *cam);
26 void camplay(s_cam *cam);
27 void camstop(s_cam *cam);
28 void camrew(s_cam *cam);
29 void camff(s_cam *cam);
30 void campause(s_cam *cam);
31 void cameject(s_cam *cam);
32 
33 void close_raw1394(raw1394handle_t handle);
34 
35 char *find_free_camfile(int format);
36 
37 
38 struct _dvgrabw {
39  LiVESWidget *dialog;
40  LiVESWidget *filent;
41  LiVESWidget *stop;
42  LiVESWidget *grab;
43  LiVESWidget *play;
44  LiVESWidget *quit;
45  LiVESWidget *status_entry;
46  LiVESWidget *split;
47  LiVESXCursor *cursor;
48  boolean playing;
49  char *dirname;
50  char *filename;
52 };
53 
54 
55 struct _dvgrabw *dvgrabw;
56 
boolean grabbed_clips
Definition: ldvgrab.h:19
boolean rec(s_cam *cam)
Definition: ldvgrab.c:247
int lives_pgid_t
Definition: main.h:119
LiVESWidget * stop
Definition: ldvgrab.h:41
LiVESWidget * split
Definition: ldvgrab.h:46
raw1394handle_t handle
Definition: ldvgrab.h:15
LiVESWidget * grab
Definition: ldvgrab.h:42
void close_raw1394(raw1394handle_t handle)
Definition: ldvgrab.c:96
void camstop(s_cam *cam)
Definition: ldvgrab.c:186
Definition: ldvgrab.h:14
raw1394handle_t rec_handle
Definition: ldvgrab.h:16
boolean playing
Definition: ldvgrab.h:48
s_cam * cam
Definition: ldvgrab.h:51
void cameject(s_cam *cam)
Definition: ldvgrab.c:203
void camff(s_cam *cam)
Definition: ldvgrab.c:195
int format
Definition: ldvgrab.h:18
LiVESWidget * quit
Definition: ldvgrab.h:44
char * dirname
Definition: ldvgrab.h:49
LiVESWidget * status_entry
Definition: ldvgrab.h:45
LiVESXCursor * cursor
Definition: ldvgrab.h:47
void campause(s_cam *cam)
Definition: ldvgrab.c:199
void camrew(s_cam *cam)
Definition: ldvgrab.c:191
Definition: ldvgrab.h:38
int device
Definition: ldvgrab.h:17
lives_pgid_t pgid
Definition: ldvgrab.h:20
LiVESWidget * play
Definition: ldvgrab.h:43
LiVESWidget * filent
Definition: ldvgrab.h:40
void camplay(s_cam *cam)
Definition: ldvgrab.c:182
LiVESWidget * dialog
Definition: ldvgrab.h:39
char * filename
Definition: ldvgrab.h:50
struct _dvgrabw * dvgrabw
Definition: ldvgrab.h:55
char * find_free_camfile(int format)
Definition: ldvgrab.c:212