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

📄 dvd_predef.h

📁 SAMSUNG 5009的源代码
💻 H
📖 第 1 页 / 共 2 页
字号:
#define _DVD_DIRECT_COPY

/********************************************************
 *
 *	Use the common read routine 
 *
 *
 ********************************************************/
#define _DVD_COMMON_READ

/********************************************************
 *
 *	Use the function instead of macro function
 *
 *	This can reduce the code size
 *
 ********************************************************/
#define _DVD_NO_MACRO_FUNC

/********************************************************
 *
 *	Use TT_SRPT UOP control info 
 *	TT_SRP UOP control check is not mandatory, and is an option.
 *	Samsung, DVS does not check this information.
 ********************************************************/
//#define _DVD_TT_SRPT_UOP

/********************************************************
 *
 *	support UOP_DVDV_PTT_PLAY 
 *
 ********************************************************/
#define _DVD_PTT_PLAY		// ishan, 20050114

/********************************************************
 *
 *	Support the program function
 *
 ********************************************************/
#if _APP_CAP_FUNC_DVD_PROGRAM_MODE
#define _DVD_PROGRAM
#endif

/********************************************************
 *
 *	Support the setup menu during the playback
 *
 ********************************************************/
 #if _APP_CAP_FUNC_SET_STOP_BEFORE_SETUP
#define _DVD_RUNTIME_SETUP
#endif

/********************************************************
 *
 *	Check the validity of Info
 *
 ********************************************************/
//#define _DVD_CHECK_INFO

/********************************************************
 *
 *	Ignore Next/Prev PG UOP until starting the current playback
 *
 ********************************************************/
/* Enabled (20050829,ishan) */
#define _DVD_NO_NEXT_PREV_PG_IN_TRANSIENT

/********************************************************
 *
 *	Handle the authoring fault of Nav Pack
 *
 ********************************************************/
#define _DVD_HANDLE_NAV_FAULT

/********************************************************
 *
 *	Support the bookmark function
 *
 ********************************************************/
#if _APP_CAP_FUNC_BOOKMARK 
#define _DVD_BOOKMARK
#define _DVD_DT_BOOKMARK	/* with TT, CH, & TIME info saved(yanglu, 060219) */
#endif


/********************************************************
 *
 *	Support the instant skip / replay
 *
 ********************************************************/
#if _APP_CAP_FUNC_INSTANT_PLAY
#define _DVD_INSTANT_PLAY
#endif


/********************************************************
 *
 *	Use the number of available audio/sp stream
 *	(This information can be used to display the total number of 
 *	audio stream or subpicture stream in Info or Search OSD)
 *
 ********************************************************/
#define _DVD_NUM_AVAIL_STREAM

/********************************************************
 *
 *	Use the file system information for finding VTSI, VTS VOBS,
 * 	and VMG VOBS.
 *	For some discs which are made by file copy, the addr obtained from VMGI
 *	is different from the addr of that file. We have to use the file system to
 *	get the start LBA for these kinds of discs 
 *
 * 	If this is defined, it will read from file system and check whenever
 *	read VMGI, VTSI, and it increases time to play.
 *
 *    If this is NOT defined, it won't check file system when reading VTSI
 *    or VMGI, and it will make it faster to jump to menu or title.
 *    However, when the disc is made by file copy, it needs more time
 *    to play, because it can be played after getting the backup info.
 ********************************************************/
//#define _DVD_IFO_FROM_FS


/********************************************************
 *
 *	Set the WSS only using the display setting in Setup Menu, 
 *	not considering the input stream.
 *
 *	When _DVD_WSS_FIXED_BY_SETUP is defined,
 *	 - If the aspect ratio is "Wide" in setup menu, 
 *        set WSS as "16:9".
 *	 - If the aspect ratio is "Letterbox" or "Pan&Scan" in setup menu, 
 *   	    set WSS as "4:3".
 *
 *	When _DVD_WSS_FIXED_BY_SETUP is NOT defined,
 *     - If the aspect ratio is "Wide" in setup menu,
 *            . If the input stream is 16:9 source, 
 *               set WSS as "16:9"
 *            . If the input stream is 4:3 source,
 *			- If the input source is letterboxed,
 *			   set WSS as "16:9 letterboxed"
 *			- If NOT,
 *               	   set WSS as "4:3".
 *     - If the aspect ratio is "Letterbox" in setup menu,
 *		. If the input stream is 16:9 source,
 *			- If the letterbox is allowed,
 *			   set WSS as "16:9 letterboxed"
 *                  - If NOT,
 *                     set WSS as "4:3".
 *            . If the input stream is 4:3 source,
 *			- If the input source is letterboxed,
 *			   set WSS as "16:9 letterboxed"
 *			- If NOT,
 *               	   set WSS as "4:3".
 *     - If the aspect ratio is "Pan&Scan" in setup menu,
 *		. If the input stream is 16:9 source,
 *			- If the pan&scan is allowed,
 *			   set WSS as "4:3".
 *                  - If NOT,
 *                     set WSS as "16:9 letterboxed"
 *            . If the input stream is 4:3 source,
 *			- If the input source is letterboxed,
 *			   set WSS as "16:9 letterboxed"
 *			- If NOT,
 *               	   set WSS as "4:3".
 ********************************************************/
//#define _DVD_WSS_FIXED_BY_SETUP


/********************************************************
 *
 *	When _DVD_REPEAT_AB_IN_OTHER_REPEAT is defined,
 *	RepeatAB can be set while RepeatTitle, RepeatCH is maintained.
 *	If RepeatAB is set in RepeatTitle(or RepeatCH) mode, 
 *	RpeatTitle(or RepeatCH) mode is restored when RepeatAB is
 *	canceled.
 *
 *	When _DVD_REPEAT_AB_IN_OTHER_REPEAT is NOT defined,
 *	the previous repeat mode is cleared when RepeatAB is set.
 ********************************************************/
#define _DVD_REPEAT_AB_IN_OTHER_REPEAT


/********************************************************
 *
 *	When _DVD_GOTO_AT_SPU_START is defined,
 *	the resuming position is the start of SPU when there's subpicture.
 *   
 *    The resuming positions are 
 *     - Resume stop
 *     - Repeat A point
 *     - Bookmark point
 *
 ********************************************************/
//#define _DVD_GOTO_AT_SPU_START

/********************************************************
 *
 *	When _DVD_REMAIN_PB_TIME is defined,
 *	Support the remain playback time features
 *   
 ********************************************************/
#ifdef _APP_CAP_FUNC_REMAIN_TIME
#define _DVD_REMAIN_PB_TIME
#endif

/********************************************************
 *
 *	Define the unit of handling "Repeat Chapter", "Program" and "Random"
 *	If _DVD_HANDLE_REPEAT_CH_AS_PTT_UNIT is defined, 
 *	the unit is PTT, i.e. chapter.
 *	Otherwise, the unit is PG.
 *
 *	This makes difference when playing PTTs which consists of
 *	one more PGs.
 *    (20050611, ishan ) 
 ********************************************************/
#define _DVD_HANDLE_REPEAT_CH_AS_PTT_UNIT

#ifdef _DVD_HANDLE_REPEAT_CH_AS_PTT_UNIT
/*If defined _DVD_ALWAYS_ENABLE_SKIP_UOP, NEXT/PREV UOP always 
    can be processed without checking navi infor.  Jiang Shanbin 060921*/
    
//#define _DVD_ALWAYS_ENABLE_SKIP_UOP
#endif
/********************************************************
 *
 *	Make the nav pack handling routine and end PTM handling routine
 *	simple and easy to maintain
 *
 *    (20050626, ishan ) 
 ********************************************************/
#define _DVD_NEW_NV_HANDLE


#ifdef _DVD_NEW_NV_HANDLE
/* If _DVD_NEW_NV_HANDLE is defined, define _DVD_NEW_VOBU_STILL */
#define _DVD_NEW_VOBU_STILL
#else
/* Define or Undefine */
#define _DVD_NEW_VOBU_STILL
#endif



/********************************************************
 *
 *	Enable to prevent the highlight from disappearing
 *	after emergency handling
 *
 *  If _DVD_KEEP_HLI is defined,
 *	this will keep highlight after emergency handling.
 *
 *  The highlight will be cleared 
 *  - when the play of the new cell starts after stop
 *  - when go to stop state with logo
 *  - when open the tray
 *
 * (Caution!!!)
 *
 * If _USE_KEEP_HLI is "1" in SH_capability.h,
 *   _DVD_KEEP_HLI should be defined.
 * Otherwise, do not define _DVD_KEEP_HLI.
 *
 *    (20050718, ishan ) 
 ********************************************************/
/* <<< @: 5008CHN-477.ishan 050720 : Keep hightlight after emergency handling */ 
#define _DVD_KEEP_HLI
/* >>> @: 5008CHN-477.ishan 050720 */


