00001 #ifndef VDEVICE1394_H 00002 #define VDEVICE1394_H 00003 00004 #include "device1394input.inc" 00005 #include "device1394output.inc" 00006 #include "guicast.h" 00007 #include "iec61883input.inc" 00008 #include "iec61883output.inc" 00009 #include "libdv.h" 00010 #include "quicktime.h" 00011 #include "sema.h" 00012 #include "vdevicebase.h" 00013 00014 00015 00016 00017 00018 class VDevice1394 : public VDeviceBase 00019 { 00020 public: 00021 VDevice1394(VideoDevice *device); 00022 ~VDevice1394(); 00023 00024 int open_input(); 00025 int open_output(); 00026 int close_all(); 00027 int read_buffer(VFrame *frame); 00028 int write_buffer(VFrame *frame, EDL *edl); 00029 // Called by the audio device to share a buffer 00030 // int get_shared_data(unsigned char *data, long size); 00031 int initialize(); 00032 int can_copy_from(Asset *asset, int output_w, int output_h); 00033 // int stop_sharing(); 00034 void new_output_buffer(VFrame **output, int colormodel); 00035 void encrypt(unsigned char *output, unsigned char *data, int data_size); 00036 00037 private: 00038 Device1394Input *input_thread; 00039 Device1394Output *output_thread; 00040 IEC61883Input *input_iec; 00041 IEC61883Output *output_iec; 00042 VFrame *user_frame; 00043 }; 00044 00045 #endif
1.5.5