license header for review
[cinelerra_cv/ct.git] / cinelerra / recordconfig.h
blob93ed66fa2e4152ff2a9fa32fec242c86d461f0d2
1 #ifndef RECORDCONFIG_H
2 #define RECORDCONFIG_H
4 #include "playbackconfig.inc"
5 #include "bcwindowbase.inc"
6 #include "bchash.inc"
8 // This structure is passed to the driver
9 class AudioInConfig
11 public:
12 AudioInConfig();
13 ~AudioInConfig();
15 AudioInConfig& operator=(AudioInConfig &that);
16 void copy_from(AudioInConfig *src);
17 int load_defaults(BC_Hash *defaults);
18 int save_defaults(BC_Hash *defaults);
20 // Determine if the two devices need to be opened in duplex mode
21 static int is_duplex(AudioInConfig *in, AudioOutConfig *out);
23 int driver;
24 int oss_enable[MAXDEVICES];
25 char oss_in_device[MAXDEVICES][BCTEXTLEN];
26 int oss_in_bits;
28 int firewire_port, firewire_channel;
29 char firewire_path[BCTEXTLEN];
31 char esound_in_server[BCTEXTLEN];
32 int esound_in_port;
33 char alsa_in_device[BCTEXTLEN];
34 int alsa_in_bits;
35 int in_samplerate;
37 // This should come from EDLSession::recording_format
38 int channels;
41 // This structure is passed to the driver
42 class VideoInConfig
44 public:
45 VideoInConfig();
46 ~VideoInConfig();
48 VideoInConfig& operator=(VideoInConfig &that);
49 void copy_from(VideoInConfig *src);
50 int load_defaults(BC_Hash *defaults);
51 int save_defaults(BC_Hash *defaults);
52 char* get_path();
54 int driver;
55 char v4l_in_device[BCTEXTLEN];
56 char v4l2_in_device[BCTEXTLEN];
57 char v4l2jpeg_in_device[BCTEXTLEN];
58 char lml_in_device[BCTEXTLEN];
59 char buz_in_device[BCTEXTLEN];
60 char screencapture_display[BCTEXTLEN];
63 // DVB
64 char dvb_in_host[BCTEXTLEN];
65 int dvb_in_port;
66 int dvb_in_number;
68 int firewire_port, firewire_channel;
69 char firewire_path[BCTEXTLEN];
71 // number of frames to read from device during video recording.
72 int capture_length;
73 // Dimensions of captured frame
74 int w, h;
75 // Frame rate of captured frames
76 float in_framerate;
80 #endif
82 // Local Variables:
83 // mode: C++
84 // c-file-style: "linux"
85 // End: