annotate libmpdemux/dvbin.h @ 9610:76c6d8f1ebf5

this is a combo patch that: 1) adds an experimental TS demuxer to mplayer 2) adds an input (streaming) interface from DVB cards. It compiles and runs with the following versions of the drivers: dvb-kernel (HEAD) (with stock kernel 2.4.20) and 0.9.4 (with kernel 2.4.18) patch by Nico <nsabbi@libero.it> some cleanups, ts demuxer fixes by me
author arpi
date Sun, 16 Mar 2003 20:13:28 +0000
parents
children 4847392922be
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9610
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
1
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
2 #ifndef DVBIN_H
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
3 #define DVBIN_H
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
4
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
5 extern int dvbin_param_on;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
6
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
7 #ifdef HAVE_DVB_HEAD
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
8 #include <linux/dvb/dmx.h>
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
9 #include <linux/dvb/frontend.h>
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
10 #else
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
11 #include <ost/dmx.h>
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
12 #include <ost/sec.h>
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
13 #include <ost/frontend.h>
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
14 #define fe_status_t FrontendStatus
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
15 #define fe_spectral_inversion_t SpectralInversion
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
16 #define fe_modulation_t Modulation
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
17 #define fe_code_rate_t CodeRate
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
18 #define fe_transmit_mode_t TransmitMode
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
19 #define fe_guard_interval_t GuardInterval
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
20 #define fe_bandwidth_t BandWidth
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
21 #define fe_sec_voltage_t SecVoltage
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
22 #define dmx_pes_filter_params dmxPesFilterParams
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
23 #define dmx_sct_filter_params dmxSctFilterParams
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
24 #define dmx_pes_type_t dmxPesType_t
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
25 #endif
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
26
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
27
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
28
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
29 #define DVB_CHANNEL_LOWER -1
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
30 #define DVB_CHANNEL_HIGHER 1
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
31
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
32
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
33 typedef struct
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
34 {
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
35 int next, prev;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
36 } dvb_history_t;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
37
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
38 typedef struct {
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
39 char *name;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
40 int freq, srate, diseqc, tone;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
41 char pol;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
42 int vpid, apid1, apid2, tpid, dpid1, dpid2, progid, ca;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
43 fe_spectral_inversion_t inv;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
44 fe_modulation_t mod;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
45 fe_transmit_mode_t trans;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
46 fe_bandwidth_t bw;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
47 fe_guard_interval_t gi;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
48 fe_code_rate_t cr;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
49 } dvb_channel_t;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
50
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
51
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
52 typedef struct {
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
53 uint16_t NUM_CHANNELS;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
54 uint16_t current;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
55 dvb_channel_t channels[512];
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
56 } dvb_channels_list;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
57
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
58
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
59
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
60 typedef struct {
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
61 int fe_fd;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
62 int sec_fd;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
63 int demux_fd[3];
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
64 int dvr_fd;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
65 int input;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
66 int output;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
67 int discard;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
68
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
69 dvb_channel_t channel;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
70 dvb_channels_list *list;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
71 } dvb_priv_t;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
72
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
73
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
74 extern dvb_history_t *dvb_step_channel(dvb_priv_t*, int, dvb_history_t*);
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
75
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
76 extern dvb_channels_list *dvb_get_channels(char *, const char *);
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
77 extern dvb_history_t dvb_prev_next;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
78
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
79
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
80
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
81
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
82 #ifndef DVB_T_LOCATION
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
83 #ifndef UK
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
84 #warning No DVB-T country defined in dvb_defaults.h, defaulting to UK
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
85 #endif
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
86
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
87 /* UNITED KINGDOM settings */
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
88 #define DVB_T_LOCATION "in United Kingdom"
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
89 #define BANDWIDTH_DEFAULT BANDWIDTH_8_MHZ
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
90 #define HP_CODERATE_DEFAULT FEC_2_3
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
91 #define CONSTELLATION_DEFAULT QAM_64
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
92 #define TRANSMISSION_MODE_DEFAULT TRANSMISSION_MODE_2K
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
93 #define GUARD_INTERVAL_DEFAULT GUARD_INTERVAL_1_32
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
94 #define HIERARCHY_DEFAULT HIERARCHY_NONE
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
95 #endif
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
96
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
97 #define HIERARCHY_DEFAULT HIERARCHY_NONE
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
98 #define LP_CODERATE_DEFAULT (0)
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
99
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
100
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
101
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
102 #endif