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
|
10395
|
30 #include "inttypes.h"
|
9610
|
31
|
|
32 typedef struct
|
|
33 {
|
|
34 int next, prev;
|
|
35 } dvb_history_t;
|
|
36
|
|
37 typedef struct {
|
|
38 char *name;
|
|
39 int freq, srate, diseqc, tone;
|
|
40 char pol;
|
|
41 int vpid, apid1, apid2, tpid, dpid1, dpid2, progid, ca;
|
|
42 fe_spectral_inversion_t inv;
|
|
43 fe_modulation_t mod;
|
|
44 fe_transmit_mode_t trans;
|
|
45 fe_bandwidth_t bw;
|
|
46 fe_guard_interval_t gi;
|
|
47 fe_code_rate_t cr;
|
|
48 } dvb_channel_t;
|
|
49
|
|
50
|
|
51 typedef struct {
|
|
52 uint16_t NUM_CHANNELS;
|
|
53 uint16_t current;
|
|
54 dvb_channel_t channels[512];
|
|
55 } dvb_channels_list;
|
|
56
|
|
57
|
|
58
|
|
59 typedef struct {
|
|
60 int fe_fd;
|
|
61 int sec_fd;
|
|
62 int demux_fd[3];
|
|
63 int dvr_fd;
|
|
64 int input;
|
|
65 int output;
|
|
66 int discard;
|
|
67
|
|
68 dvb_channel_t channel;
|
|
69 dvb_channels_list *list;
|
|
70 } dvb_priv_t;
|
|
71
|
|
72
|
|
73 extern dvb_history_t *dvb_step_channel(dvb_priv_t*, int, dvb_history_t*);
|
|
74
|
|
75 extern dvb_channels_list *dvb_get_channels(char *, const char *);
|
|
76 extern dvb_history_t dvb_prev_next;
|
|
77
|
|
78
|
|
79
|
|
80
|
|
81 #ifndef DVB_T_LOCATION
|
|
82 #ifndef UK
|
|
83 #warning No DVB-T country defined in dvb_defaults.h, defaulting to UK
|
|
84 #endif
|
|
85
|
|
86 /* UNITED KINGDOM settings */
|
|
87 #define DVB_T_LOCATION "in United Kingdom"
|
|
88 #define BANDWIDTH_DEFAULT BANDWIDTH_8_MHZ
|
|
89 #define HP_CODERATE_DEFAULT FEC_2_3
|
|
90 #define CONSTELLATION_DEFAULT QAM_64
|
|
91 #define TRANSMISSION_MODE_DEFAULT TRANSMISSION_MODE_2K
|
|
92 #define GUARD_INTERVAL_DEFAULT GUARD_INTERVAL_1_32
|
|
93 #define HIERARCHY_DEFAULT HIERARCHY_NONE
|
|
94 #endif
|
|
95
|
|
96 #define HIERARCHY_DEFAULT HIERARCHY_NONE
|
|
97 #define LP_CODERATE_DEFAULT (0)
|
|
98
|
|
99
|
|
100
|
|
101 #endif
|