Mercurial > mplayer.hg
annotate libmpdemux/dvbin.h @ 14061:682ddd07f14e
better label
author | diego |
---|---|
date | Mon, 29 Nov 2004 18:44:08 +0000 |
parents | fd40ef23053b |
children | 42d792053cde |
rev | line source |
---|---|
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 | |
13155
fd40ef23053b
added forgotten dvb-t params lp_coderate and hierarchy
nicodvb
parents:
12803
diff
changeset
|
22 #define fe_hierarchy_t Hierarchy |
9610 | 23 #define fe_sec_voltage_t SecVoltage |
24 #define dmx_pes_filter_params dmxPesFilterParams | |
25 #define dmx_sct_filter_params dmxSctFilterParams | |
26 #define dmx_pes_type_t dmxPesType_t | |
27 #endif | |
28 | |
29 | |
30 | |
31 #define DVB_CHANNEL_LOWER -1 | |
32 #define DVB_CHANNEL_HIGHER 1 | |
33 | |
10395 | 34 #include "inttypes.h" |
9610 | 35 |
12803
168238f8c715
added multi-pid parsing code (up to 15), pid 0 is always added (for the PAT)
nicodvb
parents:
12309
diff
changeset
|
36 #ifndef DMX_FILTER_SIZE |
168238f8c715
added multi-pid parsing code (up to 15), pid 0 is always added (for the PAT)
nicodvb
parents:
12309
diff
changeset
|
37 #define DMX_FILTER_SIZE 16 |
168238f8c715
added multi-pid parsing code (up to 15), pid 0 is always added (for the PAT)
nicodvb
parents:
12309
diff
changeset
|
38 #endif |
9610 | 39 |
40 typedef struct { | |
41 char *name; | |
42 int freq, srate, diseqc, tone; | |
43 char pol; | |
12803
168238f8c715
added multi-pid parsing code (up to 15), pid 0 is always added (for the PAT)
nicodvb
parents:
12309
diff
changeset
|
44 int tpid, dpid1, dpid2, progid, ca, pids[DMX_FILTER_SIZE], pids_cnt; |
9610 | 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; | |
13155
fd40ef23053b
added forgotten dvb-t params lp_coderate and hierarchy
nicodvb
parents:
12803
diff
changeset
|
50 fe_code_rate_t cr, cr_lp; |
fd40ef23053b
added forgotten dvb-t params lp_coderate and hierarchy
nicodvb
parents:
12803
diff
changeset
|
51 fe_hierarchy_t hier; |
9610 | 52 } dvb_channel_t; |
53 | |
54 | |
55 typedef struct { | |
56 uint16_t NUM_CHANNELS; | |
57 uint16_t current; | |
12309 | 58 dvb_channel_t *channels; |
9610 | 59 } dvb_channels_list; |
60 | |
12309 | 61 typedef struct { |
62 int type; | |
63 dvb_channels_list *list; | |
64 char *name; | |
65 int devno; | |
66 } dvb_card_config_t; | |
67 | |
68 typedef struct { | |
69 int count; | |
70 dvb_card_config_t *cards; | |
71 void *priv; | |
72 } dvb_config_t; | |
9610 | 73 |
74 | |
75 typedef struct { | |
10560 | 76 int card; |
9610 | 77 int fe_fd; |
78 int sec_fd; | |
12803
168238f8c715
added multi-pid parsing code (up to 15), pid 0 is always added (for the PAT)
nicodvb
parents:
12309
diff
changeset
|
79 int demux_fd[3], demux_fds[DMX_FILTER_SIZE], demux_fds_cnt; |
9610 | 80 int dvr_fd; |
81 | |
12309 | 82 dvb_config_t *config; |
9610 | 83 dvb_channels_list *list; |
10560 | 84 int tuner_type; |
85 int is_on; | |
86 stream_t *stream; | |
87 char new_tuning[256], prev_tuning[256]; | |
88 int retry; | |
9610 | 89 } dvb_priv_t; |
90 | |
91 | |
10560 | 92 #define TUNER_SAT 1 |
93 #define TUNER_TER 2 | |
94 #define TUNER_CBL 3 | |
9610 | 95 |
10560 | 96 extern int dvb_step_channel(dvb_priv_t *, int); |
12309 | 97 extern int dvb_set_channel(dvb_priv_t *, int, int); |
98 extern dvb_config_t *dvb_get_config(); | |
9610 | 99 |
100 #endif |