LiVES 2.4.6

- Main Page
- Namespaces
- Data Structures
- Files

- File List
- Globals

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 #define CAM_FORMAT_DV 0
15 #define CAM_FORMAT_HDV 1
16
17 typedef struct {
18 raw1394handle_t handle;
19 raw1394handle_t rec_handle;
20 int device;
21 int format;
22 boolean grabbed_clips;
23 lives_pgid_t pgid;
24 } s_cam;
25
27
28 boolean rec(s_cam *cam);
29 void camplay(s_cam *cam);
30 void camstop(s_cam *cam);
31 void camrew(s_cam *cam);
32 void camff(s_cam *cam);
33 void campause(s_cam *cam);
34 void cameject(s_cam *cam);
35
36 void close_raw1394(raw1394handle_t handle);
37
38 char *find_free_camfile(int format);
39
40 void on_open_fw_activate(LiVESMenuItem *menuitem, livespointer format);
41
42
43 struct _dvgrabw {
44 LiVESWidget *dialog;
45 LiVESWidget *filent;
46 LiVESWidget *dirent;
47 LiVESWidget *stop;
48 LiVESWidget *grab;
49 LiVESWidget *play;
50 LiVESWidget *quit;
51 LiVESWidget *status_entry;
52 LiVESWidget *split;
53 LiVESXCursor *cursor;
54 boolean playing;
55 char *dirname;
56 char *filename;
57 s_cam *cam;
58 };
59
60
61 struct _dvgrabw *dvgrabw;
62
s_cam::grabbed_clips
boolean grabbed_clips
Definition: ldvgrab.h:22
camstop
void camstop(s_cam *cam)
Definition: ldvgrab.c:195
lives_pgid_t
int lives_pgid_t
Definition: main.h:119
_dvgrabw::stop
LiVESWidget * stop
Definition: ldvgrab.h:47
camplay
void camplay(s_cam *cam)
Definition: ldvgrab.c:191
_dvgrabw::split
LiVESWidget * split
Definition: ldvgrab.h:52
s_cam::handle
raw1394handle_t handle
Definition: ldvgrab.h:18
_dvgrabw::dirent
LiVESWidget * dirent
Definition: ldvgrab.h:46
_dvgrabw::grab
LiVESWidget * grab
Definition: ldvgrab.h:48
s_cam
Definition: ldvgrab.h:17
s_cam::rec_handle
raw1394handle_t rec_handle
Definition: ldvgrab.h:19
_dvgrabw::playing
boolean playing
Definition: ldvgrab.h:54
_dvgrabw::cam
s_cam * cam
Definition: ldvgrab.h:57
camrew
void camrew(s_cam *cam)
Definition: ldvgrab.c:200
s_cam::format
int format
Definition: ldvgrab.h:21
_dvgrabw::quit
LiVESWidget * quit
Definition: ldvgrab.h:50
on_open_fw_activate
void on_open_fw_activate(LiVESMenuItem *menuitem, livespointer user_data)
Definition: ldvgrab.c:310
find_free_camfile
char * find_free_camfile(int format)
Definition: ldvgrab.c:221
_dvgrabw::dirname
char * dirname
Definition: ldvgrab.h:55
_dvgrabw::status_entry
LiVESWidget * status_entry
Definition: ldvgrab.h:51
_dvgrabw::cursor
LiVESXCursor * cursor
Definition: ldvgrab.h:53
_dvgrabw
Definition: ldvgrab.h:43
s_cam::device
int device
Definition: ldvgrab.h:20
camff
void camff(s_cam *cam)
Definition: ldvgrab.c:204
s_cam::pgid
lives_pgid_t pgid
Definition: ldvgrab.h:23
close_raw1394
void close_raw1394(raw1394handle_t handle)
Definition: ldvgrab.c:96
rec
boolean rec(s_cam *cam)
Definition: ldvgrab.c:257
_dvgrabw::play
LiVESWidget * play
Definition: ldvgrab.h:49
_dvgrabw::filent
LiVESWidget * filent
Definition: ldvgrab.h:45
_dvgrabw::dialog
LiVESWidget * dialog
Definition: ldvgrab.h:44
_dvgrabw::filename
char * filename
Definition: ldvgrab.h:56
dvgrabw
struct _dvgrabw * dvgrabw
Definition: ldvgrab.h:61
cameject
void cameject(s_cam *cam)
Definition: ldvgrab.c:212
campause
void campause(s_cam *cam)
Definition: ldvgrab.c:208