# encoding: ascii-8bit

# Possible values for the EBU-STL header.

module EbuStl
    module HeaderOption
        FILLER = "\x20"
        module CPN
            UNITED_STATES = "\x34\x33\x37"
            MULTILINGUAL  = "\x38\x35\x30"
            PORTUGAL      = "\x38\x36\x30"
            CANADA_FRENCH = "\x38\x36\x33"
            NORWAY        = "\x38\x36\x35"
        end
        module DFC
            STL_25 = 'STL25.01'
            STL_30 = 'STL30.01'
        end
        module DSC
           BLANK            = "\x20"
           OPEN_SUBTITLING  = "\x30"
           TELETEXT_LEVEL_1 = "\x31"
           TELETEXT_LEVEL_2 = "\x32"
        end
        module CCT
           LATIN   = "\x30\x30"
           CYRILIC = "\x30\x31"
           ARABIC  = "\x30\x32"
           GREEK   = "\x30\x33"
           HEBREW  = "\x30\x34"
        end
        module LC
            UNKNOWN       = '00'
            ALBANIAN      = '01'
            BRETON        = '02'
            CATALAN       = '03'
            CROATIAN      = '04'
            WELSH         = '05'
            CZECH         = '06'
            DANISH        = '07'
            GERMAN        = '08'
            ENGLISH       = '09'
            SPANISH       = '0A'
            ESPERANTO     = '0B'
            ESTONIAN      = '0C'
            BASQUE        = '0D'
            FAROESE       = '0E'
            FRISIAN       = '10'
            IRISH         = '11'
            GAELIC        = '12'
            GALICIAN      = '13'
            ICELANDIC     = '14'
            ITALIAN       = '15'
            LAPPISH       = '16'
            LATIN         = '17'
            LATVIAN       = '18'
            LUXEMBOURGIAN = '19'
            LITHUANIAN    = '1A'
            HUNGARIAN     = '1B'
            MALTESE       = '1C'
            DUTCH         = '1D'
            NORWEGIAN     = '1E'
            OCCITAN       = '1F'
            POLISH        = '20'
            PORTUGESE     = '21'
            ROMANIAN      = '22'
            ROMANSH       = '23'
            SERBIAN       = '24'
            SLOVAK        = '25'
            SLOVENIAN     = '26'
            FINNISH       = '27'
            SWEDISH       = '28'
            TURKISH       = '29'
            FLEMISH       = '2A'
            WALLON        = '2B'
            ZULU          = '45'
            VIETNAMESE    = '46'
            UZBEK         = '47'
            URDU          = '48'
            UKRAINIAN     = '49'
            THAI          = '4A'
            TELUGU        = '4B'
            TATAR         = '4C'
            TAMIL         = '4D'
            TADZHIK       = '4E'
            SWAHILI       = '4F'
            SRANAN_TONGO  = '50'
            SOMALI        = '51'
            SINHALESE     = '52'
            SHONA         = '53'
            SERBO_CROAT   = '54'
            RUTHENIAN     = '55'
            RUSSIAN       = '56'
            QUECHUA       = '57'
            PUSHTU        = '58'
            PUNJABI       = '59'
            PERSIAN       = '5A'
            PAPAMIENTO    = '5B'
            ORIYA         = '5C'
            NEPALI        = '5D'
            NDEBELE       = '5E'
            MARATHI       = '5F'
            MOLDAVIAN     = '60'
            MALAYSIAN     = '61'
            MALAGASAY     = '62'
            MACEDONIAN    = '63'
            LAOTIAN       = '64'
            KOREAN        = '65'
            KHMER         = '66'
            KAZAKH        = '67'
            KANNADA       = '68'
            JAPANESE      = '69'
            INDONESIAN    = '6A'
            HINDI         = '6B'
            HEBREW        = '6C'
            HAUSA         = '6D'
            GURANI        = '6E'
            GUJURATI      = '6F'
            GREEK         = '70'
            GEORGIAN      = '71'
            FULANI        = '72'
            DARI          = '73'
            CHURASH       = '74'
            CHINESE       = '75'
            BURMESE       = '76'
            BULGARIAN     = '77'
            BENGALI       = '78'
            BIELORUSSIAN  = '79'
            BAMBORA       = '7A'
            AZERBAIJANI   = '7B'
            ASSAMESE      = '7C'
            ARMENIAN      = '7D'
            ARABIC        = '7E'
            AMHARIC       = '7F'
        end
        module TNB
            # we are not limited to floppy discs anymore...
            # youtube ignore the entire header other than the magic bytes,
            # but it will not accept anything larger than 1440000 bytes
            # according to the specs
            MAX = '11242'
        end
        module TCS
            NOT_FOR_USE = "\x30"
            FOR_USE     = "\x31"
        end
        module CO
            ARUBA                                    = 'ABW'
            AFGHANISTAN                              = 'AFG'
            ANGOLA                                   = 'AGO'
            ANGUILLA                                 = 'AIA'
            ALBANIA                                  = 'ALB'
            ANDORRA                                  = 'AND'
            NETHERLANDS_ANTILLES                     = 'ANT'
            UNITED_ARAB_EMIRATES                     = 'ARE'
            ARGENTINA                                = 'ARG'
            AMERICAN_SAMOA                           = 'ASM'
            ANTARCTICA                               = 'ATA'
            FRENCH_SOUTHERN_TERRITORIES              = 'ATF'
            ANTIGUA_AND_BARBUDA                      = 'ATG'
            DRONNING_MAUD_LAND                       = 'ATN'
            AUSTRALIA                                = 'AUS'
            AUSTRIA                                  = 'AUT'
            BURUNDI                                  = 'BDI'
            BELGIUM                                  = 'BEL'
            BENIN                                    = 'BEN'
            BURKINA_FASO                             = 'BFA'
            BANGLADESH                               = 'BGD'
            BULGARIA                                 = 'BGR'
            BAHRAIN                                  = 'BHR'
            BAHAMAS                                  = 'BHS'
            BELIZE                                   = 'BLZ'
            BERMUDA                                  = 'BMU'
            BOLIVIA                                  = 'BOL'
            BRAZIL                                   = 'BRA'
            BARBADOS                                 = 'BRB'
            BRUNEI_DARUSSALAM                        = 'BRN'
            BHUTAN                                   = 'BTN'
            BURMA                                    = 'BUR'
            BOUVET_ISLAND                            = 'BVT'
            BOTSWANA                                 = 'BWA'
            BYELORUSSIAN_SSR                         = 'BYS'
            CENTRAL_AFRICAN_REPUBLIC                 = 'CAF'
            CANADA                                   = 'CAN'
            COCOS_ISLANDS                            = 'CCK'
            SWITZERLAND                              = 'CHE'
            CHILE                                    = 'CHL'
            CHINA                                    = 'CHN'
            COTE_DIVOIRE                             = 'CIV'
            CAMEROON                                 = 'CMR'
            CONGO                                    = 'COG'
            COOK_ISLANDS                             = 'COK'
            COLOMBIA                                 = 'COL'
            COMOROS                                  = 'COM'
            CAPE_VERDE                               = 'CPV'
            COSTA_RICA                               = 'CRI'
            CZECHOSLOVAKIA                           = 'CSK'
            CANTON_AND_ENDERBURY_ISLANDS             = 'CTE'
            CUBA                                     = 'CUB'
            CHRISTMAS_ISLAND                         = 'CXR'
            CAYMAN_ISLANDS                           = 'CYM'
            CYPRUS                                   = 'CYP'
            GERMAN_DEMOCRATIC_REPUBLIC               = 'DDR'
            FEDERAL_REPUBLIC_GERMANY                 = 'DEU'
            KAMPUCHEA                                = 'DHM'
            DJIBOUTI                                 = 'DJI'
            DOMINICA                                 = 'DMA'
            DENMARK                                  = 'DNK'
            DOMINICAN_REPUBLIC                       = 'DOM'
            ALGERIA                                  = 'DZA'
            ECUADOR                                  = 'ECU'
            EGYPT                                    = 'EGY'
            WESTERN_SAHARA                           = 'ESH'
            SPAIN                                    = 'ESP'
            ETHIOPIA                                 = 'ETH'
            FINLAND                                  = 'FIN'
            FIJI                                     = 'FJI'
            FALKLAND_ISLANDS                         = 'FLK'
            FRANCE                                   = 'FRA'
            FAROE_ISLANDS                            = 'FRO'
            MICRONESIA                               = 'FSM'
            GABON                                    = 'GAB'
            UNITED_KINGDOM                           = 'GBR'
            GHANA                                    = 'GHA'
            GIBRALTAR                                = 'GIB'
            GUINEA                                   = 'GIN'
            GUADELOUPE                               = 'GLP'
            GAMBIA                                   = 'GMB'
            GUINEA_BISSAU                            = 'GNB'
            EQUATORIAL_GUINEA                        = 'GNQ'
            GREECE                                   = 'GRC'
            GRENADA                                  = 'GRD'
            GREENLAND                                = 'GRL'
            GUATEMALA                                = 'GTM'
            FRENCH_GUINEA                            = 'GUF'
            GUAM                                     = 'GUM'
            GUYANA                                   = 'GUY'
            HONG_KONG                                = 'HKG'
            HEARD_AND_MC_DONALD_ISLANDS              = 'HMD'
            HONDURAS                                 = 'HND'
            HAITI                                    = 'HTI'
            HUNGARY                                  = 'HUN'
            UPPER_VOLTA                              = 'HVO'
            INDONESIA                                = 'IDN'
            INDIA                                    = 'IDN'
            BRITISH_INDIAN_OCEAN_TERRITORY           = 'IOT'
            IRELAND                                  = 'IRL'
            IRAN                                     = 'IRN'
            IRAQ                                     = 'IRQ'
            ICELAND                                  = 'ISL'
            ISRAEL                                   = 'ISR'
            ITALY                                    = 'ITA'
            JAMAICA                                  = 'JAM'
            JORDAN                                   = 'JOR'
            JAPAN                                    = 'JPN'
            JOHNSTON_ATOLL                           = 'JTN'
            KENYA                                    = 'KEN'
            KIRIBATI                                 = 'KIR'
            SAINT_KITTS_AND_NEVIS                    = 'KNA'
            REPUBLIC_OF_KOREA                        = 'KOR'
            KUWAIT                                   = 'KWT'
            DEMOCRATIC_REPUBLIC_OF_LAO               = 'LAO'
            LEBANON                                  = 'LBN'
            LIBERIA                                  = 'LBR'
            LIBYAN_ARAB_JAMAHIRIYA                   = 'LBY'
            SAINT_LUCIA                              = 'LCA'
            LIECHTENSTEIN                            = 'LIE'
            SRI_LANKA                                = 'LKA'
            LESOTHO                                  = 'LSO'
            LUXEMBOURG                               = 'LUX'
            MACAU                                    = 'MAC'
            MOROCCO                                  = 'MAR'
            MONACO                                   = 'MCO'
            MADAGASCAR                               = 'MDG'
            MALDIVES                                 = 'MDV'
            MEXICO                                   = 'MEX'
            MARSHALL_ISLANDS                         = 'MHL'
            MIDWAY_ISLANDS_                          = 'MID'
            MALI                                     = 'MLI'
            MALTA                                    = 'MLT'
            MONGOLIA                                 = 'MNG'
            NORTHERN_MARIANA_ISLANDS                 = 'MNP'
            MOZAMBIQUE                               = 'MOZ'
            MAURITANIA                               = 'MRT'
            MONTSERRAT                               = 'MSR'
            MARTINIQUE                               = 'MTQ'
            MAURITIUS                                = 'MUS'
            MALAWI                                   = 'MWI'
            MALAYSIA                                 = 'MYS'
            NAMIBIA                                  = 'NAM'
            NEW_CALEDONIA                            = 'NCL'
            NIGER                                    = 'NER'
            NORFOLK_ISLAND                           = 'NFK'
            NIGERIA                                  = 'NGA'
            NICARAGUA                                = 'NIC'
            NIUE                                     = 'NIU'
            NETHERLANDS                              = 'NLD'
            NORWAY                                   = 'NOR'
            NEPAL                                    = 'NPL'
            NAURU                                    = 'NRU'
            NEUTRAL_ZONE                             = 'NTZ'
            NEW_ZEALAND                              = 'NZL'
            OMAN                                     = 'OMN'
            ESCAPE_CODE                              = 'OOO'
            PAKISTAN                                 = 'PAK'
            PANAMA                                   = 'PAN'
            MICRONESIA_ALT                           = 'PCI'
            PITCAIRN                                 = 'PCN'
            PERU                                     = 'PER'
            PHILIPPINES                              = 'PHL'
            PALAU                                    = 'PLW'
            PAPUA_NEW_GUINEA                         = 'PNG'
            POLAND                                   = 'POL'
            PUERTO_RICO                              = 'PRI'
            PEOPLES_REPUBLIC_OF_KOREA                = 'PRK'
            PORTUGAL                                 = 'PRT'
            PARAGUAY                                 = 'PRY'
            US_MISC_PACIFIC_ISLANDS                  = 'PUS'
            FRENCH_POLYNESIA                         = 'PYF'
            QATAR                                    = 'QAT'
            REUNION                                  = 'REU'
            ROMANIA                                  = 'ROM'
            RWANDA                                   = 'RWA'
            SAUDI_ARABIA                             = 'SAU'
            SUDAN                                    = 'SDN'
            SENEGAL                                  = 'SEN'
            SINGAPORE                                = 'SGP'
            ST_HELENA                                = 'SHN'
            SVALBARD_AND_JAN_MAYEN_ISLANDS           = 'SJM'
            SOLOMON_ISLANDS                          = 'SLB'
            SIERRA_LEONE                             = 'SLE'
            EL_SALVADOR                              = 'SLV'
            SAN_MARINO                               = 'SMR'
            SOMALIA                                  = 'SOM'
            ST_PIERRE_AND_MIQUELON                   = 'SPM'
            SAO_TOME_AND_PRINCIPE                    = 'STP'
            USSR                                     = 'SUN'
            SURINAM                                  = 'SUR'
            SWEDEN                                   = 'SWE'
            SWAZILAND                                = 'SWZ'
            SEYCHELLES                               = 'SYC'
            SYRIAN_ARAB_REPUBLIC                     = 'SYR'
            TURKS_AND_CAICOS_ISLANDS                 = 'TCA'
            CHAD                                     = 'TCD'
            TOGO                                     = 'TGO'
            THAILAND                                 = 'THA'
            TOKELAU                                  = 'TKL'
            EAST_TIMOR                               = 'TMP'
            TONGA                                    = 'TON'
            TRINIDAD_AND_TOBAGO                      = 'TTO'
            TUNISIA                                  = 'TUN'
            TURKEY                                   = 'TUR'
            TUVALU                                   = 'TUV'
            TAIWAN                                   = 'TWN'
            TANZANIA                                 = 'TZA'
            UGANDA                                   = 'UGA'
            UKRAINIAN_SSR                            = 'UKR'
            US_MINOR_OUTLYING_ISLANDSS               = 'UMI'
            URUGUAY                                  = 'URY'
            UNITED_STATES                            = 'USA'
            HOLY_VATICAN_CITY                        = 'VAT'
            SAINT_VINCENT_AND_GRENADINES             = 'VCT'
            VENEZUELA                                = 'VEN'
            VIRGIN_ISLANDS_BRITISH                   = 'VGB'
            VIRGIN_ISLANDS_US                        = 'VIR'
            VIET_NAM                                 = 'VNM'
            VANUATU                                  = 'VUT'
            WAKE_ISLAND                              = 'WAK'
            WALLIS_AND_FUTUNA_ISLANDS                = 'WLF'
            SAMOA                                    = 'WSM'
            YEMEN                                    = 'YEM'
            DEMOCRATIC_YEMEN                         = 'YMD'
            YUGOSLAVIA                               = 'YUG'
            SOUTH_AFRICA                             = 'ZAF'
            ZAIRE                                    = 'ZAR'
            ZAMBIA                                   = 'ZMB'
            ZIMBABWE                                 = 'ZWE'
        end
    end
end
