📄 fsgui.h
字号:
//
// fsGUI.h
//
// fs9660-GUI module internal include
//
// notes:
//
// history:
// 2002/02/26 : create
//
#ifndef __FS_GUI_H
#define __FS_GUI_H
//common FS GUI parts
#include "fsGUI1.h"
//UINT16 file_array[PER_PAGE]; //store file index of iso9660_file[index], PER_PAGE defined in fsGUIx.h
//UINT16 dir_array[PER_PAGE]; //store file index of iso9660_dir[index]
void PollingJpgVfd();//wanghaoying 2003-8-12 15:12
void reset_zoom_state(void);
void return_menu(void);
void copy_ref1_frame_mpg2gp(void);
void init_pic_cd_first_play(void);
void init_hw_gp_md(void);
void set_dsp_codec_addr(int jpeg);
//FS GUI utilitiy function
//void FSShowChar_Bfm(UINT16 x, UINT16 y, BYTE c, BYTE iY, UINT16 iCbCr);
void FSGUI_ShowChar(BYTE vid, int x, int y, BYTE c, BYTE iY, UINT16 iCbCr); //Jeff 20020823
void FSGUI_ShowChar_SR(int x, int y, BYTE c, BYTE iY, UINT16 iCbCr);
void FSGUI_ShowString(int x, int y, const UINT8 *s, BYTE iY, UINT16 iCbCr);
#ifdef FS_BMP_GUI
void FSGUI_ShowLittleString(int x, int y, const char *s, BYTE iY, UINT16 iCbCr);
void FSGUI_ShowLittleChar(BYTE vid, int x, int y, BYTE c, BYTE iY, UINT16 iCbCr);
#endif
//void FSGUI_ShowImage(BYTE* MapArray, int xStart, int yStart, int width, int height);
void FSGUI_FillFrameBuf(int x,int y, int xSize,int ySize,UINT16 color_Y,UINT16 color_CrCb);
void FSGUI_ReplaceFrameBuf(int x,int y, int xSize,int ySize,UINT16 replace_Y,UINT16 replace_CrCb,UINT16 color_Y,UINT16 color_CrCb);
void FSGUI_RotateDiscIcon(int phase);
void FSGUI_FlashFileIcon(int on);
//customize FS GUI parts
void FSGUI_Init(); //initialize all FSGUI interal variables
void FSGUI_Menu(); //draw main menu
void FSGUI_UpdateInfoArea(BYTE* strInfo); //show strInfo to information area(file name or others)
void FSGUI_JpgUpdateOSD(void); //get JPEG current track to OSD display
void FSGUI_Shuffle(); //do SHUFFLE GUI
void FSGUI_ProgSelect(UINT16 index); //do PROGRAM GUI
void FSGUI_Refresh(void); //refresh all GUI
void FSGUI_Return2Menu(void); //return 2 main menu
void FSGUI_CookFileItem(BYTE iItem); //do select file index GUI
void FSGUI_FileSelect(int iSelect); //do select file index job
int FSGUI_Select(int iSelect); //do select file index job
int FSGUI_GetDispTrack(); //get current track info for OSD disp
void FSGUI_2Last(); //locate to last dir and last file item
int FSGUI_PreChangeDir(UINT16 *iDir,UINT16 iDirect); //based on fsnav_dir_now to do directory chage(iDirect=0->next, 1->previous)
int FSGUI_PreFindDir(UINT16 *iDir,UINT16 iDirect); //find the next or prev directory,panxing for yuxing,2002-4-11(iDirect=0->next, 1->previous)
int FSGUI_NormalNext(); //normal to next item
int FSGUI_NormalPrev(); //normal to previous item
void FSGUI_Stop(); //do GUI stop status
void FSGUI_JpgPreview(); //show JPEG in preview mode
//void FSGUI_JPGPrevClr(); //clear JPEG preview area
UINT32 FSGUI_CmdEnter(); //got "ENTER"(SELECT) command from FSNAV
UINT32 FSGUI_CmdUp(); //got "UP" command from FSNAV
UINT32 FSGUI_CmdDown(); //got "DOWN" command from FSNAV
UINT32 FSGUI_CmdLeft(); //got "LEFT" command from FSNAV
UINT32 FSGUI_CmdRight(); //got "RIGHT" command from FSNAV
UINT32 FSGUI_CmdPlay(); //got "PLAY" button-command from FSNAV
UINT32 FSGUI_IsSelectable(); //check whether it is selectable now
UINT16 antiAnchorDir(int iDir);
UINT16 AnchorDir(int iSeq);
UINT16 AnchorFile(int iSeq); // return the index of iso9660_file by giving the index of a specified format
void Will2Playing(void);
void Playing2Will(void);
void Restore2PlayingFile(void);
void Restore2PlayingDir(void);
void ClearJpegPreviewBg(void);
void FSShowDirIcon(void);
void ShowFileIcon(void);
void DirList();
void FileList(void);
void CalcDirNow(UINT16 *iDir);
int PrepareForChangeFilePage(UINT16 iPage, UINT16 iSpecialTrk,UINT16 iDirect);
//extern function could be used
extern int Jpg_Main(UINT32 msf, UINT32 len, UINT16 xStart, UINT16 yStart, UINT16 xWidth, UINT16 yHeight);
extern void JPGBreak();
extern void _JPGBreak();
/*#ifdef NEW_MP3_GUI
//zhaoyanhua add 3-6-30 15:43
#define RGB2Y(r,g,b) (((71*(r) + 141*g + 27*b + 0x1000)&0xFF00)>>8)
#define RGB2Cr(r,g,b) (((127*(r)-106*(g)-21*(b)+0x8000)&0xFF00)>>8)
#define RGB2Cb(r,g,b) ((((-43)*(r)-85*(g)+127*(b)+0x8000)>>8)&0xFF)
#endif*/
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -