Merge branch 'ct' of git.pipapo.org:cinelerra-ct into ct
[cinelerra_cv/ct.git] / cinelerra / channel.h
blobf500841e256d30c6a5741b0fc5a9b7079ce627cd
1 #ifndef CHANNEL_H
2 #define CHANNEL_H
4 #include "bcwindowbase.inc"
5 #include "bchash.inc"
6 #include "filexml.inc"
8 // Used by both GUI to change channels and devices to map channels to
9 // device parameters.
11 class Channel
13 public:
14 Channel();
15 Channel(Channel *channel);
16 ~Channel();
18 void reset();
19 void dump();
20 Channel& operator=(Channel &channel);
21 // Copy channel location only
22 void copy_settings(Channel *channel);
23 // Copy what parameters the tuner device supports only
24 void copy_usage(Channel *channel);
25 int load(FileXML *file);
26 int save(FileXML *file);
27 // Store the location of the channels to scan.
28 // Only used for channel scanning
29 void load_defaults(BC_Hash *defaults);
30 void save_defaults(BC_Hash *defaults);
33 // Flags for GUI settings the device uses
34 int use_frequency;
35 int use_fine;
36 int use_norm;
37 int use_input;
38 // Device supports scanning
39 int has_scanning;
43 // User supplied name
44 char title[BCTEXTLEN];
45 // Name given by device for the channel
46 char device_name[BCTEXTLEN];
51 // Number of the table entry in the appropriate freqtable
52 // or channel number.
53 int entry;
54 // Table to use
55 int freqtable;
56 // Fine tuning offset
57 int fine_tune;
58 // Input source
59 int input;
60 int norm;
61 // Index used by the device
62 int device_index;
63 // Tuner number used by the device
64 int tuner;
65 // PID's to capture for digital TV
66 int audio_pid;
67 int video_pid;
68 // All available PID's detected by the receiver.
69 int *audio_pids;
70 int *video_pids;
74 #endif
76 // Local Variables:
77 // mode: C++
78 // c-file-style: "linux"
79 // End: