9610
|
1
|
|
2 #ifndef DVBIN_H
|
|
3 #define DVBIN_H
|
|
4
|
10560
|
5 #include "dvb_defaults.h"
|
|
6 #include "stream.h"
|
|
7
|
9610
|
8 #ifdef HAVE_DVB_HEAD
|
|
9 #include <linux/dvb/dmx.h>
|
|
10 #include <linux/dvb/frontend.h>
|
|
11 #else
|
|
12 #include <ost/dmx.h>
|
|
13 #include <ost/sec.h>
|
|
14 #include <ost/frontend.h>
|
|
15 #define fe_status_t FrontendStatus
|
|
16 #define fe_spectral_inversion_t SpectralInversion
|
|
17 #define fe_modulation_t Modulation
|
|
18 #define fe_code_rate_t CodeRate
|
|
19 #define fe_transmit_mode_t TransmitMode
|
|
20 #define fe_guard_interval_t GuardInterval
|
|
21 #define fe_bandwidth_t BandWidth
|
|
22 #define fe_sec_voltage_t SecVoltage
|
|
23 #define dmx_pes_filter_params dmxPesFilterParams
|
|
24 #define dmx_sct_filter_params dmxSctFilterParams
|
|
25 #define dmx_pes_type_t dmxPesType_t
|
|
26 #endif
|
|
27
|
|
28
|
|
29
|
|
30 #define DVB_CHANNEL_LOWER -1
|
|
31 #define DVB_CHANNEL_HIGHER 1
|
|
32
|
10395
|
33 #include "inttypes.h"
|
9610
|
34
|
|
35 typedef struct
|
|
36 {
|
|
37 int next, prev;
|
|
38 } dvb_history_t;
|
|
39
|
|
40 typedef struct {
|
|
41 char *name;
|
|
42 int freq, srate, diseqc, tone;
|
|
43 char pol;
|
|
44 int vpid, apid1, apid2, tpid, dpid1, dpid2, progid, ca;
|
|
45 fe_spectral_inversion_t inv;
|
|
46 fe_modulation_t mod;
|
|
47 fe_transmit_mode_t trans;
|
|
48 fe_bandwidth_t bw;
|
|
49 fe_guard_interval_t gi;
|
|
50 fe_code_rate_t cr;
|
|
51 } dvb_channel_t;
|
|
52
|
|
53
|
|
54 typedef struct {
|
|
55 uint16_t NUM_CHANNELS;
|
|
56 uint16_t current;
|
|
57 dvb_channel_t channels[512];
|
|
58 } dvb_channels_list;
|
|
59
|
|
60
|
|
61
|
|
62 typedef struct {
|
10560
|
63 int card;
|
9610
|
64 int fe_fd;
|
|
65 int sec_fd;
|
|
66 int demux_fd[3];
|
|
67 int dvr_fd;
|
|
68
|
|
69 dvb_channels_list *list;
|
10560
|
70 int tuner_type;
|
|
71 int is_on;
|
|
72 stream_t *stream;
|
|
73 char new_tuning[256], prev_tuning[256];
|
|
74 int retry;
|
9610
|
75 } dvb_priv_t;
|
|
76
|
|
77
|
10560
|
78 #define TUNER_SAT 1
|
|
79 #define TUNER_TER 2
|
|
80 #define TUNER_CBL 3
|
9610
|
81
|
10560
|
82 extern int dvb_step_channel(dvb_priv_t *, int);
|
|
83 extern int dvb_set_channel(dvb_priv_t *, int);
|
|
84
|
|
85 extern dvb_channels_list *dvb_get_channels(char *, int);
|
9610
|
86 extern dvb_history_t dvb_prev_next;
|
|
87
|
|
88
|
|
89 #endif
|