国家的频点设置/及修改

来源:互联网 发布:淘宝网设置子账号 编辑:程序博客网 时间:2024/06/05 14:28
 

一、我可以自己更改每个国家的频点设置

 dvb_area_info.c在这个文件中有:

 

#ifdef DVBT_AREA_TABLE_SUPPORT_Germany

static const RegionTpSects_t stTpRegionGermany[] = { /*Freq | bandwidth | channel index | sect tp num | uhf/vhf */

  {177500, BANDWIDTH_7_MHZ, 5, 8, VHF},                     /* 177.5MHz ~ 226.5MHz */

  {474000, BANDWIDTH_8_MHZ, 21, 49, UHF},

};

#endif

 

#ifdef  DVBT_AREA_TABLE_SUPPORT_England

static const RegionTpSects_t stTpRegionEngland[] = {   /*Freq | bandwidth | channel index | sect tp num | uhf/vhf */

  {474000, BANDWIDTH_8_MHZ, 21, 49, UHF},

};

#endif

 

#ifdef  DVBT_AREA_TABLE_SUPPORT_Italy

static const RegionTpSects_t stTpRegionItaly[] = {       /*Freq | bandwidth | channel index | sect tp num | uhf/vhf */

  {56000, BANDWIDTH_7_MHZ, 1, 1, VHF},

  {64500, BANDWIDTH_7_MHZ, 2, 1, VHF},

  {84500, BANDWIDTH_7_MHZ, 3, 1, VHF},

  {177500, BANDWIDTH_7_MHZ, 4, 1, VHF},

  {184500, BANDWIDTH_7_MHZ, 5, 1, VHF},

  {186000, BANDWIDTH_7_MHZ, 6, 1, VHF},

  {191500, BANDWIDTH_7_MHZ, 7, 1, VHF},   

  {194500, BANDWIDTH_7_MHZ, 8, 1, VHF},

  {198500, BANDWIDTH_7_MHZ, 9, 1, VHF},

  {203500, BANDWIDTH_7_MHZ, 10, 1, VHF},

  {205500, BANDWIDTH_7_MHZ, 11, 1, VHF},  

  {212500, BANDWIDTH_7_MHZ, 12, 3, VHF},

  {474000, BANDWIDTH_8_MHZ, 21, 49, UHF},

};

#endif

 

看看这里能否修改到错误的频道。

 

二、我可以自己可以增加国家设置

 dvb_area_info.c在这个文件中有以下几个国家:

 

const DvbtAreaTable_t stDvbtAreaTable[MAX_AREA] = {

#ifdef DVBT_AREA_TABLE_SUPPORT_Germany

{AREA_GERMANY, stTpRegionGermany, szTpStrGermany,  2, 57, "DEU", 276, NID_BASE_COLOUR_A, LCN_DEU, LCNRULE_PANEURO, GMT_DEU}, //Germany

#endif

 

#ifdef  DVBT_AREA_TABLE_SUPPORT_England

{AREA_ENGLAND, stTpRegionEngland, szTpStrEngland, 1, 49, "GBR", 826, NID_BASE_COLOUR_A, LCN_GBR, LCNRULE_GBR, GMT_GBR},  //England

#endif

 

#ifdef  DVBT_AREA_TABLE_SUPPORT_Italy

{AREA_ITALY, stTpRegionItaly, szTpStrItaly, 13, 63, "ITA", 380, NID_BASE_COLOUR_A, LCN_ITA, LCNRULE_ITA, GMT_ITA},     //Italy

#endif

 

#ifdef  DVBT_AREA_TABLE_SUPPORT_France

{AREA_FRANCE, stTpRegionFrance, szTpStrFrance, 5, 58, "FRA", 250, NID_BASE_COLOUR_D, LCN_FRA, LCNRULE_PANEURO, GMT_FRA},     //France

#endif

 

#ifdef  DVBT_AREA_TABLE_SUPPORT_Spain

{AREA_SPAIN, stTpRegionSpain, szTpStrSpain, 1, 49, "ESP", 724, NID_BASE_COLOUR_B, LCN_ESP, LCNRULE_PANEURO, GMT_ESP},        //Spain

#endif

 

#ifdef  DVBT_AREA_TABLE_SUPPORT_Netherlands

{AREA_NETHERLANDS, stTpRegionNetherlands, szTpStrNetherlands, 2, 57, "NLD", 528, NID_BASE_COLOUR_B,  LCN_NLD, LCNRULE_NLD, GMT_NLD},   //Netherlands (Holland)

#endif

 

#ifdef  DVBT_AREA_TABLE_SUPPORT_Taiwan

{AREA_TAIWAN, stTpRegionTaiwan, szTpStrTaiwan, 1, 65, "TWN", 158, NID_BASE_COLOUR_D, LCN_TWN, LCNRULE_PANEURO, GMT_TWN},

#endif

 

#ifdef  DVBT_AREA_TABLE_SUPPORT_China

{AREA_CHINA, stTpRegionChina, szTpStrChina, 5, 68, "CHN", 156, NID_UNALLOCATED, LCN_CHN, LCNRULE_PANEURO, GMT_CHN},          //China   

#endif

 

#ifdef  DVBT_AREA_TABLE_SUPPORT_Norway

{AREA_NORWAY, stTpRegionNorway, szTpStrNorway, 2, 57, "NOR", 578, NID_BASE_COLOUR_E, LCN_NOR, LCNRULE_NORDIG, GMT_NOR},      //Norway

#endif

 

#ifdef  DVBT_AREA_TABLE_SUPPORT_Sweden

{AREA_SWEDEN, stTpRegionSwead, szTpStrSweden, 2, 57, "SWE", 752, NID_BASE_COLOUR_B, LCN_SWE, LCNRULE_NORDIG, GMT_SWE},      //Sweden

#endif

 

#ifdef  DVBT_AREA_TABLE_SUPPORT_Finland

{AREA_FINLAND, stTpRegionFinland, szTpStrFinland, 2, 57, "FIN", 246, NID_BASE_COLOUR_D, LCN_FIN, LCNRULE_NORDIG, GMT_FIN},  //Finland

#endif

 

#ifdef  DVBT_AREA_TABLE_SUPPORT_Greece

{AREA_GREECE, stTpRegionGreece, szTpStrGreece, 2, 57, "GRC", 300, NID_UNALLOCATED, LCN_GRC, LCNRULE_PANEURO, GMT_GRC},     //Greece

#endif

 

#ifdef DVBT_AREA_TABLE_SUPPORT_Australia

{AREA_AUSTRALIA, stTpRegionAustralia, szTpStrAustralia, 6, 63, "AUS", 36, NID_BASE_COLOUR_C, LCN_AUS, LCNRULE_PANEURO, GMT_AUS}, //Australia

#endif

 

#ifdef DVBT_AREA_TABLE_SUPPORT_Russia

{AREA_RUSSIA, stTpRegionRussia, szTpStrRussia, 5, 61, "RUS", 643, NID_UNALLOCATED, LCN_RUS, LCNRULE_PANEURO, GMT_RUS},     //Russia

#endif

 

#ifdef DVBT_AREA_TABLE_SUPPORT_Ireland

{AREA_IRELAND, stTpRegionIreland, szTpStrIreland, 3, 57, "IRL", 372, NID_BASE_COLOUR_C, LCN_IRL, LCNRULE_PANEURO, GMT_IRL}, //Ireland

#endif

 

#ifdef  DVBT_AREA_TABLE_SUPPORT_Denmark

{AREA_DENMARK, stTpRegionDenmark, szTpStrDenmark, 2, 57, "DNK", 208, NID_BASE_COLOUR_C, LCN_DNK, LCNRULE_NORDIG, GMT_DNK},  //Denmark

#endif

 

#ifdef  DVBT_AREA_TABLE_SUPPORT_Portugal

{AREA_PORTUGAL, stTpRegionPortugal, szTpStrPortugal, 1, 49, "PRT", 620, NID_UNALLOCATED, LCN_POT, LCNRULE_PANEURO, GMT_POT}, //Portugal

#endif

 

#ifdef DVBT_AREA_TABLE_SUPPORT_Turkey

{AREA_TURKEY, stTpRegionTurkey, szTpStrTurkey, 2, 57, "TUR", 792, NID_UNALLOCATED, LCN_TUR, LCNRULE_PANEURO, GMT_TUR},     //Turkey

#endif

 

#ifdef DVBT_AREA_TABLE_SUPPORT_Poland

{AREA_POLAND, stTpRegionPoland, szTpStrPoland, 2, 57, "POL", 616, NID_UNALLOCATED, LCN_POL, LCNRULE_PANEURO, GMT_POL},     //Poland

#endif

 

 

#ifdef DVBT_AREA_TABLE_SUPPORT_Hungary

{AREA_HUNGARY, stTpRegionHungary, szTpStrHungary, 2, 56, "HUN", 348, NID_UNALLOCATED, LCN_HUN, LCNRULE_PANEURO, GMT_HUN}, //Hungary

#endif

 

#ifdef DVBT_AREA_TABLE_SUPPORT_Colombia 

{AREA_COLOMBIA, stTpRegionColombia, szTpStrColombia, 4, 50, "COM", 170, NID_UNALLOCATED, LCN_COM, LCNRULE_PANEURO, GMT_COM}, //Colombia

#endif

 

 

#ifdef DVBT_AREA_TABLE_SUPPORT_FACTORY_SCAN

{AREA_FACTORY_SCAN, stTpRegionFactory, szTpStrFactory, 11, 11, "F_S", 276, NID_UNALLOCATED, LCN_DEU, LCNRULE_PANEURO, GMT_DEU},

#endif

};

 

 