/********************************************************
 *
 *	Handle emergency without dump
 *
 *  If _DVD_EMERG_WITHOUT_DUMP is defined,
 *	the dump is not called in emergency routine
 *	in order to avoid the case that UOP cannnot be handled
 *	until dump is returned.
 *
 *
 *    (20050801, ishan) 
 ********************************************************/
#define _DVD_EMERG_WITHOUT_DUMP


/********************************************************
 *
 *	Menu Return function
 *
 *	If _DVD_MENU_RETURN is defined,
 *	it will support the functionality to go back to the last executed menu
 *
 ********************************************************/
#define _DVD_MENU_RETURN

 /* Define the method of menu return.
  	If _DVD_RETURN_TO_ROOT_MENU is defined,
  		"Return" key goes to root menu. 
  		If root menu doesn't exist, it goes to title menu.
  		If title menu doesn't exist, it is prohibited.
  		Same as _DVD_RETURN_TO_TITLE_MENU.
  	Otherwise, 
  		go to the last executed PGC in the menu domain.
  		If use this scheme, it can cause some problem in DVD "Kill Bill".
  		In "Kill Bill" Disc, the last executed PGC in menu domain is directly
  		linked to title play and it looks strange.
  	(20050818, ishan) 
*/  		
//#define _DVD_RETURN_TO_ROOT_MENU

#define _DVD_RETURN_TO_TITLE_MENU


/********************************************************
 *
 *	Support Resume stop at menu domain
 *
 *	If _DVD_MENU_RESUME_STOP is defined,
 *	it will support the resume stop and play at menu domain.
 *
 *	In this case, "Menu key" at menu domain does not work 
 *  as resume play of title.
 *	"Menu key" will work as menu key.
 *	(20050808,ishan) 
 *
 ********************************************************/
#define _DVD_MENU_RESUME_STOP


/********************************************************
 *
 *	Support the resume to the played position in TT when the menu
 *	key( title, root menu) is pressed in the menu domain.
 *
 *	If _DVD_SAVE_PREV_MENU_ID is defined,
 *	the previous menu ID is saved and it enables the key handling
 *	routine to work "title menu" or "root menu" key as resuming.
 *
 *	(20050223,ishan) 
 *
 ********************************************************/
#define _DVD_SAVE_PREV_MENU_ID


/********************************************************
 *
 *	Keep zoom mode after PGCIT is changed
 *
 *	If _DVD_KEEP_ZOOM_IN_TT_CHANGE is defined,
 *	Keep zoom mode until the user changes the zoom mode
 *	or the highlight appears while playing.
 *	(20050907,ishan) 
 *
 ********************************************************/
#define _DVD_KEEP_ZOOM_IN_TT_CHANGE

/********************************************************
 *
 *	Check if PAL disc can be played or not.
 *	If the PAL disc is not allowed to play, don't play PAL disc
 *	and just show the error message to users.
 *
 *	It has no harm to define it except the increase of code size 
 *	(20051110,ishan) 
 *
 ********************************************************/
#define _DVD_CHECK_PAL_DISC


/********************************************************
 *
 *	Check the time search result of TMAPT by dump Nav pack.
 *
 * 	If _DVD_TIME_SEARCH_BY_DUMP is defined,
 *	don't trust the time search result by TMAPT and check
 *	by dumping the Nav pack in order to perform the exact time
 *	search.
 *
 *	(20060224,ishan)
 *
 ********************************************************/
#define _DVD_TIME_SEARCH_BY_DUMP


/********************************************************
 *
 *	Supporting time search in stop mode.
 *
 * 	If _DVD_TIME_SEARCH_IN_STOP is defined,
 *	Supporting time search in stop mode while there's only 1 title,
 *     While in Menu R.stop, we prohibit it.
 *
 *	(20060921,Jiang Shanbin)
 *
 ********************************************************/
 #if _APP_CAP_FUNC_TIMESEARCH_IN_STOP
#define _DVD_TIME_SEARCH_IN_STOP
#endif
/********************************************************
 *
 *	Print the log when receiving the navigation pack
 *
 ********************************************************/
#if defined(_SH_MCNT_)
#else
//#define _DVD_PRINT_NAVPACK
#endif

#ifndef _DEBUG
#undef _DVD_PRINT_NAVPACK
#endif



/********************************************************
 *	Misc
 ********************************************************/

//#define _NAV_CMD_TEST
//#define _NO_STC

#endif	/* #ifndef _DVD_PREDEF_H_ */

⌨️ 快捷键说明

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