⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mmp_common.h

📁 SAMSUNG 5009的源代码
💻 H
📖 第 1 页 / 共 2 页
字号:
/******************************************************************************
 *   Filename    : Mmp_common.h
 *   Start       : 2004. 11. 15
 *   By          : Taejin Kwon
 *   Contact     : eric.kwon@samsung.com
 *   Description : 
 ******************************************************************************
 */
#ifndef _MMP_COMMON_H_
#define _MMP_COMMON_H_

#ifdef	__cplusplus
extern	"C" {
#endif

/******************************************************************************
 *  DEFINES 
 *****************************************************************************/ 
typedef signed int						MMP_RETURN;

#define MMP_RETURN_OK					0
#define MMP_RETURN_FAIL				-1
#define MMP_RETURN_TIMEOUT			-2

#define MMP_AUDIO_FOLDER				0x1	/* the filtering value for Audio folder */
#define MMP_IMAGE_FOLDER				0x2	/* the filtering value for Image folder */
#define MMP_VIDEO_FOLDER				0x4	/* the filtering value for Video folder */
#define MMP_TEXT_FOLDER				0x8
#define MMP_ALL_FOLDER				0xF /* All files */

#define MMP_NO_SELECTION				0x7FFF 	/* no item selected */
#define MMP_MAX_INPUT_NUM			FS_MAX_NUM_OF_FILE	/* the maximum input number allowed */

#define MMP_PGM_PAGE_UNIT_SIZE		6

#if _APP_CAP_OSD_FLATTEN_EXPLORER

#define MMP_CTRL_PAGE_UNIT_SIZE  	8	/*How many items in the file or folde page*/
#define MMP_ALBUM_PAGE_UNIT_SIZE  	6	/*How many pictures in album*/
//gaoping 20051221 add jpg resume stop
#define DIVX_CTRL_PAGE_UNIT_SIZE 	6   /*How many file in ext_subtitle menu*/


#define MMP_SUPPORT_JPG_RESUME_STOP        1
#define MMP_FOLDER_NAME_LENGTH		10	/* the number of folder name characters in folder page */
 /* <<< @: 5008CHN-XXX.Gaoping 050712:  MMN: let the file page show the extension name. */
#define MMP_FILE_NAME_LENGTH			11	/* the number of file name characters in file page *///gaoping 0711
 /* >>> @: 5008CHN-XXX.Gaoping 050712:  MMN: let the file page show the extension name. */
#define MMP_NAME_LENGTH				16	/* the number of managed name characters in inner file/folder page */

#define MMP_PATH_FOLDER_LENGTH		8	/* the number of file name characters in explore path */
#define MMP_PATH_FILE_LENGTH			30	/* the number of file name characters in explore path */

#define MMP_EXP_TXT_GAP				5 /* the gap between text string and right border */

#define MMP_PATH_NAME_LENGTH			32	/* the number of selected file info name characters on Explore osd */

#define MMP_DIGIT_NUM					3	/* the attached string for file and folder number before name string */

//#define MMP_VALUE_OVERFLOW			0x7FFE	// cydrain 20061024, use MMP_NO_SELECTION

#define MMP_FOLDER_DIR				0x0
#define MMP_FILE_DIR					0x8000
#define MMP_DIR_FILTER				0x8000

/* Maximum program number for MMN */
#define MMP_MAX_PROGRAM				_APP_VALUE_MAX_PROGRAM_NUM

/* Define Slide Show Time */
#define MMP_SLIDE_SHOW_OFF			0	
#if _APP_CAP_JPG_ASV
#define MMP_SLIDE_SHOW_TIME_1		16000	// 6secs
#define MMP_SLIDE_SHOW_TIME_2		20000	// 8secs
#define MMP_SLIDE_SHOW_TIME_3		24000	// 10secs
#else
#define MMP_SLIDE_SHOW_TIME_1		6000	// 3secs
#define MMP_SLIDE_SHOW_TIME_2		10000	// 5secs
#define MMP_SLIDE_SHOW_TIME_3		14000	// 7secs
#endif
/* Define Album Select Move */
#define MMP_ALBUM_LEFT_MOVE			(-1)
#define MMP_ALBUM_RIGHT_MOVE			1
#define MMP_ALBUM_UP_MOVE				(-3)
#define MMP_ALBUM_DOWN_MOVE			3

#define MMP_ALBUM_FIRST_DRAW			0 /* Draw All Ablum OSD */
#define MMP_ALBUM_DRAWN_BEFORE		1 /* Draw Only Changed Parts */

/* Album image coordinates */
// Qian liping 060424
#define MMP_ALBUM_BG_X					80 
#define MMP_ALBUM_BG_Y					30 

#define MMP_ALBUM_X1					100 
#define MMP_ALBUM_X2					290 
#define MMP_ALBUM_X3					480 
#define MMP_ALBUM_Y1					100 
#define MMP_ALBUM_Y2					264 

/* Random Play */
#define MMP_HISTORY_ARRY_NUM			47 /* Max Number: 32*47 = 1504 */

#define MMP_MAX_RETRY					5 /* Maximum trials in error */

#else /* _APP_CAP_OSD_FLATTEN_EXPLORER */

#define MMP_CTRL_PAGE_UNIT_SIZE  			8	/*How many items in the file or folde page*/
#define MMP_PGM_CTRL_PAGE_UNIT_SIZE  			8	/*How many items in the file or folde page*/
#define MMP_CTRL_PGM_MAX_SIZE					30 	/*rm.jung @ 051010 :How many items stroe the file in the playlist*/

#define MMP_ALBUM_PAGE_UNIT_SIZE  			6	/*How many pictures in album*/
#define MMP_FOLDER_NAME_LENGTH				10	/* the number of folder name characters in folder page */
#define MMP_FILE_NAME_LENGTH					16	/* the number of file name characters in file page */

#define MMP_NAME_LENGTH						20	/* the maimun number of characters for storing in file/folder page */

#define MMP_PATH_FOLDER_LENGTH				8	/* the number of file name characters in explore path */
#define MMP_PATH_FILE_LENGTH					30	/* the number of file name characters in explore path */

#define MMP_EXP_TXT_GAP						10 /* the gap between text string and right border */

#define MMP_PATH_NAME_LENGTH					32	/* the number of selected file info name characters on Explore osd */

#define MMP_DIGIT_NUM								3	/* the attached string for file and folder number before name string */


#define MMP_FOLDER_DIR				0x0
#define MMP_FILE_DIR					0x8000
#define MMP_DIR_FILTER				0x8000

//#define MMP_VALUE_OVERFLOW			0x7FFE		// cydrain 20061024, use MMP_NO_SELECTION


#define MMP_MAX_PROGRAM				(_APP_VALUE_MAX_PROGRAM_NUM)

/* Define Slide Show Time */
#define MMP_SLIDE_SHOW_OFF			0		
#define MMP_SLIDE_SHOW_TIME_1		6000	// 3secs
#define MMP_SLIDE_SHOW_TIME_2		10000	// 5secs
#define MMP_SLIDE_SHOW_TIME_3		14000	// 7secs

/* Define Album Select Move */
#define MMP_ALBUM_LEFT_MOVE			(-1)
#define MMP_ALBUM_RIGHT_MOVE			1
#define MMP_ALBUM_UP_MOVE				(-3)
#define MMP_ALBUM_DOWN_MOVE			3

#define MMP_ALBUM_FIRST_DRAW			0 /* Draw All Ablum OSD */
#define MMP_ALBUM_DRAWN_BEFORE		1 /* Draw Only Changed Parts */

/* Album image coordinates */
//@ha050929
#define MMP_ALBUM_X1					72
#define MMP_ALBUM_X2					216
#define MMP_ALBUM_X3					360
#define MMP_ALBUM_X4					504

#if _SUPPORT_PAL
//<<< 2005.12.2 dwkim : to correct temporarily miscalculation of the C position in frame buffer
#define MMP_ALBUM_Y1					163 //162
#define MMP_ALBUM_Y2					303
#else
//<<< 2005.12.2 dwkim : to correct temporarily miscalculation of the C position in frame buffer
#define MMP_ALBUM_Y1					115 //114
#define MMP_ALBUM_Y2					255
#endif //_SUPPORT_PAL

/* Random Play */
#define MMP_HISTORY_ARRY_NUM			47 /* Max Number: 32*47 = 1504 */

#define MMP_MAX_RETRY					5 /* Maximum trials in error */

#endif /* _APP_CAP_OSD_FLATTEN_EXPLORER */
//gaoping 051102PM
#define GET_REPEAT						0
#define GET_REPEAT_AB 					1
#define GET_REPEAT_MODE					2

/******************************************************************************
 *  DATA TYPES
 *****************************************************************************/

typedef enum {
	MMP_FOLDER_PAGE,
	MMP_FILE_PAGE
} MmpPageType_et;


typedef enum {
	MMP_DSP_ONLY			= 0,
	MMP_DSP_BG_PLAY		= 1,
	MMP_DSP_IMG_PLAY		= 2
} MmpDspSync_et;

typedef enum {
	MMP_NON_STOP	 		= 0,
	MMP_RESUME_STOP		= 1,
	MMP_STOP				= 2,
	MMP_FULL_STOP			= 3
} MmpStopMode_et;

typedef enum {
	MMP_DIR_NONE	 		= 0,
	MMP_DIR_OPEN,	
	MMP_DIR_AUDIO_PLAY,	
	MMP_DIR_IMG_FULL,		
	MMP_DIR_IMG_ALBUM,
	MMP_DIR_IMG_PREVIEW,
	MMP_DIR_AUDIO_PLAY_1ST,	
	MMP_DIR_VIDEO_PLAY_1ST,
	MMP_DIR_IMG_PLAY_1ST,
	MMP_DIR_VIDEO_PLAY
} MmpDirAct_et;

/* for the repeat status */
typedef enum{
	MMP_REPEAT_OFF=0,
	MMP_REPEAT_ALL,
	MMP_REPEAT_FOLDER,
	MMP_REPEAT_FILE,
	MMP_REPEAT_A,
	MMP_REPEAT_B
}MmpRepeatSub_et;

/******************************************************************************
 *  COMMON FUNCTIONS
 *****************************************************************************/
VOID MmpPrepare( ULONG lArgc, VOID *pArgv );
VOID MmpStart( ULONG lArgc, VOID *pArgv );
VOID MmpEnd( ULONG lArgc, VOID *pArgv );
VOID MmpManagerTask( VOID *pHeap, UINT iSize );
VOID ChangeKeyToMmpCommand( UCHAR data, UCHAR param );
BYTE1 Getdecodestate(VOID);//gaoping 20060111
void MmpSetSavedIndex(UINT index); //azureming@060220
UINT MmpGetSavedIndex(VOID); //azureming@060220
PbTime_st MmpGetTime(VOID);
#ifdef _MMP_BOOKMARK	// cydrain 20060210
BOOL MmpExt_GetMmpBookmarkAttribute(BookmarkInfo_t *ptr_bm, UCHAR nBm);

#define GetMmpBookmarkAttribute MmpExt_GetMmpBookmarkAttribute

VOID SetMmpBookmark(UCHAR bookmark_num);
VOID EraseMmpBookmark(UCHAR bookmark_num);
VOID PlayMmpBookmark(UCHAR bookmark_num);
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -