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