📄 gui.c
字号:
/*
* Start of Zoran Standard Header
* Copyright (c) 2005 Zoran Corporation
*
*
* All rights reserved. Proprietary and confidential.
*
* DESCRIPTION for gui.c
* Graphical User Interface
*
* NEW HISTORY COMMENT (description must be followed by a blank line)
* <Enter change description here>
* ===== HISTORY of changes in //depot/imgeng/sw/se_gw/gui/gui.c
*
* 7/Dec/05 #5 dstrauss Call GPMinit()
* 5/Dec/05 #4 dstrauss Removed VOPU test code.
* 2/Dec/05 #3 dstrauss Split gui loop off to a separate file.
* 1/Dec/05 #2 dstrauss Create GUITask. Moved splashlogo to a
* separate file.
* 29/Nov/05 #1 dstrauss Created.
*
*
* End of Zoran Standard Header
*/
#include "standard.h"
#include "ts.h"
#include "vopu.h"
#include "ledif.h" /* low-level LED interface */
#include "kbdif.h"
#include "hwaccess.h"
#include "uitypes.h"
#include "uigdi.h"
#include "guiloop.h"
#include "guiproperties.h" /* GPMinit() */
/* GUI task stack size (can be overridden in sys.h) */
#ifndef GUI_STACK_SIZE
#define GUI_STACK_SIZE (1024 * 12)
#endif
/* GUI task priority (can be overridden in sys.h) */
#ifndef GUI_TASK_PRIORITY
#define GUI_TASK_PRIORITY STATUS_LO_PRIORITY
#endif
static Uint32 GUITaskStack[GUI_STACK_SIZE/sizeof(Uint32)];
static tsTaskID GUITaskid = INVALIDTASK;
static Sint32 GUITask(void *argv)
{
hwAccessInit();
LEDIFinit(); /* init the LED interface */
KBDIFinit(); /* init the keyboard interface */
VOPUInit(); /* init the VOPU */
GDIinit(); /* init the GDI subsystem */
GPMinit(); /* init the GUI properties manager */
GUITaskloop(); /* never returns */
return 0;
}
int FPprolog()
{
/* Create the front panel/gui task */
GUITaskid = TASKCREATE(GUITask,
GUI_STACK_SIZE,
GUITaskStack,
NULLDATA,
GUI_TASK_PRIORITY,
NULLARG,
"GUITask");
if( GUITaskid == INVALIDTASK ) {
/* Failed to create GUI task */
return (-1);
}
return (0);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -