update version, update Features5 docs
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / avc1394control.h
1
2 /*
3  * CINELERRA
4  * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  *
20  */
21
22 #ifndef _AVC1394Control_H
23 #define _AVC1394Control_H
24
25 #ifdef HAVE_FIREWIRE
26 #include <stdio.h>
27 #include <sys/types.h>
28 #include <errno.h>
29 #include <stdlib.h>
30
31 #include "bcwindowbase.inc"
32 #include "libavc1394/rom1394.h"
33 #include "libavc1394/avc1394.h"
34 #include "libavc1394/avc1394_vcr.h"
35 #include "mutex.inc"
36 #include "libraw1394/raw1394.h"
37
38 class AVC1394Control
39 {
40 public:
41         AVC1394Control();
42         ~AVC1394Control();
43
44         void initialize();
45
46         void play();
47         void reverse();
48         void stop();
49         void pause();
50         void rewind();
51         void fforward();
52         void record();
53         void eject();
54         void get_status();
55         void seek(const char *time);
56         char *timecode();
57         int device;
58         int status;
59         Mutex *device_lock;
60 // Set by last button pressed to determine the effect of a second press of the
61 // same button.  Command is from transportque.inc
62         int current_command;
63
64 private:
65         rom1394_directory rom_dir;
66         raw1394handle_t handle;
67         char text_return[BCTEXTLEN];
68 };
69
70 #endif
71 #endif