const char *szDvbtAreaName[MAX_AREA] =

{

#ifdef DVBT_AREA_TABLE_SUPPORT_Germany

"Germany", //Germany

#endif

#ifdef  DVBT_AREA_TABLE_SUPPORT_England

"England",        //England

#endif

#ifdef  DVBT_AREA_TABLE_SUPPORT_Italy

"Italy",

#endif

#ifdef  DVBT_AREA_TABLE_SUPPORT_France

"France",             //France

#endif

#ifdef  DVBT_AREA_TABLE_SUPPORT_Spain

"Spain",                //Spain

#endif

#ifdef  DVBT_AREA_TABLE_SUPPORT_Netherlands

"Netherlands",           //Netherlands (Holland)

#endif

#ifdef  DVBT_AREA_TABLE_SUPPORT_Taiwan

"Taiwan",          //Taiwan

#endif

#ifdef  DVBT_AREA_TABLE_SUPPORT_China

"China",               //China  

#endif

#ifdef  DVBT_AREA_TABLE_SUPPORT_Norway

"Norway",        //Norway, TBD

#endif

#ifdef  DVBT_AREA_TABLE_SUPPORT_Sweden

"Sweden",        //Sweden, TBD

#endif

#ifdef  DVBT_AREA_TABLE_SUPPORT_Finland

"Finland",        //Finland

#endif

#ifdef  DVBT_AREA_TABLE_SUPPORT_Greece

"Greece",        //Greece

#endif

#ifdef DVBT_AREA_TABLE_SUPPORT_Australia

"Australia",   //Australia

#endif

#ifdef DVBT_AREA_TABLE_SUPPORT_Russia

"Russia",

#endif

#ifdef DVBT_AREA_TABLE_SUPPORT_Ireland

"Ireland",

#endif

#ifdef DVBT_AREA_TABLE_SUPPORT_Denmark

"Denmark",

#endif

#ifdef DVBT_AREA_TABLE_SUPPORT_Portugal

"Portugal",

#endif

#ifdef DVBT_AREA_TABLE_SUPPORT_Turkey

"Turkey",

#endif

#ifdef DVBT_AREA_TABLE_SUPPORT_Poland

"Poland",

#endif

 

 

#ifdef DVBT_AREA_TABLE_SUPPORT_Hungary

"Hungary",

#endif

#ifdef DVBT_AREA_TABLE_SUPPORT_Colombia 

"Colombia",

#endif

 

#ifdef DVBT_AREA_TABLE_SUPPORT_FACTORY_SCAN

"DVB Test",

#endif    

};

原创粉丝点击