summaryrefslogtreecommitdiffstats
path: root/stream/frequencies.h
blob: 3439412f6ddf605a513b8cb3f373aac35b3998d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
/*
 * Worldwide channel/frequency list
 *
 * Nathan Laredo (laredo@broked.net)
 *
 * Frequencies are given in kHz
 *
 * This file is part of MPlayer.
 *
 * MPlayer is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * MPlayer is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

#ifndef MPLAYER_FREQUENCIES_H
#define MPLAYER_FREQUENCIES_H

#define NTSC_AUDIO_CARRIER      4500
#define PAL_AUDIO_CARRIER_I     6000
#define PAL_AUDIO_CARRIER_BGHN  5500
#define PAL_AUDIO_CARRIER_MN    4500
#define PAL_AUDIO_CARRIER_D     6500
#define SEACAM_AUDIO_DKK1L      6500
#define SEACAM_AUDIO_BG         5500
/* NICAM 728 32-kHz, 14-bit digital stereo audio is transmitted in 1ms frames
   containing 8 bits frame sync, 5 bits control, 11 bits additional data, and
   704 bits audio data.  The bit rate is reduced by transmitting only 10 bits
   plus parity of each 14 bit sample, the largest sample in a frame determines
   which 10 bits are transmitted.  The parity bits for audio samples also
   specify the scaling factor used for that channel during that frame.  The
   companeded audio data is interleaved to reduce the influence of dropouts
   and the whole frame except for sync bits is scrambled for spectrum shaping.
   Data is modulated using QPSK, at below following subcarrier freqs */
#define NICAM728_PAL_BGH        5850
#define NICAM728_PAL_I          6552

/* COMPREHENSIVE LIST OF FORMAT BY COUNTRY
   (M) NTSC used in:
        Antigua, Aruba, Bahamas, Barbados, Belize, Bermuda, Bolivia, Burma,
        Canada, Chile, Colombia, Costa Rica, Cuba, Curacao, Dominican Republic,
        Ecuador, El Salvador, Guam Guatemala, Honduras, Jamaica, Japan,
        South Korea, Mexico, Montserrat, Myanmar, Nicaragua, Panama, Peru,
        Philippines, Puerto Rico, St Christopher and Nevis, Samoa, Suriname,
        Taiwan, Trinidad/Tobago, United States, Venezuela, Virgin Islands
   (B) PAL used in:
        Albania, Algeria, Australia, Austria, Bahrain, Bangladesh, Belgium,
        Bosnia-Herzegovinia, Brunei Darussalam, Cambodia, Cameroon, Croatia,
        Cyprus, Denmark, Egypt, Ethiopia, Equatorial Guinea, Finland, Germany,
        Ghana, Gibraltar, Greenland, Iceland, India, Indonesia, Israel, Italy,
        Jordan, Kenya, Kuwait, Liberia, Libya, Luxembourg, Malaysa, Maldives,
        Malta, Nepal, Netherlands, New Zeland, Nigeria, Norway, Oman, Pakistan,
        Papua New Guinea, Portugal, Qatar, Sao Tome and Principe, Saudi Arabia,
        Seychelles, Sierra Leone, Singapore, Slovenia, Somali, Spain,
        Sri Lanka, Sudan, Swaziland, Sweden, Switzeland, Syria, Thailand,
        Tunisia, Turkey, Uganda, United Arab Emirates, Yemen
   (N) PAL used in: (Combination N = 4.5MHz audio carrier, 3.58MHz burst)
        Argentina (Combination N), Paraguay, Uruguay
   (M) PAL (525/60, 3.57MHz burst) used in:
        Brazil
   (G) PAL used in:
        Albania, Algeria, Austria, Bahrain, Bosnia/Herzegovinia, Cambodia,
        Cameroon, Croatia, Cyprus, Denmark, Egypt, Ethiopia, Equatorial Guinea,
        Finland, Germany, Gibraltar, Greenland, Iceland, Israel, Italy, Jordan,
        Kenya, Kuwait, Liberia, Libya, Luxembourg, Malaysia, Monaco,
        Mozambique, Netherlands, New Zealand, Norway, Oman, Pakistan,
        Papa New Guinea, Portugal, Qatar, Romania, Sierra Leone, Singapore,
        Slovenia, Somalia, Spain, Sri Lanka, Sudan, Swaziland, Sweeden,
        Switzerland, Syria, Thailand, Tunisia, Turkey, United Arab Emirates,
        Yemen, Zambia, Zimbabwe
   (D) PAL used in:
        China, North Korea, Romania, Czech Republic
   (H) PAL used in:
        Belgium
   (I) PAL used in:
        Angola, Botswana, Gambia, Guinea-Bissau, Hong Kong, Ireland, Lesotho,
        Malawi, Nambia, Nigeria, South Africa, Tanzania, United Kingdom,
        Zanzibar
   (B) SECAM used in:
        Djibouti, Greece, Iran, Iraq, Lebanon, Mali, Mauritania, Mauritus,
        Morocco
   (D) SECAM used in:
        Afghanistan, Armenia, Azerbaijan, Belarus, Bulgaria,
        Estonia, Georgia, Hungary, Zazakhstan, Lithuania, Mongolia, Moldova,
        Russia, Slovak Republic, Ukraine, Vietnam
   (G) SECAM used in:
        Greecem Iran, Iraq, Mali, Mauritus, Morocco, Saudi Arabia
   (K) SECAM used in:
        Armenia, Azerbaijan, Bulgaria, Estonia, Georgia,
        Hungary, Kazakhstan, Lithuania, Madagascar, Moldova, Poland, Russia,
        Slovak Republic, Ukraine, Vietnam
   (K1) SECAM used in:
        Benin, Burkina Faso, Burundi, Chad, Cape Verde, Central African
        Republic, Comoros, Congo, Gabon, Madagascar, Niger, Rwanda, Senegal,
        Togo, Zaire
   (L) SECAM used in:
        France
*/

/* --------------------------------------------------------------------- */

struct CHANLIST {
    char  name[8];
    int   freq;
};

struct CHANLISTS {
    const char             *name;
    const struct CHANLIST  *list;
    int                    count;
};

#define CHAN_COUNT(x) (sizeof(x)/sizeof(struct CHANLIST))

/* --------------------------------------------------------------------- */

extern const struct CHANLISTS   chanlists[];
extern const int                chancount;

#endif /* MPLAYER_FREQUENCIES_H */