tsubtitlessettings.cpp.svn-base

来自「ffshow源码」· SVN-BASE 代码 · 共 827 行 · 第 1/3 页

SVN-BASE
827
字号
/* * Copyright (c) 2003-2006 Milan Cutka * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */#include "stdafx.h"#include "TsubtitlesSettings.h"#include "Ttranslate.h"#include "Tfont.h"#include "Twindow.h"#include "TimgFilterSubtitles.h"#include "Csubtitles.h"#include "CsubtitlesText.h"#include "Cfont.h"#include "Cvobsub.h"#include "TffdshowPageDec.h"const char_t* TsubtitlesSettings::alignments[]={ _l("ffdshow default"), _l("left"), _l("center"), _l("right"), NULL};const char_t* TsubtitlesSettings::vobsubAAs[]={ _l("none (fastest, most ugly)"), _l("approximate"), _l("full (slowest)"), _l("bilinear (fast and not too bad)"), _l("swscaler gaussian"), NULL};const TsubtitlesSettings::Tlang TsubtitlesSettings::langs[]={// "cc","Closed Caption", {_l("default"),             _l("")  ,   NULL  }, {_l("undefined"),              NULL ,_l("und")}, {_l("(Afan) Oromo"),        _l("OM"),   NULL  }, {_l("Abkhazian"),           _l("AB"),_l("abk")}, {_l("Achinese"),               NULL ,_l("ace")}, {_l("Acoli"),                  NULL ,_l("ach")}, {_l("Adangme"),                NULL ,_l("ada")}, {_l("Afar"),                _l("AA"),_l("aar")}, {_l("Afrihili"),               NULL ,_l("afh")}, {_l("Afrikaans"),           _l("AF"),_l("afr")}, {_l("Afro-Asiatic (Other)"),   NULL ,_l("afa")}, {_l("Akan"),                _l("AK"),_l("aka")}, {_l("Akkadian"),               NULL ,_l("akk")}, {_l("Albanian"),            _l("SQ"),_l("alb")}, {_l("Albanian"),            _l("SQ"),_l("sqi")}, {_l("Aleut"),                  NULL ,_l("ale")}, {_l("Algonquian languages"),   NULL ,_l("alg")}, {_l("Altaic (Other)"),         NULL ,_l("tut")}, {_l("Amharic"),             _l("AM"),_l("amh")}, {_l("Apache languages"),       NULL ,_l("apa")}, {_l("Arabic"),              _l("AR"),_l("ara")}, {_l("Aragonese"),           _l("AN"),_l("arg")}, {_l("Aramaic"),                NULL ,_l("arc")}, {_l("Arapaho"),                NULL ,_l("arp")}, {_l("Araucanian"),             NULL ,_l("arn")}, {_l("Arawak"),                 NULL ,_l("arw")}, {_l("Armenian"),            _l("HY"),_l("arm")}, {_l("Armenian"),            _l("HY"),_l("hye")}, {_l("Artificial (Other)"),     NULL ,_l("art")}, {_l("Assamese"),            _l("AS"),_l("asm")}, {_l("Asturian; Bable"),        NULL ,_l("ast")}, {_l("Athapascan languages"),   NULL ,_l("ath")}, {_l("Australian languages"),   NULL ,_l("aus")}, {_l("Austronesian (Other)"),   NULL ,_l("map")}, {_l("Avaric"),              _l("AV"),_l("ava")}, {_l("Avestan"),             _l("AE"),_l("ave")}, {_l("Aymara"),              _l("AY"),_l("aym")}, {_l("Awadhi"),                 NULL ,_l("awa")}, {_l("Azerbaijani"),         _l("AZ"),_l("aze")}, {_l("Balinese"),               NULL ,_l("ban")}, {_l("Baltic (Other)"),         NULL ,_l("bat")}, {_l("Baluchi"),                NULL ,_l("bal")}, {_l("Bambara"),             _l("BM"),_l("bam")}, {_l("Bamileke languages"),     NULL ,_l("bai")}, {_l("Banda"),                  NULL ,_l("bad")}, {_l("Bantu (Other)"),          NULL ,_l("bnt")}, {_l("Basa"),                   NULL ,_l("bas")}, {_l("Bashkir"),             _l("BA"),_l("bak")}, {_l("Basque"),              _l("EU"),_l("baq")}, {_l("Basque"),              _l("EU"),_l("eus")}, {_l("Batak (Indonesia)"),      NULL ,_l("btk")}, {_l("Beja"),                   NULL ,_l("bej")}, {_l("Belarusian"),          _l("BE"),_l("bel")}, {_l("Bemba"),                  NULL ,_l("bem")}, {_l("Bengali; Bangla"),     _l("BN"),_l("ben")}, {_l("Berber (Other)"),         NULL ,_l("ber")}, {_l("Bhojpuri"),               NULL ,_l("bho")}, {_l("Bhutani"),             _l("DZ"),   NULL  }, {_l("Bihari"),              _l("BH"),_l("bih")}, {_l("Bikol"),                  NULL ,_l("bik")}, {_l("Bini"),                   NULL ,_l("bin")}, {_l("Bislama"),             _l("BI"),_l("bis")}, {_l("Bosnian"),             _l("BS"),_l("bos")}, {_l("Braj"),                   NULL ,_l("bra")}, {_l("Breton"),              _l("BR"),_l("bre")}, {_l("Buginese"),               NULL ,_l("bug")}, {_l("Bulgarian"),           _l("BG"),_l("bul")}, {_l("Buriat"),                 NULL ,_l("bua")}, {_l("Burmese"),             _l("MY"),_l("bur")}, {_l("Burmese"),             _l("MY"),_l("mya")}, {_l("Caddo"),                  NULL ,_l("cad")}, {_l("Cambodian"),           _l("KM"),   NULL  }, {_l("Carib"),                  NULL ,_l("car")}, {_l("Catalan"),             _l("CA"),_l("cat")}, {_l("Chinese"),             _l("ZH"),_l("zho")}, {_l("Chinese"),             _l("ZH"),_l("chi")}, {_l("Corsican"),            _l("CO"),_l("cos")}, {_l("Czech"),               _l("CS"),_l("cze")}, {_l("Czech"),               _l("CZ"),_l("ces")}, {_l("Dansk"),               _l("DA"),_l("dan")}, {_l("Deutsch"),             _l("DE"),_l("ger")}, {_l("Deutsch"),             _l("DE"),_l("deu")}, {_l("English"),             _l("EN"),_l("eng")}, {_l("Espanol"),             _l("ES"),_l("spa")}, {_l("Esperanto"),           _l("EO"),_l("epo")}, {_l("Estonian"),            _l("ET"),_l("est")}, {_l("Faroese"),             _l("FO"),_l("fao")}, {_l("Fijian"),              _l("FJ"),_l("fij")}, {_l("Finnish"),             _l("FI"),_l("fin")}, {_l("French"),              _l("FR"),_l("fra")}, {_l("French"),              _l("FR"),_l("fre")}, {_l("Frisian"),             _l("FY"),_l("fry")}, {_l("Galician"),            _l("GL"),_l("glg")}, {_l("Georgian"),            _l("KA"),_l("geo")}, {_l("Georgian"),            _l("KA"),_l("kat")}, {_l("Greek"),               _l("EL"),_l("el") }, {_l("Greek"),               _l("EL"),_l("ell")}, {_l("Greenlandic"),         _l("KL"),_l("kal")}, {_l("Guarani"),             _l("GN"),_l("grn")}, {_l("Gujarati"),            _l("GU"),_l("guj")}, {_l("Hausa"),               _l("HA"),_l("hau")}, {_l("Hebrew"),              _l("HE"),_l("heb")}, {_l("Hebrew"),              _l("HE"),_l("her")}, {_l("Hebrew"),              _l("HZ"),_l("heb")}, {_l("Hebrew"),              _l("HZ"),_l("her")}, {_l("Hebrew"),              _l("IW"),_l("heb")}, {_l("Hebrew"),              _l("IW"),_l("her")}, {_l("Hindi"),               _l("HI"),_l("hin")}, {_l("Hrvatski"),            _l("HR"),_l("src")}, {_l("Hrvatski"),            _l("HR"),_l("hrv")}, {_l("Hungarian"),           _l("HU"),_l("hun")}, {_l("Indonesian"),          _l("ID"),_l("ind")}, {_l("Indonesian"),          _l("IN"),_l("ind")}, {_l("Interlingua"),         _l("IA"),_l("ina")}, {_l("Interlingue"),         _l("IE"),_l("ile")}, {_l("Inuktitut"),           _l("IU"),_l("iku")}, {_l("Inupiak"),             _l("IK"),_l("ipk")}, {_l("Irish"),               _l("GA"),_l("gle")}, {_l("Icelandic"),           _l("IS"),_l("ice")}, {_l("Icelandic"),           _l("IS"),_l("isl")}, {_l("Italian"),             _l("IT"),_l("ita")}, {_l("Japanese"),            _l("JA"),_l("jpn")}, {_l("Javanese"),            _l("JW"),_l("jav")}, {_l("Kannada"),             _l("KN"),_l("kan")}, {_l("Kashmiri"),            _l("KS"),_l("kas")}, {_l("Kazakh"),              _l("KK"),_l("kaz")}, {_l("Kinyarwanda"),         _l("RW"),_l("kin")}, {_l("Kirghiz"),             _l("KY"),_l("kir")}, {_l("Kirundi"),             _l("RN"),_l("run")}, {_l("Korean"),              _l("KO"),_l("kor")}, {_l("Kurdish"),             _l("KU"),_l("kur")}, {_l("Laothian"),            _l("LO"),_l("lao")}, {_l("Latin"),               _l("LA"),_l("lat")}, {_l("Latvian, Lettish"),    _l("LV"),_l("lav")}, {_l("Lingala"),             _l("LN"),_l("lin")}, {_l("Lithuanian"),          _l("LT"),_l("lit")}, {_l("Macedonian"),          _l("MK"),_l("mac")}, {_l("Macedonian"),          _l("MK"),_l("mkv")}, {_l("Malagasy"),            _l("MG"),_l("mlg")}, {_l("Malay"),               _l("MS"),_l("may")}, {_l("Malay"),               _l("MS"),_l("msa")}, {_l("Malayalam"),           _l("ML"),_l("mal")}, {_l("Maltese"),             _l("MT"),_l("mlt")}, {_l("Maori"),               _l("MI"),_l("mao")}, {_l("Maori"),               _l("MI"),_l("mri")}, {_l("Marathi"),             _l("MR"),_l("mar")}, {_l("Moldavian"),           _l("MO"),_l("mol")}, {_l("Mongolian"),           _l("MN"),_l("mon")}, {_l("Nauru"),               _l("NA"),_l("nau")}, {_l("Nederlands"),          _l("NL"),_l("nld")}, {_l("Nederlands"),          _l("NL"),_l("dut")}, {_l("Nepali"),              _l("NE"),_l("nep")}, {_l("Norsk"),               _l("NO"),_l("nor")}, {_l("Norwegian"),           _l("NB"),_l("nob")}, {_l("Occitan"),             _l("OC"),_l("oci")}, {_l("Oriya"),               _l("OR"),_l("ori")}, {_l("Pashto, Pushto"),      _l("PS"),_l("pus")}, {_l("Persian"),             _l("FA"),_l("per")}, {_l("Persian"),             _l("FA"),_l("fas")}, {_l("Polish"),              _l("PL"),_l("pol")}, {_l("Portugues"),           _l("PT"),_l("por")}, {_l("Punjabi"),             _l("PA"),_l("pan")}, {_l("Quechua"),             _l("QU"),_l("que")}, {_l("Rhaeto-Romance"),      _l("RM"),_l("roh")}, {_l("Romanian"),            _l("RO"),_l("ron")}, {_l("Romanian"),            _l("RO"),_l("run")}, {_l("Russian"),             _l("RU"),_l("rus")}, {_l("Samoan"),              _l("SM"),_l("smo")}, {_l("Sangho"),              _l("SG"),_l("sag")}, {_l("Sanskrit"),            _l("SA"),_l("san")}, {_l("Scots Gaelic"),        _l("GD"),_l("gla")}, {_l("Serbian"),             _l("SR"),_l("scc")}, {_l("Serbian"),             _l("SR"),_l("srp")}, {_l("Serbo-Croatian"),      _l("SH"),   NULL  }, {_l("Sesotho"),             _l("ST"),_l("sot")}, {_l("Setswana"),            _l("TN"),_l("tsn")}, {_l("Shona"),               _l("SN"),_l("sna")}, {_l("Sindhi"),              _l("SD"),_l("snd")}, {_l("Sinhalese"),           _l("SI"),_l("sin")}, {_l("Siswati"),             _l("SS"),_l("ssw")}, {_l("Slovak"),              _l("SK"),_l("slk")}, {_l("Slovak"),              _l("SK"),_l("slo")}, {_l("Slovenian"),           _l("SL"),_l("slv")}, {_l("Somali"),              _l("SO"),_l("som")}, {_l("Sundanese"),           _l("SU"),_l("sun")}, {_l("Swedish"),             _l("SV"),_l("swe")}, {_l("Swahili"),             _l("SW"),_l("swa")}, {_l("Tagalog"),             _l("TL"),_l("tgl")}, {_l("Tajik"),               _l("TG"),_l("tgk")}, {_l("Tamil"),               _l("TA"),_l("tam")}, {_l("Tatar"),               _l("TT"),_l("tat")}, {_l("Telugu"),              _l("TE"),_l("tel")}, {_l("Thai"),                _l("TH"),_l("tha")}, {_l("Tibetan"),             _l("BO"),_l("tib")}, {_l("Tibetan"),             _l("BO"),_l("bod")}, {_l("Tigrinya"),            _l("TI"),_l("tir")}, {_l("Tonga"),               _l("TO"),_l("ton")}, {_l("Tsonga"),              _l("TS"),_l("tso")}, {_l("Turkish"),             _l("TR"),_l("tur")}, {_l("Turkmen"),             _l("TK"),_l("tuk")}, {_l("Twi"),                 _l("TW"),_l("twi")}, {_l("Uighur"),              _l("UG"),_l("uig")}, {_l("Ukrainian"),           _l("UK"),_l("ukr")}, {_l("Urdu"),                _l("UR"),_l("urd")}, {_l("Uzbek"),               _l("UZ"),_l("uzb")}, {_l("Vietnamese"),          _l("VI"),_l("vie")}, {_l("Volapuk"),             _l("VO"),_l("vol")}, {_l("Welsh"),               _l("CY"),_l("wel")}, {_l("Welsh"),               _l("CY"),_l("cym")}, {_l("Wolof"),               _l("WO"),_l("wol")}, {_l("Xhosa"),               _l("XH"),_l("xho")}, {_l("Yiddish"),             _l("JI"),_l("yid")}, {_l("Yiddish"),             _l("YI"),_l("yid")}, {_l("Yoruba"),              _l("YO"),_l("yor")}, {_l("Zhuang"),              _l("ZA"),_l("zha")}, {_l("Zulu"),                _l("ZU"),_l("zul")}, {   NULL ,                     NULL ,   NULL  }};/*   {"Caucasian (Other)", _l("cau", NULL},   {"Cebuano", _l("ceb", NULL},   {"Celtic (Other)", _l("cel", NULL},   {"Central American Indian (Other)", _l("cai", NULL},   {"Chagatai", _l("chg", NULL},   {"Chamic languages", _l("cmc", NULL},

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?