📄 logo.c
字号:
#include <comsub.h>
#include <platform.h>
#include <resi.h>
const BYTE Current_logotype = 2;
#if ( _LOGO_MODE==_LOGO_Enable )
//#include "../../rom/black.inc"
const unsigned char BlackStream[1];
const unsigned int BlackSize;
#else/*_LOGO_E_*/
const unsigned int BlackSize=0;
#endif
static unsigned int l_BuildInLogoSize;
static void* l_BuildInLogoBitStream;
//static WORD l_BuildIn_LOGO_WIDTH;
//static WORD l_BuildIn_LOGO_HIGH;
//static tTVSystem l_BuildIn_LOGO_TVSYS;
static char* l_szLogoNames[3];
void LogoInit(void)
{
/* Logo ******************************************************************/
#if ( _LOGO_MODE==_LOGO_Enable )
//note:
//l_szLogoNames[0] just for test use
//l_szLogoNames[1] for main logo use
//l_szLogoNames[2] for background logo use
#if (_LOGO== Logo_LG )
_LOGO_WIDTH = 720;
_LOGO_HIGH = 480;
_LOGO_TVSYS = NTSC;
l_szLogoNames[0] = "";
l_szLogoNames[1] = "\\logo\\lg20";
l_szLogoNames[2] = "\\logo\\lg20";//
ChangeLogoData(1);
#else
#error LOGO NOT DEFINED!!
#endif
LogoBlack = (void*) BlackStream;
#endif/*_LOGO_E_*/
}
void ChangeLogoData(BYTE bLgDataIndex)
{
static BOOL IsBuildInLogo = TRUE;
RF_ATTR RfAttr;
BOOL bFindorNot;
switch (bLgDataIndex)
{
case 0:
case 1:
case 2:
bFindorNot = RFS_FindFile(l_szLogoNames[bLgDataIndex],&RfAttr);
if(bFindorNot)
{
LogoSize = RfAttr.dwSize;
LogoBitStream = (void*)RfAttr.dwAddr ;
}
else
{
// PRINTF ("File : \"%s\" not found\n",l_szLogoNames[bLgDataIndex]);
LogoSize = 1;
LogoBitStream = (void*) BlackStream ;
}
break;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -