annotate libmpdemux/dvb_defaults.h @ 10730:67449e5936f3

fix 10l (computation based on uninitialized data which led to incorrect field matching) and greatly improve selection logic. the pullup core should be very accurate now, so try throwing tough samples at it and report any failures! :)
author rfelker
date Sun, 31 Aug 2003 17:46:32 +0000
parents 76c6d8f1ebf5
children 5c375ea5fb0f
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 /* dvb_defaults.h
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
2
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
3 Provided by Tomi Ollila
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
4
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
5 Copyright (C) Dave Chapman 2002
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
6
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
7 This program is free software; you can redistribute it and/or
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
8 modify it under the terms of the GNU General Public License
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
9 as published by the Free Software Foundation; either version 2
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
10 of the License, or (at your option) any later version.
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
11
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
12 This program is distributed in the hope that it will be useful,
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
15 GNU General Public License for more details.
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
16
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
17 You should have received a copy of the GNU General Public License
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
18 along with this program; if not, write to the Free Software
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
20 Or, point your browser to http://www.gnu.org/copyleft/gpl.html
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
21
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
22 */
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
23
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
24 #ifndef _DVB_DEFAULTS_H
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
25 #define _DVB_DEFAULTS_H
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
26
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
27 /* DVB-S */
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
28
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
29 // With a diseqc system you may need different values per LNB. I hope
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
30 // no-one ever asks for that :-)
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
31
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
32 #define SLOF (11700*1000UL)
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
33 #define LOF1 (9750*1000UL)
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
34 #define LOF2 (10600*1000UL)
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
35
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
36
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
37
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
38 #ifdef FINLAND
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
39 /* FINLAND settings 1 */
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
40 #define DVB_T_LOCATION "Suomessa"
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
41 #define BANDWIDTH_DEFAULT BANDWIDTH_8_MHZ
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
42 #define HP_CODERATE_DEFAULT FEC_2_3
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
43 #define CONSTELLATION_DEFAULT QAM_64
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
44 #define TRANSMISSION_MODE_DEFAULT TRANSMISSION_MODE_8K
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
45 #define GUARD_INTERVAL_DEFAULT GUARD_INTERVAL_1_8
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
46 #define HIERARCHY_DEFAULT HIERARCHY_NONE
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
47 #endif
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
48
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
49
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
50 #ifdef FINLAND2
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
51 /* FINLAND settings 2 (someone verify there is such environment) */
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
52 #define DVB_T_LOCATION "Suomessa II"
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
53 #define BANDWIDTH_DEFAULT BANDWIDTH_8_MHZ
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
54 #define HP_CODERATE_DEFAULT FEC_1_2
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
55 #define CONSTELLATION_DEFAULT QAM_64
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
56 #define TRANSMISSION_MODE_DEFAULT TRANSMISSION_MODE_2K
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
57 #define GUARD_INTERVAL_DEFAULT GUARD_INTERVAL_1_8
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
58 #define HIERARCHY_DEFAULT HIERARCHY_NONE
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
59 #endif
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
60
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
61 #if defined (UK) && defined (HP_CODERATE_DEFAULT)
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
62 #error Multible countries defined
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
63 #endif
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
64
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
65
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
66
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
67 #ifndef DVB_T_LOCATION
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
68 #ifndef UK
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
69 #warning No DVB-T country defined in dvb_defaults.h
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
70 #warning defaulting to UK
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
71 #warning Ignore this if using Satellite or Cable
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
72 #endif
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
73
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
74 /* UNITED KINGDOM settings */
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
75 #define DVB_T_LOCATION "in United Kingdom"
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
76 #define BANDWIDTH_DEFAULT BANDWIDTH_8_MHZ
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
77 #define HP_CODERATE_DEFAULT FEC_2_3
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
78 #define CONSTELLATION_DEFAULT QAM_64
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
79 #define TRANSMISSION_MODE_DEFAULT TRANSMISSION_MODE_2K
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
80 #define GUARD_INTERVAL_DEFAULT GUARD_INTERVAL_1_32
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
81 #define HIERARCHY_DEFAULT HIERARCHY_NONE
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
82 #endif
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
83
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
84
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
85 #if HIERARCHY_DEFAULT == HIERARCHY_NONE && !defined (LP_CODERATE_DEFAULT)
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
86 #define LP_CODERATE_DEFAULT (0) /* unused if HIERARCHY_NONE */
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
87 #endif
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
88
76c6d8f1ebf5 this is a combo patch that:
arpi
parents:
diff changeset
89 #endif