📄 func.h
字号:
#ifndef __FUNC_H
#define __FUNC_H
#include "types.h"
#include "endian.h"
#include "stdlib.h"
#include "sio.h"
#include "epp.h"
/************************************************************\
polling.c head file
\************************************************************/
#include "polling.h"
/************************************************************\
kenny define for IOP Device address and High sub address
\************************************************************/
#define IOP_DEVICE_ADDR(da) (((da&0x78)<<1)&0xf0)//load Device address for IOP
#define IOP_HIGH_SUB_ADDR(sa) (UINT32)((sa&0x07)<<8)//load High sub address(A8~A10) for IOP
#define IOP_CONFIG_PDVD 0xF0; //jhuang pdvd 2003/12/2
/************************************************************\
psd.c v11.c fs9660.c svcd.c head file
\************************************************************/
UINT32 psd_callback_check(UINT32 func);
UINT32 dvd_callback_check(UINT32 func);
UINT32 fs_callback_check(UINT32 func);
int psd_getlist(int ListID);
int psd_navigation(void);
int v11_navigation(void);
int read_iso9660(void);
int check_cdtype(void);
void Chg2PlayMd(void) ;
UINT8 ReadFile(int *);
#ifdef SUPPORT_MULTI_PARTITION
int HddCardBrowse(void);
#endif
/************************************************************\
gpio.c head file
\************************************************************/
void reset_gpio(void);
/************************************************************\
ir.c head file
\************************************************************/
void reset_ir(void);
BYTE polling_ir(void);
int reverse_fun(int rx);
#ifdef OSDISP
/************************************************************\
osdisp head file
\************************************************************/
inline void osdisp_status(BYTE osdisp_state,BYTE osdisp_ir); //wjzhang
#endif
/************************************************************\
osd1.c head file
\************************************************************/
inline void osd_enable(void);
inline void osd_disable(void);
inline void polling_osd(int);
void reset_osd(void);
void osd_init(void);
void osd_tog_region(BYTE, int MODE);
void osd_init_music(void);
UINT8 *get_lang_name(int);
UINT8 *get_audio_mode();
void osdshow(UINT8 r,char *buf);
typedef struct {
UINT8 xst, yst;
UINT8 *str;
} t_osd_str;
void osd_DrawString(BYTE xStart, BYTE yStart, const BYTE *str, BYTE fontColor, BYTE bkColor);
void osd_DrawStrings(const t_osd_str *p, BYTE fg, BYTE bg);
#ifdef SOFT_MENU//Modifed by ChenZhao on 2004-9-7 11:24 WP
void osd_DrawString_ori(UINT32 xStart, UINT32 yStart, const BYTE *str, BYTE fontColor, BYTE bkColor);//Modifed by ChenZhao on 2004-9-7 11:24 WP
#else
void osd_DrawString_ori(BYTE xStart, UINT32 yStart, const BYTE *str, BYTE fontColor, BYTE bkColor);//nono 2004-4-12 1:02
#endif//SOFT_MENU
#ifdef SETUPMENU_16Mb_NO_ICON
void osd_DrawSetupIconString(BYTE xStart, BYTE yStart, const BYTE *str, BYTE fontColor, BYTE bkColor);
#endif
#define OSD_OnOffRegion(m,r) osd_tog_region(r,m)
void wait_v_blank(void);
void DispPolling(BYTE bReset);
BYTE bin2asc(BYTE pp);
void PrintOsdMsg(UINT32 id,UINT8 r,int t,BYTE m);
void ClearOsdMsg(int i);
void OsdRegionOff(BYTE r);
//void PrintOsdMsg2(BYTE r, int t);
void osd_replace_rect_color(BYTE bkColor, BYTE destColor);
void SetOsdCol(UINT8 rb,UINT8 re,UINT8 id,UINT32 color);
/************************************************************\
osdutil.c head file
\************************************************************/
#define AudKey_Font_ID 0x01
#define Volume_Font_ID 0x02
#define Echo_Font_ID 0x03
#define Score_Font_ID 0x04
#define Mic_Font_ID 0x05
#if defined(Ti3001_OSD_UI_1)||defined(Ti5026_OSD_UI_1)
//#define VOL_BALANCE_ID 0x06
#define VOL_TREBLE_ID 0x07
#define VOL_BASS_ID 0x08
#define VOL_DRC_ID 0x09
#define AMP_F_VOL_ID 0x0a // FRONT VOLUME
#define AMP_F_BAL_ID 0x0b // FRONT BALANCE
#define AMP_S_VOL_ID 0x0c // surround volume
#define AMP_S_BAL_ID 0x0d // surround BALANCE
#define AMP_C_VOL_ID 0x0e // center volume
#define AMP_SW_VOL_ID 0x0f // subwoofer volume
#endif
#define VOL_FL_ID 0x10
#define VOL_FR_ID 0x11
#define VOL_SL_ID 0x12
#define VOL_SR_ID 0x13
#define VOL_C_ID 0x14
#define VOL_SW_ID 0x15 //Jeff 20031028
#ifdef VIDEO_SETUP_NEW_GUI//zhaoyanhua add 2004-2-10 17:50
#define VIDEO_BIGHT_ID 0x16
#define VIDEO_CONTRAST_ID 0x17
#define VIDEO_HUE_ID 0x18
#define VIDEO_SATURATION_ID 0x19
#define VIDEO_DEINTERLACE_ID 0x20
#endif//ifdef VIDEO_SETUP_NEW_GUI
#if defined(SUPPORT_FUNCTION_MENU)||defined(BRIGHTNESS_COLOR_KEY)
#define BRIGHTNESS_PLUS_ID 0x21
#endif
#ifdef BRIGHTNESS_COLOR_KEY
#define COLOR_PLUS_ID 0x22
#endif
//freyman add 2002-9-10 20:22 and mark 2004-3-23 16:04
//#ifdef SVA_SAMPLE
//#define AMP_VOL_ID 0x06
//#endif
/************************************************************\
search.c head file
\************************************************************/
void vcd_mode_search(BYTE,BYTE,BYTE);
void dvd_search(BYTE,BYTE );//kenny add it 2001/5/8
//void vcd_search(BYTE, BYTE ,BYTE,BYTE );//kenny add it 2001/5/8
void show_search(BYTE, BYTE ,BYTE,BYTE );//kenny add it 2001/5/8
void search_func_input(void); //kenny 2001/5/16
void search_func_up(void);
void search_func_down(void);
void search_func_left(void);
void search_func_right(void);
void search_func_clear(void);
void search_func_select(void);
void show_level(int ,INT8 ,BYTE);
int atapi_open_tray(void);
int atapi_close_tray(UINT8); // for normal close tray, we use 0 as parameter;
// for close tray before standby mode, we use 1.
//search.c
void pbcoff_init(void);
/*
**
*/
void MediaMainLoop(void);
void restart_audio_engine(void);
void resync_audio_engine(void);
/************************************************************\
setup.c head file
\************************************************************/
void read_setup_select(void);
void Showdirpicture(UINT8 mode);
void ShowSetupSel(UINT8 mode);
void TestOsdFonts(void);
void ShowSetupPage(BYTE refresh);
void setup_func_down(void);
void setup_func_up(void);
void setup_func_left(void);
void setup_func_right(void);
void run_save_cmd(void);
void setup_func_prepage(void);
void setup_func_nextpage(void);
void setup_func_select(void);
void setup_password(void);
void show_password(BYTE num);
void custm_setup_menu(void);//jhuang
void read_custm_setup_select(void);//jhuang
void startup_vpp(void);
void ExitSetupPage(BYTE save);
#ifdef KONKA_DVD//20020904
void setup_func_clear(void); //konka clead
#endif
#ifdef SUPPORT_FUNCTION_MENU
void ShowSetupPage_plus(BYTE refresh);
#endif
#ifdef SUPPORT_DISPLAY_MENU
void exe_display_function(BYTE RightKey);
void polling_display_menu_plus(void);
#endif//end #ifdef SUPPORT_DISPLAY_MENU
/************************************************************\
Prog.c head file
\************************************************************/
void prog_func_clear(void);
void prog_show_play(void);
void prog_func_select(void);
void prog_func_play(void);
void prog_func_input(UINT8 num);
void ShowProgSel(UINT8 mode);
void ShowProgPage(void);
void prog_func_down(void);
void prog_func_up(void);
void prog_func_left(void);
void prog_func_right(void);
void prog_func_off(void);
BYTE prog_next(void);
BYTE prog_prev(void);
//void prog_next(void);
//void prog_prev(void);
int is_clear_pos(void);//2002-4-19 1:53
/************************************************************\
safe.c head file
\************************************************************/
void safe_srn_off(void);
void safe_srn_on(void);
void ChgColor(int c);
void MoveBox(UINT16 s_x,UINT16 size,UINT16 d_x);
void safe_srn_forceOFF(void);
/************************************************************\
book.c head file
\************************************************************/
void book_cancel(void);
void book_func_up(void);
void book_func_down(void);
void book_func_select(void);
void book_func_clear(void);
void book_func_play(void);
void book_func_number(void);
void show_book_tt(BYTE );
void mark_func_right(void);
void mark_func_left(void);
/************************************************************\
read.c head file
\************************************************************/
void ShowReadPage(void);
void read_func_left(void);
void read_func_right(void);
void read_func_down(void);
void read_func_input(void);
void read_func_up(void);
void read_func_select(void);
/************************************************************\
sound.c head file
\************************************************************/
//void ShowSoundSel(void);
void init_sound(void);
void ShowSoundPage(void);
void sound_func_down(void);
void sound_func_input(UINT8 num);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -