| 1 |
|
| 2 |
#if 0 |
| 3 |
struct STRTAB { |
| 4 |
long nr; |
| 5 |
const char *str; |
| 6 |
}; |
| 7 |
#endif |
| 8 |
|
| 9 |
/* |
| 10 |
* Worldwide channel/frequency list |
| 11 |
* |
| 12 |
* Nathan Laredo ([email protected]) |
| 13 |
* |
| 14 |
* Frequencies are given in kHz |
| 15 |
*/ |
| 16 |
#define NTSC_AUDIO_CARRIER 4500 |
| 17 |
#define PAL_AUDIO_CARRIER_I 6000 |
| 18 |
#define PAL_AUDIO_CARRIER_BGHN 5500 |
| 19 |
#define PAL_AUDIO_CARRIER_MN 4500 |
| 20 |
#define PAL_AUDIO_CARRIER_D 6500 |
| 21 |
#define SEACAM_AUDIO_DKK1L 6500 |
| 22 |
#define SEACAM_AUDIO_BG 5500 |
| 23 |
/* NICAM 728 32-kHz, 14-bit digital stereo audio is transmitted in 1ms frames |
| 24 |
containing 8 bits frame sync, 5 bits control, 11 bits additional data, and |
| 25 |
704 bits audio data. The bit rate is reduced by transmitting only 10 bits |
| 26 |
plus parity of each 14 bit sample, the largest sample in a frame determines |
| 27 |
which 10 bits are transmitted. The parity bits for audio samples also |
| 28 |
specify the scaling factor used for that channel during that frame. The |
| 29 |
companeded audio data is interleaved to reduce the influence of dropouts |
| 30 |
and the whole frame except for sync bits is scrambled for spectrum shaping. |
| 31 |
Data is modulated using QPSK, at below following subcarrier freqs */ |
| 32 |
#define NICAM728_PAL_BGH 5850 |
| 33 |
#define NICAM728_PAL_I 6552 |
| 34 |
|
| 35 |
/* COMPREHENSIVE LIST OF FORMAT BY COUNTRY |
| 36 |
(M) NTSC used in: |
| 37 |
Antigua, Aruba, Bahamas, Barbados, Belize, Bermuda, Bolivia, Burma, |
| 38 |
Canada, Chile, Colombia, Costa Rica, Cuba, Curacao, Dominican Republic, |
| 39 |
Ecuador, El Salvador, Guam Guatemala, Honduras, Jamaica, Japan, |
| 40 |
South Korea, Mexico, Montserrat, Myanmar, Nicaragua, Panama, Peru, |
| 41 |
Philippines, Puerto Rico, St Christopher and Nevis, Samoa, Suriname, |
| 42 |
Taiwan, Trinidad/Tobago, United States, Venezuela, Virgin Islands |
| 43 |
(B) PAL used in: |
| 44 |
Albania, Algeria, Australia, Austria, Bahrain, Bangladesh, Belgium, |
| 45 |
Bosnia-Herzegovinia, Brunei Darussalam, Cambodia, Cameroon, Croatia, |
| 46 |
Cyprus, Denmark, Egypt, Ethiopia, Equatorial Guinea, Finland, Germany, |
| 47 |
Ghana, Gibraltar, Greenland, Iceland, India, Indonesia, Israel, Italy, |
| 48 |
Jordan, Kenya, Kuwait, Liberia, Libya, Luxembourg, Malaysa, Maldives, |
| 49 |
Malta, Nepal, Netherlands, New Zeland, Nigeria, Norway, Oman, Pakistan, |
| 50 |
Papua New Guinea, Portugal, Qatar, Sao Tome and Principe, Saudi Arabia, |
| 51 |
Seychelles, Sierra Leone, Singapore, Slovenia, Somali, Spain, |
| 52 |
Sri Lanka, Sudan, Swaziland, Sweden, Switzeland, Syria, Thailand, |
| 53 |
Tunisia, Turkey, Uganda, United Arab Emirates, Yemen |
| 54 |
(N) PAL used in: (Combination N = 4.5MHz audio carrier, 3.58MHz burst) |
| 55 |
Argentina (Combination N), Paraguay, Uruguay |
| 56 |
(M) PAL (525/60, 3.57MHz burst) used in: |
| 57 |
Brazil |
| 58 |
(G) PAL used in: |
| 59 |
Albania, Algeria, Austria, Bahrain, Bosnia/Herzegovinia, Cambodia, |
| 60 |
Cameroon, Croatia, Cyprus, Denmark, Egypt, Ethiopia, Equatorial Guinea, |
| 61 |
Finland, Germany, Gibraltar, Greenland, Iceland, Israel, Italy, Jordan, |
| 62 |
Kenya, Kuwait, Liberia, Libya, Luxembourg, Malaysia, Monaco, |
| 63 |
Mozambique, Netherlands, New Zealand, Norway, Oman, Pakistan, |
| 64 |
Papa New Guinea, Portugal, Qatar, Romania, Sierra Leone, Singapore, |
| 65 |
Slovenia, Somalia, Spain, Sri Lanka, Sudan, Swaziland, Sweeden, |
| 66 |
Switzerland, Syria, Thailand, Tunisia, Turkey, United Arab Emirates, |
| 67 |
Yemen, Zambia, Zimbabwe |
| 68 |
(D) PAL used in: |
| 69 |
China, North Korea, Romania, Czech Republic |
| 70 |
(H) PAL used in: |
| 71 |
Belgium |
| 72 |
(I) PAL used in: |
| 73 |
Angola, Botswana, Gambia, Guinea-Bissau, Hong Kong, Ireland, Lesotho, |
| 74 |
Malawi, Nambia, Nigeria, South Africa, Tanzania, United Kingdom, |
| 75 |
Zanzibar |
| 76 |
(B) SECAM used in: |
| 77 |
Djibouti, Greece, Iran, Iraq, Lebanon, Mali, Mauritania, Mauritus, |
| 78 |
Morocco |
| 79 |
(D) SECAM used in: |
| 80 |
Afghanistan, Armenia, Azerbaijan, Belarus, Bulgaria, |
| 81 |
Estonia, Georgia, Hungary, Zazakhstan, Lithuania, Mongolia, Moldova, |
| 82 |
Russia, Slovak Republic, Ukraine, Vietnam |
| 83 |
(G) SECAM used in: |
| 84 |
Greecem Iran, Iraq, Mali, Mauritus, Morocco, Saudi Arabia |
| 85 |
(K) SECAM used in: |
| 86 |
Armenia, Azerbaijan, Bulgaria, Estonia, Georgia, |
| 87 |
Hungary, Kazakhstan, Lithuania, Madagascar, Moldova, Poland, Russia, |
| 88 |
Slovak Republic, Ukraine, Vietnam |
| 89 |
(K1) SECAM used in: |
| 90 |
Benin, Burkina Faso, Burundi, Chad, Cape Verde, Central African |
| 91 |
Republic, Comoros, Congo, Gabon, Madagascar, Niger, Rwanda, Senegal, |
| 92 |
Togo, Zaire |
| 93 |
(L) SECAM used in: |
| 94 |
France |
| 95 |
*/ |
| 96 |
|
| 97 |
/* --------------------------------------------------------------------- */ |
| 98 |
|
| 99 |
struct CHANLIST { |
| 100 |
const char *name; |
| 101 |
int freq; |
| 102 |
}; |
| 103 |
|
| 104 |
struct CHANLISTS { |
| 105 |
const char *name; |
| 106 |
const struct CHANLIST *list; |
| 107 |
int count; |
| 108 |
}; |
| 109 |
|
| 110 |
#define CHAN_COUNT(x) (sizeof(x)/sizeof(struct CHANLIST)) |
| 111 |
|
| 112 |
/* --------------------------------------------------------------------- */ |
| 113 |
|
| 114 |
extern struct CHANLISTS chanlists[]; |
| 115 |
extern struct STRTAB chanlist_names[]; |
| 116 |
|
| 117 |
extern int chantab; |
| 118 |
extern struct CHANLIST *chanlist; |
| 119 |
extern int chancount; |