Mercurial > mplayer.hg
annotate stream/dvbin.h @ 19424:5df27eeec3bf
Rename gcc_checking variable to gcc_check.
author | diego |
---|---|
date | Thu, 17 Aug 2006 23:40:11 +0000 |
parents | 64d82a45a05d |
children | 31b525f90395 |
rev | line source |
---|---|
15178
8dd7a656eaf8
Mark modified imported files as such to comply more closely with GPL ¡ø2a.
diego
parents:
14382
diff
changeset
|
1 /* Imported from the dvbstream project |
8dd7a656eaf8
Mark modified imported files as such to comply more closely with GPL ¡ø2a.
diego
parents:
14382
diff
changeset
|
2 * |
18783 | 3 * Modified for use with MPlayer, for details see the changelog at |
4 * http://svn.mplayerhq.hu/mplayer/trunk/ | |
15178
8dd7a656eaf8
Mark modified imported files as such to comply more closely with GPL ¡ø2a.
diego
parents:
14382
diff
changeset
|
5 * $Id$ |
8dd7a656eaf8
Mark modified imported files as such to comply more closely with GPL ¡ø2a.
diego
parents:
14382
diff
changeset
|
6 */ |
9610 | 7 |
8 #ifndef DVBIN_H | |
9 #define DVBIN_H | |
10 | |
10560 | 11 #include "stream.h" |
12 | |
19086 | 13 #define SLOF (11700*1000UL) |
14 #define LOF1 (9750*1000UL) | |
15 #define LOF2 (10600*1000UL) | |
16 | |
9610 | 17 #ifdef HAVE_DVB_HEAD |
18 #include <linux/dvb/dmx.h> | |
19 #include <linux/dvb/frontend.h> | |
14382 | 20 #include <linux/dvb/version.h> |
9610 | 21 #else |
22 #include <ost/dmx.h> | |
23 #include <ost/sec.h> | |
24 #include <ost/frontend.h> | |
25 #define fe_status_t FrontendStatus | |
26 #define fe_spectral_inversion_t SpectralInversion | |
27 #define fe_modulation_t Modulation | |
28 #define fe_code_rate_t CodeRate | |
29 #define fe_transmit_mode_t TransmitMode | |
30 #define fe_guard_interval_t GuardInterval | |
31 #define fe_bandwidth_t BandWidth | |
13155
fd40ef23053b
added forgotten dvb-t params lp_coderate and hierarchy
nicodvb
parents:
12803
diff
changeset
|
32 #define fe_hierarchy_t Hierarchy |
9610 | 33 #define fe_sec_voltage_t SecVoltage |
34 #define dmx_pes_filter_params dmxPesFilterParams | |
35 #define dmx_sct_filter_params dmxSctFilterParams | |
36 #define dmx_pes_type_t dmxPesType_t | |
37 #endif | |
38 | |
14382 | 39 #undef DVB_ATSC |
40 #if defined(DVB_API_VERSION_MINOR) | |
41 #if DVB_API_VERSION == 3 && DVB_API_VERSION_MINOR >= 1 | |
42 #define DVB_ATSC 1 | |
43 #endif | |
44 #endif | |
9610 | 45 |
46 | |
47 #define DVB_CHANNEL_LOWER -1 | |
48 #define DVB_CHANNEL_HIGHER 1 | |
49 | |
10395 | 50 #include "inttypes.h" |
9610 | 51 |
12803
168238f8c715
added multi-pid parsing code (up to 15), pid 0 is always added (for the PAT)
nicodvb
parents:
12309
diff
changeset
|
52 #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
|
53 #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
|
54 #endif |
9610 | 55 |
56 typedef struct { | |
57 char *name; | |
58 int freq, srate, diseqc, tone; | |
59 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
|
60 int tpid, dpid1, dpid2, progid, ca, pids[DMX_FILTER_SIZE], pids_cnt; |
9610 | 61 fe_spectral_inversion_t inv; |
62 fe_modulation_t mod; | |
63 fe_transmit_mode_t trans; | |
64 fe_bandwidth_t bw; | |
65 fe_guard_interval_t gi; | |
13155
fd40ef23053b
added forgotten dvb-t params lp_coderate and hierarchy
nicodvb
parents:
12803
diff
changeset
|
66 fe_code_rate_t cr, cr_lp; |
fd40ef23053b
added forgotten dvb-t params lp_coderate and hierarchy
nicodvb
parents:
12803
diff
changeset
|
67 fe_hierarchy_t hier; |
9610 | 68 } dvb_channel_t; |
69 | |
70 | |
71 typedef struct { | |
72 uint16_t NUM_CHANNELS; | |
73 uint16_t current; | |
12309 | 74 dvb_channel_t *channels; |
9610 | 75 } dvb_channels_list; |
76 | |
12309 | 77 typedef struct { |
78 int type; | |
79 dvb_channels_list *list; | |
80 char *name; | |
81 int devno; | |
82 } dvb_card_config_t; | |
83 | |
84 typedef struct { | |
85 int count; | |
86 dvb_card_config_t *cards; | |
87 void *priv; | |
88 } dvb_config_t; | |
9610 | 89 |
90 | |
91 typedef struct { | |
10560 | 92 int card; |
9610 | 93 int fe_fd; |
94 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
|
95 int demux_fd[3], demux_fds[DMX_FILTER_SIZE], demux_fds_cnt; |
9610 | 96 int dvr_fd; |
97 | |
12309 | 98 dvb_config_t *config; |
9610 | 99 dvb_channels_list *list; |
10560 | 100 int tuner_type; |
101 int is_on; | |
102 stream_t *stream; | |
103 char new_tuning[256], prev_tuning[256]; | |
104 int retry; | |
18561 | 105 int timeout; |
9610 | 106 } dvb_priv_t; |
107 | |
108 | |
10560 | 109 #define TUNER_SAT 1 |
110 #define TUNER_TER 2 | |
111 #define TUNER_CBL 3 | |
14382 | 112 #define TUNER_ATSC 4 |
9610 | 113 |
10560 | 114 extern int dvb_step_channel(dvb_priv_t *, int); |
12309 | 115 extern int dvb_set_channel(dvb_priv_t *, int, int); |
17566
f580a7755ac5
Patch by Stefan Huehner / stefan % huehner ! org \
rathann
parents:
15178
diff
changeset
|
116 extern dvb_config_t *dvb_get_config(void); |
9610 | 117 |
118 #endif |