📄 mediaplayerfunc.h
字号:
/************************MediaPlayerOutlook.h****************************
*
* Copyright (C) 2003 by ALi Corporation. All Rights Reserved.
*
* File: MediaPlayerFunc.h
*
* Contents:
*
*
* History:
* Date By Reason Ver.
* ========================================================
* 2003/07 Diddy Du Create for MediaPlayer v1.0
*
***********************************************************************/
#ifndef _MediaPlayerFunc_h_
#define _MediaPlayerFunc_h_
#include <fileopen.h>
typedef enum {MPLR_NONE=0, MPLR_MUSIC, MPLR_PHOTO, MPLR_MOVIE, MPLR_CD} tPlayerType;
typedef enum {OBJ_MEDIATYPE=0, OBJ_LIST, OBJ_EDITBTN, OBJ_PROG } tMediaPlayerObj;
#define C_ITEMPERCOL 6
//define length of file/track name displaying
//shall >= MAX_FILE_NAME_LENGTH
//and it's different from MAX_FILE_NAME_LENGTH
#ifdef LG_8M_RAM_MODE //solution 1, for 8M RAM
#define MAX_LENGTH_DISPLAY MAX_FILE_NAME_LENGTH
#else
#define MAX_LENGTH_DISPLAY (MAX_FILE_NAME_LENGTH+4)
#endif
//for UI to display a page of dir/files' info
typedef struct _MPLIST_INFO
{
// char szName[32];
char szName[MAX_LENGTH_DISPLAY+1];
tFileType bType; //dir/file
// char szTrackPathName[256]; //store path
char szTrackPathName[MAX_LENGTH_OF_PATH+1]; //store path
}
MPLIST_INFO, *LPMPLIST_INFO;
//program info
typedef struct _MPPROG_INFO
{
//char szName[32];
BYTE bType;
WORD bTitle; //real num for filetab
}
MPPROG_INFO,*LPMPPROG_INFO;
//for VFD display
typedef struct _MPF_CurInfo_
{
tPlayerType iPlayerFocused;
tMediaPlayerObj iFocusObj;
WORD wListHighlightIndex;
WORD wListPlayingIndex;
WORD wProgPlayingIndex;
WORD wDirCount;
WORD wFileCount;
WORD wCurJpegNum;
}
MPF_CurInfo;
//memory dir depth
#define C_DIRDEPTH 20
void MPF_NextPrevProc(DWORD UserKey, int iNum);
void MPF_GetCurTrackNum(MPF_CurInfo* pMPFInfo);
WORD FileOpenMenuGetTTNs(void);
WORD MPF_GetListDIRNs(void);
WORD MPF_GetProgIndex(WORD wProgNum);
WORD FileOpenMenuGetDIRNs(void);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -