9610
|
1
|
|
2 #ifndef DVBIN_H
|
|
3 #define DVBIN_H
|
|
4
|
|
5 #ifdef HAVE_DVB_HEAD
|
|
6 #include <linux/dvb/dmx.h>
|
|
7 #include <linux/dvb/frontend.h>
|
|
8 #else
|
|
9 #include <ost/dmx.h>
|
|
10 #include <ost/sec.h>
|
|
11 #include <ost/frontend.h>
|
|
12 #define fe_status_t FrontendStatus
|
|
13 #define fe_spectral_inversion_t SpectralInversion
|
|
14 #define fe_modulation_t Modulation
|
|
15 #define fe_code_rate_t CodeRate
|
|
16 #define fe_transmit_mode_t TransmitMode
|
|
17 #define fe_guard_interval_t GuardInterval
|
|
18 #define fe_bandwidth_t BandWidth
|
|
19 #define fe_sec_voltage_t SecVoltage
|
|
20 #define dmx_pes_filter_params dmxPesFilterParams
|
|
21 #define dmx_sct_filter_params dmxSctFilterParams
|
|
22 #define dmx_pes_type_t dmxPesType_t
|
|
23 #endif
|
|
24
|
|
25
|
|
26
|
|
27 #define DVB_CHANNEL_LOWER -1
|
|
28 #define DVB_CHANNEL_HIGHER 1
|
|
29
|
|
30
|
|
31 typedef struct
|
|
32 {
|
|
33 int next, prev;
|
|
34 } dvb_history_t;
|
|
35
|
|
36 typedef struct {
|
|
37 char *name;
|
|
38 int freq, srate, diseqc, tone;
|
|
39 char pol;
|
|
40 int vpid, apid1, apid2, tpid, dpid1, dpid2, progid, ca;
|
|
41 fe_spectral_inversion_t inv;
|
|
42 fe_modulation_t mod;
|
|
43 fe_transmit_mode_t trans;
|
|
44 fe_bandwidth_t bw;
|
|
45 fe_guard_interval_t gi;
|
|
46 fe_code_rate_t cr;
|
|
47 } dvb_channel_t;
|
|
48
|
|
49
|
|
50 typedef struct {
|
|
51 uint16_t NUM_CHANNELS;
|
|
52 uint16_t current;
|
|
53 dvb_channel_t channels[512];
|
|
54 } dvb_channels_list;
|
|
55
|
|
56
|
|
57
|
|
58 typedef struct {
|
|
59 int fe_fd;
|
|
60 int sec_fd;
|
|
61 int demux_fd[3];
|
|
62 int dvr_fd;
|
|
63 int input;
|
|
64 int output;
|
|
65 int discard;
|
|
66
|
|
67 dvb_channel_t channel;
|
|
68 dvb_channels_list *list;
|
|
69 } dvb_priv_t;
|
|
70
|
|
71
|
|
72 extern dvb_history_t *dvb_step_channel(dvb_priv_t*, int, dvb_history_t*);
|
|
73
|
|
74 extern dvb_channels_list *dvb_get_channels(char *, const char *);
|
|
75 extern dvb_history_t dvb_prev_next;
|
|
76
|
|
77
|
|
78
|
|
79
|
|
80 #ifndef DVB_T_LOCATION
|
|
81 #ifndef UK
|
|
82 #warning No DVB-T country defined in dvb_defaults.h, defaulting to UK
|
|
83 #endif
|
|
84
|
|
85 /* UNITED KINGDOM settings */
|
|
86 #define DVB_T_LOCATION "in United Kingdom"
|
|
87 #define BANDWIDTH_DEFAULT BANDWIDTH_8_MHZ
|
|
88 #define HP_CODERATE_DEFAULT FEC_2_3
|
|
89 #define CONSTELLATION_DEFAULT QAM_64
|
|
90 #define TRANSMISSION_MODE_DEFAULT TRANSMISSION_MODE_2K
|
|
91 #define GUARD_INTERVAL_DEFAULT GUARD_INTERVAL_1_32
|
|
92 #define HIERARCHY_DEFAULT HIERARCHY_NONE
|
|
93 #endif
|
|
94
|
|
95 #define HIERARCHY_DEFAULT HIERARCHY_NONE
|
|
96 #define LP_CODERATE_DEFAULT (0)
|
|
97
|
|
98
|
|
99
|
|
100 #endif
|