logo.c
来自「M3355的源代码」· C语言 代码 · 共 78 行
C
78 行
#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 + =
减小字号Ctrl + -
显示快捷键?