📄 dvd_predef.h
字号:
/****************************************************************************
* File name
* Dvd_predef.h
* Start date
* 2002.10.1
*
* By
* Inseo Han
*
* Contact
* ishan@samsung.com
*
* Description
* This file contains the compilation flags for DVD Navigator.
*
* HISTORY
*
* NAME DATE REMARKS
*
*
*
*****************************************************************************/
#ifndef _DVD_PREDEF_H_
#define _DVD_PREDEF_H_
/********************************************************
* DVD navigator debug information
*
* If you want to see the log, define _DEBUG here.
* If not, undefine _DEBUG.
********************************************************/
#ifndef _DEBUG
//#define _DEBUG
#endif
//#undef _DEBUG
/********************************************************
*
* DVD Buffer Scheme
*
* If there's enough memory for DVD navigator buffers,
* define _ENOUGH_DVD_BUFFER.
* In this case, the performance will be improved at the
* cost of memory space.
********************************************************/
//#define _ENOUGH_DVD_BUFFER
/********************************************************
* DVD-Audio Support
*
* If you want to support DVD-Audio,
* define _ENABLE_DVD_AUDIO.
********************************************************/
#if _APP_CAP_NAV_DVD_AUDIO
#define _ENABLE_DVD_AUDIO
#endif
/********************************************************
* DVD Digest Support
*
* If you want to support DVD digest,
* define _ENABLE_DVDV_DIGEST.
********************************************************/
#if _APP_CAP_FUNC_DVD_DIGEST
#define _ENABLE_DVDV_DIGEST
#endif
#if _APP_CAP_FUNC_DIGEST_GRAPHIC_16BPP
#define _DVD_DIGEST_GRAPHIC_16BPP
#if _APP_CAP_FUNC_DIGEST_GRAPHIC_YCbCr655
#define _DVD_DIGEST_GRAPHIC_YCbCr655
#endif
#endif
/********************************************************
*
* How to get the end address of VOBU
*
* Define the one of the followings.
*
* _VOBU_AUTO : Automatically API will play until the end
* of VOBU
* _VOBU_ADMAP : The navigator will use VOBU_ADMAP
* to get the end address of VOBU
* _VOBU_NVPACK : The navigator will play the first LBA of
* VOBU and play the remaining of the VOBU
* after receiving NV pack and getting the end
* address of VOBU
*
********************************************************/
/* ASSERT condition in S5H_ReadDvd or PSD can happen when _USE_DSI is 1 and _VOBU_AUTO
is defined in dvd_predef.h.
It is recommended that _USE_DSI be "0" and define _VOBU_NVPACK in dvd_predef.h */
//#define _VOBU_AUTO /* should be undefined #if !(_USE_DSI) */
//#define _VOBU_ADMAP
#define _VOBU_NVPACK
#if 0 // use _APP_CAP_FUNC_DVD_POWER_RESUME instead (yanglu, 060223)
/********************************************************
*
* Resume after Power-Off
*
* If you want to enable resume-after-poweroff functionality,
* define _POWER_OFF_RESUME
*
********************************************************/
#define _POWER_OFF_RESUME
#endif
/********************************************************
*
* Store random/shuffle history for resuming
*
* If you want to store the resume/shuffle for resuming,
* define _STORE_RANDOM_HIST
*
********************************************************/
#define _STORE_RANDOM_HIST
/********************************************************
*
* Use the unused H/W memory for dump cache
*
* If you want to use the ununsed H/W memory for dump cache,
* define _DVD_USE_CACHE
*
********************************************************/
#define _DVD_USE_CACHE
/********************************************************
*
* Handling Next/PrevPG UOP different from DVD Spec
*
* If you define _DVD_DIFF_UOP_PG, Next/PrevPG UOP will be
* handled like the followings.
*
* - For NextPG: If the last PG in PGC & NextPGCN==0,
* Go to the first chapter of the next title.
* - For PrevPG: If the first PG in PGC & PrevPGCN==0,
* Go to the last chapter of the previous title.
* - If the first TT (or the last TT) for the above case,
* ignore this UOP.
*
********************************************************/
#define _DVD_DIFF_UOP_PG
/********************************************************
*
* Handling of the UOP PREV_PG in special case
*
* If you want to handle the UOP PREV_PG as TOP_PG when
* the current PG is the first PG in the PGC without PrevPGCN
* in the sequential PGC or the random PG without PrevPGCN,
* define _DVD_HANDLE_PRE_PG_AS_TOP_PG
*
********************************************************/
//#define _DVD_HANDLE_PRE_PG_AS_TOP_PG
/********************************************************
*
* Define the unit of handling prev/next key
* If _DVD_HANDLE_PREV_NEXT_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_PREV_NEXT_AS_PTT_UNIT
/********************************************************
*
* Define the quick response way of Prev/Next key
* If _DVD_HANDLE_QUICK_PREV_NEXT is defined,
*
*
*
*
* (20050827, yanglu )
********************************************************/
#if _APP_CAP_KEY_QUICK_RESPONSE_NEXT_PREV
#define _DVD_HANDLE_QUICK_PREV_NEXT
#endif
/********************************************************
*
* Handling PGC End different from DVD Spec
*
* If you define _DVD_GOTO_NEXT_TT_AUTO, PGC End
* will be handled like the followings.
*
* - For PGC End: If the last PG in PGC & NextPGCN==0,
* Go to the next title.
*
********************************************************/
#define _DVD_GOTO_NEXT_TT_AUTO
/********************************************************
*
* Automatic start to play when there's no FP_PGC
*
* If you define _DVD_AUTO_PLAY, the DVD title without FP_PGC will
* be played back from TTN=1 automatically after initial loading.
*
*
********************************************************/
//#define _DVD_AUTO_PLAY
/********************************************************
*
* Automatic start to play when there's invalid FP_PGC
*
* If you define _DVD_AUTO_PLAY_FOR_INVALID_FP_PGC,
* the DVD title with FP_PGC which does not jump or link
* be played back from TTN=1 automatically after initial loading.
*
*
********************************************************/
#define _DVD_AUTO_PLAY_FOR_INVALID_FP_PGC
/********************************************************
*
* Code free of DVD-Video
*
* If you want to play all DVD-Video discs regardless of the region code,
* define _DVD_CODE_FREE
*
********************************************************/
//#define _DVD_CODE_FREE
/********************************************************
*
* Fast Resuming Routine
*
* If you want to enable the fast resuming routine which includes
* RepeatAB, NSML Angle change, * define _DVD_FAST_RESUME.
* However, It will use more memory than when it is undefined.
*
********************************************************/
#define _DVD_FAST_RESUME
/********************************************************
*
* Support FF/FR in "still video + audio only stream"
*
*
********************************************************/
#define _DVD_ALL_TRICK_IN_STILL
/********************************************************
*
* Handling of the still picture for FF/FR
*
* If you want to treat the still picture playback as the restricted cell,
* define _DVD_TREAT_STILL_AS_RESTRICTED.
* If you meet the still picture during FF/FR, it will start a normal
* playback from the cell which contains the still picture.
*
********************************************************/
#ifdef _DVD_ALL_TRICK_IN_STILL
/* Should not define _DVD_TREAT_STILL_AS_RESTRICTED */
#else
#define _DVD_TREAT_STILL_AS_RESTRICTED
#endif
/********************************************************
*
* Enable the continuous trick play (2xFF, SF) in still picture
*
* If you want to enable the continuous trick play (2xFF, SF) in still picture,
* define _DVD_CONT_TRICK_IN_STILL.
*
* In order to support it, _DISP_USE_NEW_CONT_TRICK in DISP_defin.h
* should be defined.
*
********************************************************/
#define _DVD_CONT_TRICK_IN_STILL
/********************************************************
*
* FF 2x displaying I and P only
*
* If _DVD_FF_2X_WITH_IPS is enabled,
* FF 2x displays only Is and Ps.
* This prevents from B2R underflow.
*
* Otherwise, it will display all the pictures.
*
* (20050805, ishan)
********************************************************/
//#if !(_USE_5010) //<<< KSH@5010 050907 : For smooth 2X Playback
#if _API_CAP_GLB_B2R_FRAME_MODE
#define _DVD_FF_2X_WITH_IPS
#endif
/********************************************************
*
* Change from the normal playback to FF 2X without stop
*
* If _DVD_SMOOTH_CHANGE_2X is defined,
* Stop is not called when changing 1x -> FF 2x.
*
*
* (20050804, ishan)
********************************************************/
#ifdef _DVD_FF_2X_WITH_IPS
/* When _USE_SMOOTH_DVD_FF2X_CHANGE is set 1,
_DVD_SMOOTH_CHANGE_2X can be defined. (20050828,ishan) */
#define _DVD_SMOOTH_CHANGE_2X
#else
#define _DVD_SMOOTH_CHANGE_2X
#endif
/********************************************************
*
* Define the DVD trick play scheme
*
* If _DVD_CONT_FF_4X is defined,
* FF 4x is played by continuous play command.
*
* Otherwise, FF 4x is VOBU play.
*
* (20050718, ishan )
********************************************************/
#define _DVD_CONT_FF_4X
/********************************************************
*
* Define the DVD jump step
*
* If _DVD_SMALL_JUMP_STEP is defined,
* the jump step of the trick play is small.
*
* Otherwise, the jump step is large by default.
*
* (20050718, ishan )
********************************************************/
#define _DVD_SMALL_JUMP_STEP
/********************************************************
*
* Check the validity of LSN
*
*
********************************************************/
//#define _DVD_CHECK_LAST_LSN
/********************************************************
*
* Transfer title key again in emergency state
*
*
********************************************************/
#define _DVD_RETRY_TT_KEY
/********************************************************
*
* EzView mode (DVS Spec) on/off
*
*
********************************************************/
#if _APP_CAP_FUNC_DISPLAY_FIT
#define _DVD_EZ_VIEW
#endif
/********************************************************
*
* Set PS or LB mode forcedly even though it is prohibited by the Disc
*
*
********************************************************/
//#define _DVD_FORCE_DISP_MODE
/********************************************************
*
* Support Subpicture off option in Setup Menu
*
*
********************************************************/
#if _APP_CAP_OSD_SUBTITLE_INCLUDE_OFF
#define _DVD_SP_OFF
#endif
/********************************************************
*
* Control RepeatAB interval by the AB interval
*
*
********************************************************/
//#define _DVD_REPEAT_AB_INTERVAL
/********************************************************
*
* Make the structure for DVD information same as DVD spec
* and copy the dumped data into the structures.
* This can decrease the code size in reading and parsing the
* information.
*
* However, currently this can be applied only to "Big-Endian"
* ARM mode.
* This does not guarantee the portability.
* Therefore if the platform or the byte order is changed,
* the source code should be changed carefully.
*
*
********************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -