Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
Logo.c
Package: tb_i86_wr_1019_1102. [view]
Upload User: super_houu
Upload Date: 2008-09-21
Package Size: 4099k
Code Size: 4k
Category:
DVD
Development Platform:
Others
- /****************************************************************************************
- * Copyright (c) 2002 ZORAN Corporation, All Rights Reserved
- * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF ZORAN CORPORATION
- *
- * File: $Workfile: Logo.c $
- *
- * Description:
- * ============
- *
- *
- * Log:
- * ====
- * $Revision: 6 $
- * Last Modified by $Author: Leslie $ at $Modtime: 11/15/03 10:37a $
- ****************************************************************************************
- * Updates:
- ****************************************************************************************
- * $Log: /I76/I76_Common/I76_Reference/Logo/Logo.c $
- *
- * 6 11/15/03 7:07p Leslie
- * Replace old Video API Low Level Files with new ones
- *
- * 5 9/29/03 11:52a Chaol
- * code clear
- *
- * 4 03-06-30 16:58 Leslie
- * Merge for Alco Step A code
- *
- * 3 03-06-17 18:27 Admin
- * Merge for ExinoII project
- *
- * 2 03-01-09 4:38 Leslie
- * Support SUPPORT_TWO_LOGOS
- *
- * 10 7/05/02 21:19 Nirm
- * - Background-Color changes take effect immediately.
- *
- * 9 23/04/02 9:27 Nirm
- * - Added dependency in "Config.h".
- *
- * 8 10/04/02 11:47 Ettim
- * Added the method Logo_getCurrentSource()
- *
- * 7 27/03/02 13:27 Nirm
- * - Fixed a bug in Logo_getBackgroundColor().
- *
- * 6 24/03/02 12:08 Nirm
- * Added Logo_getBackgroundColor().
- *
- * 5 17/03/02 9:48 Atai
- * Convert I44 to DEC
- *
- * 4 3/05/02 5:53a Dingming
- * support frame display switch
- *
- * 3 4/03/02 17:36 Atai
- * rename I44 to DEC_LL
- *
- * 2 2/18/02 14:58 Rinata
- * prepare low level directory
- *
- * 1 31/01/02 16:23 Nirm
- ****************************************************************************************/
- /////////////////////////////////////////////////////////////////////////////
- // Logo.c - Logo/Background management
- //
- // Author: Nir Milstein
- #include "Config.h" // Global Configuration - do not remove!
- #include "DecoderDecoder.h"
- #include "Decoderlow_levelDEC_LL_Api.h"
- #include "LogoLogo.h"
- /////////////////////////////////////////////////////////////////////////////
- // Constants
- #define BLACK_Y 0x10
- #define BLACK_U 0x80
- #define BLACK_V 0x80
- /////////////////////////////////////////////////////////////////////////////
- // Globals and Singletons
- struct LogoInfo_TAG {
- enLogoSource eSource;
- struct {
- UINT8 ucYComponent;
- UINT8 ucUComponent;
- UINT8 ucVComponent;
- } bgColor;
- } g_LogoInfo= { eStartup, { BLACK_Y, BLACK_U, BLACK_V } };
- /////////////////////////////////////////////////////////////////////////////
- // Public Services
- void Logo_setBackgroundColor(UINT8 ucY_Component, UINT8 ucU_Component, UINT8 ucV_Component)
- {
- g_LogoInfo.bgColor.ucYComponent= ucY_Component;
- g_LogoInfo.bgColor.ucUComponent= ucU_Component;
- g_LogoInfo.bgColor.ucVComponent= ucV_Component;
- DEC_LL_BackgroundColor(ucY_Component, ucU_Component, ucV_Component);
- return;
- }
- void Logo_getBackgroundColor(UINT8 *o_pY_Component, UINT8 *o_pU_Component,
- UINT8 *o_pV_Component)
- {
- *o_pY_Component= g_LogoInfo.bgColor.ucYComponent;
- *o_pU_Component= g_LogoInfo.bgColor.ucUComponent;
- *o_pV_Component= g_LogoInfo.bgColor.ucVComponent;
- return;
- }
- void Logo_selectSource(enLogoSource eSoruce)
- {
- g_LogoInfo.eSource= eSoruce;
- return;
- }
- enLogoSource Logo_getCurrentSource(void)
- {
- return(g_LogoInfo.eSource);
- }
- extern CONST DEC_FRAME power_up_logo;
- #ifdef EXINOII
- extern CONST DEC_FRAME setup_menu_logo;
- #endif//EXINOII
- #ifdef SUPPORT_TWO_LOGOS
- extern CONST DEC_FRAME power_up_logo2;
- #endif
- void Logo_display(void)
- {
- switch (g_LogoInfo.eSource)
- {
- case eJacketPicture:
- case eFlash:
- break;
- case eFrame:
- DEC_LL_BackgroundSwitch(DEC_LL_BG_SWITCH_FRAME);
- break;
- case eBackground:
- DEC_LL_BackgroundSwitch(DEC_LL_BG_SWITCH_BACKGROUND);
- break;
- case eStartup:
- DEC_FrameDisplay(&power_up_logo);
- break;
- #ifdef SUPPORT_TWO_LOGOS
- // To Display 2nd Logo for Menu
- case eMenuBackground:
- DEC_FrameDisplay(&power_up_logo2);
- break;
- #endif
- default:
- tr_printf(("FATAL: Logo_display() Failed: Unknown sourcen"));
- return;
- }
- return;
- }
- void Logo_clear(void)
- {
- g_LogoInfo.bgColor.ucYComponent= BLACK_Y;
- g_LogoInfo.bgColor.ucUComponent= BLACK_U;
- g_LogoInfo.bgColor.ucVComponent= BLACK_V;
- DEC_LL_BackgroundColor(BLACK_Y, BLACK_U, BLACK_V);
- return;
- }