Mercurial > mplayer.hg
annotate stream/frequencies.h @ 34095:8aa5d46de341
Support G2M4 with cytrix codec pack.
Patch by Jan Kolar & Radoslav Horak, kolar at math cas cz
author | cehoyos |
---|---|
date | Fri, 07 Oct 2011 15:23:55 +0000 |
parents | ce0122361a39 |
children |
rev | line source |
---|---|
2933 | 1 /* |
2 * Worldwide channel/frequency list | |
3 * | |
4 * Nathan Laredo (laredo@broked.net) | |
5 * | |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26029
diff
changeset
|
6 * Frequencies are given in kHz |
30426
ce0122361a39
Add license header to all files missing it in the stream subdirectory.
diego
parents:
29263
diff
changeset
|
7 * |
ce0122361a39
Add license header to all files missing it in the stream subdirectory.
diego
parents:
29263
diff
changeset
|
8 * This file is part of MPlayer. |
ce0122361a39
Add license header to all files missing it in the stream subdirectory.
diego
parents:
29263
diff
changeset
|
9 * |
ce0122361a39
Add license header to all files missing it in the stream subdirectory.
diego
parents:
29263
diff
changeset
|
10 * MPlayer is free software; you can redistribute it and/or modify |
ce0122361a39
Add license header to all files missing it in the stream subdirectory.
diego
parents:
29263
diff
changeset
|
11 * it under the terms of the GNU General Public License as published by |
ce0122361a39
Add license header to all files missing it in the stream subdirectory.
diego
parents:
29263
diff
changeset
|
12 * the Free Software Foundation; either version 2 of the License, or |
ce0122361a39
Add license header to all files missing it in the stream subdirectory.
diego
parents:
29263
diff
changeset
|
13 * (at your option) any later version. |
ce0122361a39
Add license header to all files missing it in the stream subdirectory.
diego
parents:
29263
diff
changeset
|
14 * |
ce0122361a39
Add license header to all files missing it in the stream subdirectory.
diego
parents:
29263
diff
changeset
|
15 * MPlayer is distributed in the hope that it will be useful, |
ce0122361a39
Add license header to all files missing it in the stream subdirectory.
diego
parents:
29263
diff
changeset
|
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
ce0122361a39
Add license header to all files missing it in the stream subdirectory.
diego
parents:
29263
diff
changeset
|
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
ce0122361a39
Add license header to all files missing it in the stream subdirectory.
diego
parents:
29263
diff
changeset
|
18 * GNU General Public License for more details. |
ce0122361a39
Add license header to all files missing it in the stream subdirectory.
diego
parents:
29263
diff
changeset
|
19 * |
ce0122361a39
Add license header to all files missing it in the stream subdirectory.
diego
parents:
29263
diff
changeset
|
20 * You should have received a copy of the GNU General Public License along |
ce0122361a39
Add license header to all files missing it in the stream subdirectory.
diego
parents:
29263
diff
changeset
|
21 * with MPlayer; if not, write to the Free Software Foundation, Inc., |
ce0122361a39
Add license header to all files missing it in the stream subdirectory.
diego
parents:
29263
diff
changeset
|
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
2933 | 23 */ |
25553
6ac1ece1f9fe
Add multiple inclusion guards to all header files that lack them.
diego
parents:
19271
diff
changeset
|
24 |
26029 | 25 #ifndef MPLAYER_FREQUENCIES_H |
26 #define MPLAYER_FREQUENCIES_H | |
25553
6ac1ece1f9fe
Add multiple inclusion guards to all header files that lack them.
diego
parents:
19271
diff
changeset
|
27 |
2933 | 28 #define NTSC_AUDIO_CARRIER 4500 |
29 #define PAL_AUDIO_CARRIER_I 6000 | |
30 #define PAL_AUDIO_CARRIER_BGHN 5500 | |
31 #define PAL_AUDIO_CARRIER_MN 4500 | |
32 #define PAL_AUDIO_CARRIER_D 6500 | |
33 #define SEACAM_AUDIO_DKK1L 6500 | |
34 #define SEACAM_AUDIO_BG 5500 | |
35 /* NICAM 728 32-kHz, 14-bit digital stereo audio is transmitted in 1ms frames | |
36 containing 8 bits frame sync, 5 bits control, 11 bits additional data, and | |
37 704 bits audio data. The bit rate is reduced by transmitting only 10 bits | |
38 plus parity of each 14 bit sample, the largest sample in a frame determines | |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26029
diff
changeset
|
39 which 10 bits are transmitted. The parity bits for audio samples also |
2933 | 40 specify the scaling factor used for that channel during that frame. The |
41 companeded audio data is interleaved to reduce the influence of dropouts | |
42 and the whole frame except for sync bits is scrambled for spectrum shaping. | |
43 Data is modulated using QPSK, at below following subcarrier freqs */ | |
44 #define NICAM728_PAL_BGH 5850 | |
45 #define NICAM728_PAL_I 6552 | |
46 | |
47 /* COMPREHENSIVE LIST OF FORMAT BY COUNTRY | |
48 (M) NTSC used in: | |
49 Antigua, Aruba, Bahamas, Barbados, Belize, Bermuda, Bolivia, Burma, | |
50 Canada, Chile, Colombia, Costa Rica, Cuba, Curacao, Dominican Republic, | |
51 Ecuador, El Salvador, Guam Guatemala, Honduras, Jamaica, Japan, | |
52 South Korea, Mexico, Montserrat, Myanmar, Nicaragua, Panama, Peru, | |
53 Philippines, Puerto Rico, St Christopher and Nevis, Samoa, Suriname, | |
54 Taiwan, Trinidad/Tobago, United States, Venezuela, Virgin Islands | |
55 (B) PAL used in: | |
56 Albania, Algeria, Australia, Austria, Bahrain, Bangladesh, Belgium, | |
57 Bosnia-Herzegovinia, Brunei Darussalam, Cambodia, Cameroon, Croatia, | |
58 Cyprus, Denmark, Egypt, Ethiopia, Equatorial Guinea, Finland, Germany, | |
59 Ghana, Gibraltar, Greenland, Iceland, India, Indonesia, Israel, Italy, | |
60 Jordan, Kenya, Kuwait, Liberia, Libya, Luxembourg, Malaysa, Maldives, | |
61 Malta, Nepal, Netherlands, New Zeland, Nigeria, Norway, Oman, Pakistan, | |
62 Papua New Guinea, Portugal, Qatar, Sao Tome and Principe, Saudi Arabia, | |
63 Seychelles, Sierra Leone, Singapore, Slovenia, Somali, Spain, | |
64 Sri Lanka, Sudan, Swaziland, Sweden, Switzeland, Syria, Thailand, | |
65 Tunisia, Turkey, Uganda, United Arab Emirates, Yemen | |
66 (N) PAL used in: (Combination N = 4.5MHz audio carrier, 3.58MHz burst) | |
67 Argentina (Combination N), Paraguay, Uruguay | |
68 (M) PAL (525/60, 3.57MHz burst) used in: | |
69 Brazil | |
70 (G) PAL used in: | |
71 Albania, Algeria, Austria, Bahrain, Bosnia/Herzegovinia, Cambodia, | |
72 Cameroon, Croatia, Cyprus, Denmark, Egypt, Ethiopia, Equatorial Guinea, | |
73 Finland, Germany, Gibraltar, Greenland, Iceland, Israel, Italy, Jordan, | |
74 Kenya, Kuwait, Liberia, Libya, Luxembourg, Malaysia, Monaco, | |
75 Mozambique, Netherlands, New Zealand, Norway, Oman, Pakistan, | |
76 Papa New Guinea, Portugal, Qatar, Romania, Sierra Leone, Singapore, | |
77 Slovenia, Somalia, Spain, Sri Lanka, Sudan, Swaziland, Sweeden, | |
78 Switzerland, Syria, Thailand, Tunisia, Turkey, United Arab Emirates, | |
79 Yemen, Zambia, Zimbabwe | |
80 (D) PAL used in: | |
81 China, North Korea, Romania, Czech Republic | |
82 (H) PAL used in: | |
83 Belgium | |
84 (I) PAL used in: | |
85 Angola, Botswana, Gambia, Guinea-Bissau, Hong Kong, Ireland, Lesotho, | |
86 Malawi, Nambia, Nigeria, South Africa, Tanzania, United Kingdom, | |
87 Zanzibar | |
88 (B) SECAM used in: | |
89 Djibouti, Greece, Iran, Iraq, Lebanon, Mali, Mauritania, Mauritus, | |
90 Morocco | |
91 (D) SECAM used in: | |
92 Afghanistan, Armenia, Azerbaijan, Belarus, Bulgaria, | |
93 Estonia, Georgia, Hungary, Zazakhstan, Lithuania, Mongolia, Moldova, | |
94 Russia, Slovak Republic, Ukraine, Vietnam | |
95 (G) SECAM used in: | |
96 Greecem Iran, Iraq, Mali, Mauritus, Morocco, Saudi Arabia | |
97 (K) SECAM used in: | |
98 Armenia, Azerbaijan, Bulgaria, Estonia, Georgia, | |
99 Hungary, Kazakhstan, Lithuania, Madagascar, Moldova, Poland, Russia, | |
100 Slovak Republic, Ukraine, Vietnam | |
101 (K1) SECAM used in: | |
102 Benin, Burkina Faso, Burundi, Chad, Cape Verde, Central African | |
103 Republic, Comoros, Congo, Gabon, Madagascar, Niger, Rwanda, Senegal, | |
104 Togo, Zaire | |
105 (L) SECAM used in: | |
106 France | |
107 */ | |
108 | |
109 /* --------------------------------------------------------------------- */ | |
110 | |
111 struct CHANLIST { | |
18032
de6740c3ab2a
10l: huge amount of constant crap in data segment
rfelker
parents:
15472
diff
changeset
|
112 char name[8]; |
2933 | 113 int freq; |
114 }; | |
115 | |
116 struct CHANLISTS { | |
19110
08888397444e
marks several strings inside structs as const when they hold just
reynaldo
parents:
18513
diff
changeset
|
117 const char *name; |
18032
de6740c3ab2a
10l: huge amount of constant crap in data segment
rfelker
parents:
15472
diff
changeset
|
118 const struct CHANLIST *list; |
de6740c3ab2a
10l: huge amount of constant crap in data segment
rfelker
parents:
15472
diff
changeset
|
119 int count; |
2933 | 120 }; |
121 | |
122 #define CHAN_COUNT(x) (sizeof(x)/sizeof(struct CHANLIST)) | |
123 | |
124 /* --------------------------------------------------------------------- */ | |
125 | |
18032
de6740c3ab2a
10l: huge amount of constant crap in data segment
rfelker
parents:
15472
diff
changeset
|
126 extern const struct CHANLISTS chanlists[]; |
15472
b40d7c9a6ace
comment out useless/nonexistent variable breaking compile on gcc4
rfelker
parents:
2933
diff
changeset
|
127 //extern struct STRTAB chanlist_names[]; |
2933 | 128 |
129 extern int chantab; | |
18513 | 130 extern const struct CHANLIST *chanlist; |
2933 | 131 extern int chancount; |
25553
6ac1ece1f9fe
Add multiple inclusion guards to all header files that lack them.
diego
parents:
19271
diff
changeset
|
132 |
26029 | 133 #endif /* MPLAYER_FREQUENCIES_H */ |