annotate libmpdemux/dvbin.h @ 13280:c0124a531c87

newly created videofilters section \-vf has been moved there from decoding section
author kraymer
date Tue, 07 Sep 2004 11:00:27 +0000
parents fd40ef23053b
children 42d792053cde
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
10560
11826d9f90c7 this patch fixes
arpi
parents: 10395
diff changeset
5 #include "dvb_defaults.h"
11826d9f90c7 this patch fixes
arpi
parents: 10395
diff changeset
6 #include "stream.h"
11826d9f90c7 this patch fixes
arpi
parents: 10395
diff changeset
7
9610
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
8 #ifdef HAVE_DVB_HEAD
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
9 #include <linux/dvb/dmx.h>
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
10 #include <linux/dvb/frontend.h>
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
11 #else
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
12 #include <ost/dmx.h>
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
13 #include <ost/sec.h>
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
14 #include <ost/frontend.h>
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
15 #define fe_status_t FrontendStatus
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
16 #define fe_spectral_inversion_t SpectralInversion
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
17 #define fe_modulation_t Modulation
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
18 #define fe_code_rate_t CodeRate
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
19 #define fe_transmit_mode_t TransmitMode
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
20 #define fe_guard_interval_t GuardInterval
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
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
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
23 #define fe_sec_voltage_t SecVoltage
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
24 #define dmx_pes_filter_params dmxPesFilterParams
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
25 #define dmx_sct_filter_params dmxSctFilterParams
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
26 #define dmx_pes_type_t dmxPesType_t
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
27 #endif
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
28
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
29
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
30
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
31 #define DVB_CHANNEL_LOWER -1
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
32 #define DVB_CHANNEL_HIGHER 1
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
33
10395
362a0e40491b fix compilation (uint*_t undefined)
colin
parents: 9611
diff changeset
34 #include "inttypes.h"
9610
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
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
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
39
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
40 typedef struct {
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
41 char *name;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
42 int freq, srate, diseqc, tone;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
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
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
45 fe_spectral_inversion_t inv;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
46 fe_modulation_t mod;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
47 fe_transmit_mode_t trans;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
48 fe_bandwidth_t bw;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
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
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
52 } dvb_channel_t;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
53
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
54
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
55 typedef struct {
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
56 uint16_t NUM_CHANNELS;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
57 uint16_t current;
12309
5c375ea5fb0f new configuration structure, gcc warn silencing
nicodvb
parents: 11872
diff changeset
58 dvb_channel_t *channels;
9610
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
59 } dvb_channels_list;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
60
12309
5c375ea5fb0f new configuration structure, gcc warn silencing
nicodvb
parents: 11872
diff changeset
61 typedef struct {
5c375ea5fb0f new configuration structure, gcc warn silencing
nicodvb
parents: 11872
diff changeset
62 int type;
5c375ea5fb0f new configuration structure, gcc warn silencing
nicodvb
parents: 11872
diff changeset
63 dvb_channels_list *list;
5c375ea5fb0f new configuration structure, gcc warn silencing
nicodvb
parents: 11872
diff changeset
64 char *name;
5c375ea5fb0f new configuration structure, gcc warn silencing
nicodvb
parents: 11872
diff changeset
65 int devno;
5c375ea5fb0f new configuration structure, gcc warn silencing
nicodvb
parents: 11872
diff changeset
66 } dvb_card_config_t;
5c375ea5fb0f new configuration structure, gcc warn silencing
nicodvb
parents: 11872
diff changeset
67
5c375ea5fb0f new configuration structure, gcc warn silencing
nicodvb
parents: 11872
diff changeset
68 typedef struct {
5c375ea5fb0f new configuration structure, gcc warn silencing
nicodvb
parents: 11872
diff changeset
69 int count;
5c375ea5fb0f new configuration structure, gcc warn silencing
nicodvb
parents: 11872
diff changeset
70 dvb_card_config_t *cards;
5c375ea5fb0f new configuration structure, gcc warn silencing
nicodvb
parents: 11872
diff changeset
71 void *priv;
5c375ea5fb0f new configuration structure, gcc warn silencing
nicodvb
parents: 11872
diff changeset
72 } dvb_config_t;
9610
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
73
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
74
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
75 typedef struct {
10560
11826d9f90c7 this patch fixes
arpi
parents: 10395
diff changeset
76 int card;
9610
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
77 int fe_fd;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
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
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
80 int dvr_fd;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
81
12309
5c375ea5fb0f new configuration structure, gcc warn silencing
nicodvb
parents: 11872
diff changeset
82 dvb_config_t *config;
9610
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
83 dvb_channels_list *list;
10560
11826d9f90c7 this patch fixes
arpi
parents: 10395
diff changeset
84 int tuner_type;
11826d9f90c7 this patch fixes
arpi
parents: 10395
diff changeset
85 int is_on;
11826d9f90c7 this patch fixes
arpi
parents: 10395
diff changeset
86 stream_t *stream;
11826d9f90c7 this patch fixes
arpi
parents: 10395
diff changeset
87 char new_tuning[256], prev_tuning[256];
11826d9f90c7 this patch fixes
arpi
parents: 10395
diff changeset
88 int retry;
9610
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
89 } dvb_priv_t;
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
90
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
91
10560
11826d9f90c7 this patch fixes
arpi
parents: 10395
diff changeset
92 #define TUNER_SAT 1
11826d9f90c7 this patch fixes
arpi
parents: 10395
diff changeset
93 #define TUNER_TER 2
11826d9f90c7 this patch fixes
arpi
parents: 10395
diff changeset
94 #define TUNER_CBL 3
9610
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
95
10560
11826d9f90c7 this patch fixes
arpi
parents: 10395
diff changeset
96 extern int dvb_step_channel(dvb_priv_t *, int);
12309
5c375ea5fb0f new configuration structure, gcc warn silencing
nicodvb
parents: 11872
diff changeset
97 extern int dvb_set_channel(dvb_priv_t *, int, int);
5c375ea5fb0f new configuration structure, gcc warn silencing
nicodvb
parents: 11872
diff changeset
98 extern dvb_config_t *dvb_get_config();
9610
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
99
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
100 #endif