r125: This commit was manufactured by cvs2svn to create tag 'r1_1_7-last'.
[cinelerra_cv/mob.git] / hvirtual / cinelerra / vdevice1394.h
blobc8dd1e0fd5109656698d0b24464cdbf1bffe7733
1 #ifndef VDEVICE1394_H
2 #define VDEVICE1394_H
4 #include "device1394input.inc"
5 #include "device1394output.inc"
6 #include "guicast.h"
7 #include "libdv.h"
8 #include "mutex.h"
9 #include "quicktime.h"
10 #include "sema.h"
11 #include "vdevicebase.h"
14 #ifdef HAVE_FIREWIRE
18 class VDevice1394 : public VDeviceBase
20 public:
21 VDevice1394(VideoDevice *device);
22 ~VDevice1394();
24 int open_input();
25 int open_output();
26 int close_all();
27 int read_buffer(VFrame *frame);
28 int write_buffer(VFrame **frame, EDL *edl);
29 // Called by the audio device to share a buffer
30 // int get_shared_data(unsigned char *data, long size);
31 int initialize();
32 int can_copy_from(Asset *asset, int output_w, int output_h);
33 // int stop_sharing();
34 void new_output_buffer(VFrame **outputs, int colormodel);
35 void encrypt(unsigned char *output, unsigned char *data, int data_size);
37 private:
38 Device1394Input *input_thread;
39 Device1394Output *output_thread;
40 VFrame *user_frame;
43 #endif
45 #endif