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