Mercurial > mplayer.hg
annotate libmpdemux/dvbin.h @ 12806:2a02e3dc8ba3
fix 10l fixed_quant bug reported by Michael
author | iive |
---|---|
date | Tue, 13 Jul 2004 18:09:58 +0000 |
parents | 168238f8c715 |
children | fd40ef23053b |
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 | |
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 |
12803
168238f8c715
added multi-pid parsing code (up to 15), pid 0 is always added (for the PAT)
nicodvb
parents:
12309
diff
changeset
|
35 #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
|
36 #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
|
37 #endif |
9610 | 38 |
39 typedef struct { | |
40 char *name; | |
41 int freq, srate, diseqc, tone; | |
42 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
|
43 int tpid, dpid1, dpid2, progid, ca, pids[DMX_FILTER_SIZE], pids_cnt; |
9610 | 44 fe_spectral_inversion_t inv; |
45 fe_modulation_t mod; | |
46 fe_transmit_mode_t trans; | |
47 fe_bandwidth_t bw; | |
48 fe_guard_interval_t gi; | |
49 fe_code_rate_t cr; | |
50 } dvb_channel_t; | |
51 | |
52 | |
53 typedef struct { | |
54 uint16_t NUM_CHANNELS; | |
55 uint16_t current; | |
12309 | 56 dvb_channel_t *channels; |
9610 | 57 } dvb_channels_list; |
58 | |
12309 | 59 typedef struct { |
60 int type; | |
61 dvb_channels_list *list; | |
62 char *name; | |
63 int devno; | |
64 } dvb_card_config_t; | |
65 | |
66 typedef struct { | |
67 int count; | |
68 dvb_card_config_t *cards; | |
69 void *priv; | |
70 } dvb_config_t; | |
9610 | 71 |
72 | |
73 typedef struct { | |
10560 | 74 int card; |
9610 | 75 int fe_fd; |
76 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
|
77 int demux_fd[3], demux_fds[DMX_FILTER_SIZE], demux_fds_cnt; |
9610 | 78 int dvr_fd; |
79 | |
12309 | 80 dvb_config_t *config; |
9610 | 81 dvb_channels_list *list; |
10560 | 82 int tuner_type; |
83 int is_on; | |
84 stream_t *stream; | |
85 char new_tuning[256], prev_tuning[256]; | |
86 int retry; | |
9610 | 87 } dvb_priv_t; |
88 | |
89 | |
10560 | 90 #define TUNER_SAT 1 |
91 #define TUNER_TER 2 | |
92 #define TUNER_CBL 3 | |
9610 | 93 |
10560 | 94 extern int dvb_step_channel(dvb_priv_t *, int); |
12309 | 95 extern int dvb_set_channel(dvb_priv_t *, int, int); |
96 extern dvb_config_t *dvb_get_config(); | |
9610 | 97 |
98 #endif |