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

📄 custom_option_basic.h

📁 SAMSUNG 5009的源代码
💻 H
📖 第 1 页 / 共 4 页
字号:
/** 
 @file 		Custom_option_BASIC.h
 @brief     To support customer options. When customer added, add same option 
 			here

 @author	Taejin Kwon eric.kwon@samsung.com
 @version	0.1
 @date		2005/10/25

 - _APP_CAP_GLB_~ : To set global option for application. 
 - _APP_CAP_FUNC_~ : To select function toggle.
 - _APP_CAP_PERI_~ : To toggle peripherals.
 - _APP_CAP_AUD_~ : To toggle audio related options.
 - _APP_CAP_OSD_~ : To toggle OSD related options.
 - _APP_CAP_NAV_~ : To toggle navigator module.
 - _APP_CAP_KEY_~ : To toggle key related options.
 - _APP_VALUE_~ : To set some values used in application side.

 - _API_CAP_GLB_~ : To set global option for api.
 - _API_CAP_USE_~ : To toggle module
 - _API_CAP_"Module"_SUB_~ : To set sub options for each module.
 - _API_VALUE_~ : To set some values used in api side.
 
 <b>revision history : </b>
 - 2005/10/24 First creation
 */

#ifndef _CUSTOM_OPTION_BASIC_INH_
#define _CUSTOM_OPTION_BASIC_INH_

/* 
	Select correct board type
 */
//#define _BOARD_EVA
//#define _BOARD_CHINA
//#define HITACHI_SSCR
#define _BOARD_CHINA_VER6

/**
 \def _APP_MEMORY_BASE_VALUE
 To set SDRAM size

 - 16Mb : 0x200000
 - 32Mb : 0x400000
 - 64Mb : 0x800000

 \remark This option depends on the target customer's h/w restriction.
 */ 
#define _APP_MEMORY_BASE_VALUE							_COP_SYS_MEM_BASE_VALUE


/********************** APPLICATION OPTIONS ***********************************/ 

/*
 		Define some values
 */
/**
 \def _APP_VALUE_MAX_PROGRAM_NUM
 Maximum programable entry count
 
 This value should be set in every customer option. When this value is not set
 DVD/MMP/VCD cannot build.
 \remark Minimum value is 1.
 */
/**
 \def _APP_VALUE_RESUME_SAVE_TIME
 Resume information saving period

 
 \remark Refer _APP_CAP_FUNC_EMERGENCV_POWER_RESUME.
 */
/**
 \def _APP_VALUE_AUDIO_CHANNEL_NUM
 To set audio channel count

 This value is set for Setup OSD handling.
 
 \remark Refer audio setting.
 */
/**
 \def _APP_VALUE_OTHER_LANG_NUM
 To set language support range

 This value is set for Setup OSD handling.
 */
/**
 \def _APP_VALUE_MENU_LANG_NUM
 To set language support range

 This value is set for Setup OSD handling.
 */
/**
 \def _APP_VALUE_TV_SYSTEM_NUM
 To set TV system selection

 This value is set for Setup OSD handling.
 */
/**
 \def _APP_VALUE_VIDEO_OUT_NUM
 To set Video output mode selection

 This value is set for Setup OSD handling.
 */
#define _APP_VALUE_MAX_PROGRAM_NUM 						20
#define _APP_VALUE_RESUME_SAVE_TIME						20000	/* 10 sec */
#define _APP_VALUE_AUDIO_CHANNEL_NUM					2
#define _APP_VALUE_OTHER_LANG_NUM						5
#define _APP_VALUE_MENU_LANG_NUM						MENU_SUPPORT_LANG_NUM
#define _APP_VALUE_TV_SYSTEM_NUM							3 + _COP_TV_PAL60 + _COP_TV_PALM + _COP_TV_PALN
#define _APP_VALUE_VIDEO_OUT_NUM							_COP_VIDEO_SCART+_COP_VIDEO_SUB_VGA+\
															_COP_VIDEO_YPBPR+_COP_VIDEO_SVIDEO+\
															_COP_VIDEO_YUV+_COP_VIDEO_SUB_RGB


/*
		Define global options
 */
/**
 \def _API_CAP_GLB_EXTRA_DUMP_BUF
 Assign extra dump buffer in SDRAM to support simultaneous read operation during
 Playing state on F/E module. 

 To support file browsing or jpg display during audio playing status. If this
 option is disabled, read operation will share track buffer for playing purpose.
 As a result browsing and jpg decoding can be delayed. Additionally, if you don't
 want to support those kind of functio, disable this option.
 \remark Generally this option is disabled.
 */  
/**
 \def _API_CAP_GLB_BIG_GFX_TO_VIDEO_BUFF
 For the small resource applicaton, big graphic data must be written on video
 memory area.

 For the smallest SDRAM application, such as 16Mb, this option should be enabled
 to share video memory for graphic data. When this option is enabled, playback 
 must be stopped by application side.
 \remark It depends on size of SDRAM during playback.
 */  
/**
 \def _APP_CAP_GLB_DTS_AUD_SPDIF_IN_STREAM
 MPEG SPIF set option in Low API level
	- 1: Support it
	- 0: Remove it

 General AV receive amplifier cannot support MPEG audio decoder internally. So,
 MPEG audio stream don't need to send in spdif but in analog output is good to
 use in normal home theater.
 \remark Generally this option is disabled.
 */   
 
/**
 \def _API_CAP_GLB_LIGHT_ADMSYSTEM
 Audio Major Options related with 4/16 solution.

 Definition of Light ADM System.

  1. support 2-CH output only

  2. don't support DTS-Decoder

  3. don't support below at ADM System
			- Karaoke, Key Con
			- Reverb
			- TD, BM 

 Following options depends on this option.
 
  - _APP_CAP_AUD_SETUP_SPEAKER
  - _APP_CAP_AUD_ONLY_2CH_OUT
  - _APP_CAP_AUD_KARAOKE
  - _APP_CAP_AUD_REVERBERATION
  - _APP_CAP_AUD_3D	
  - _APP_CAP_AUD_EQ	
  - _APP_CAP_AUD_CALNOISE
  - _APP_CAP_AUD_TIME_DELAY	
  - _APP_CAP_AUD_BASE_MANAGE
  - _APP_CAP_AUD_FUNCTION_KEY	
  - _APP_CAP_AUD_KARAOKE_IN_DTS
  - _APP_CAP_AUD_PSCON	
  - _APP_CAP_AUD_INTEGRATED_DTS	


 <b>revision history : </b>
 - 2005/09/29 Now Light ADM System can be supported
 - 2005/11/07 Option handling moved to Custom option header by TJ

\remark	This option will affect all audio sub-options.
     So, reset related sub options if _API_CAP_GLB_LIGHT_ADMSYSTEM = 1. To set
     audio function option in detail, application function option section.
*/
/**
 \def _API_CAP_GLB_USE_ORIGINAL_ASPECT
 To show original video aspect ratio 

 This option is only useful in S5L5009

 \remark This option may be erased when H/W bug fixed.
 */ 
/**
 \def _API_CAP_GLB_SAFE_DEL_NAV_TASK
 To protect semaphore count go to invalid when nav task is deleted.

 - 1 : protect semaphore count.
 - 0 : do not protect.
 
 */  
#define _API_CAP_GLB_SAFE_DEL_NAV_TASK						1 
#define _API_CAP_GLB_EXTRA_DUMP_BUF						1//gaoping 20060427
#define _API_CAP_GLB_BIG_GFX_TO_VIDEO_BUFF				1
#define _API_CAP_GLB_MPEG_AUD_SPDIF_IN_STREAM			0
#define _APP_CAP_AUD_ONLY_2CH_OUT						_COP_AUD_2CH_ONLY_OUT
#define _API_CAP_GLB_USE_ORIGINAL_ASPECT				0
#define _API_CAP_GLB_SUPPORT_HDMI						(_COP_UI_OSD_HDMI_VIDEO_IN_SETUP|_COP_UI_OSD_HDMI_AUDIO_IN_SETUP)
#define  _API_CAP_SUPPORT_WMA							(!_COP_NAV_GAME_CD)|(!_COP_5009_SIMPLE_SOL)  // roco spec
#define _API_CAP_RLC_FUNCTION							0// Qian liping 061031

 /**
 \def _APP_CAP_GLB_DEFAULT_TV_IS_NTSC
 To set default TV system type

 - 1: NTSC
 - 0: PAL(PAL_B)
 
 \remark Default TV out type
 */ 
/**
 \def _API_CAP_GLB_MPEG_AUD_SPDIF_IN_STREAM
 MPEG SPIF set option in Low API level
	- 1: Support it
	- 0: Remove it

 General AV receive amplifier cannot support MPEG audio decoder internally. So,
 MPEG audio stream don't need to send in spdif but in analog output is good to
 use in normal home theater.
 \remark Generally this option is disabled.
 */   
#define _APP_CAP_GLB_DEFAULT_TV_IS_NTSC					1
#define _APP_CAP_GLB_29KB_TV_IS_NTSC					0
#define _APP_CAP_GLB_DTS_AUD_SPDIF_IN_STREAM			1


/* 
		Define navigator options
 */
/**
 \def _APP_CAP_NAV_DVD_VIDEO
 Enable DVD Video Navigator
 
 To enable DVD video application working. If this option is disabled, Invalid
 Disc state.
 \remark Generally this option is enabled.
 */ 
/**
 \def _APP_CAP_NAV_DVD_AUDIO
 Enable DVD Audio Navigator
 
 To enable DVD audio application working. If this option is disabled, Invalid
 Disc state.
 \remark Generally this option is disabled.
 */ 
/**
 \def _APP_CAP_NAV_SUPER_VIDEO_CD
 Enable Video CD navigator
 
 To enable SVCD application working. If this option is disabled, Invalid
 Disc state.
 \remark Generally this option is enabled.
 */ 
/**
 \def _APP_CAP_NAV_VIDEO_CD
 Enable Video CD navigator
 
 To enable VCD application working. If this option is disabled, Invalid
 Disc state.
 \remark Generally this option is enabled.
 */  
/**
 \def _APP_CAP_NAV_HQ_VCD
 Enable Video CD navigator
 
 To enable HQ-VCD application working. If this option is disabled, Invalid
 Disc state.
 \remark Generally this option is enabled.
 */  
/**
 \def _APP_CAP_NAV_CDDA
 Enable Audio CD navigator
 
 To enable Audio CD application working. If this option is disabled, Invalid
 Disc state.
 \remark Generally this option is enabled.
 */  
/**
 \def _APP_CAP_NAV_CDG_DECODE
 Enable CDG decoder module.
 
 This option makes CDG decoder module disabled. If this option is enabled,
 MM_CDG_BUF area must be prepared for graphic display. If you want to use
 CDG disc play, at first, enable _APP_CAP_NAV_CDDA, and then enable this option
 or not.
 \remark When _APP_CAP_NAV_CDDA is disabled, this option cannot enabled.
 */  
/**
 \def _APP_CAP_NAV_MMP
 Enable Multi Media file player
 
 To enable Multi Media file player application working. 
 If this option is disabled, Invalid Disc state. To set each file support or not,
 you have to refer Mmp_predef.h, Mmn_predef.h and Fs_api.h user's guide. 
 \remark Generally this option is enabled.
 */  
#define _APP_CAP_NAV_DVD_VIDEO							1
#define _APP_CAP_NAV_DVD_AUDIO 							_COP_NAV_DVD_AUDIO
#define _APP_CAP_NAV_SUPER_VIDEO_CD						_COP_NAV_VCD
#define _APP_CAP_NAV_VIDEO_CD								_COP_NAV_VCD
#define _APP_CAP_NAV_HQ_VCD								_COP_NAV_VCD
#define _APP_CAP_NAV_CDI                                                       _COP_NAV_VCD
#define _APP_CAP_NAV_CDDA									_COP_NAV_CDDA
#define _APP_CAP_NAV_DTS  									_COP_NAV_CDDA
#define _APP_CAP_NAV_HDCD									_COP_NAV_CDDA
#define _APP_CAP_NAV_CDG_DECODE							_COP_NAV_CDDA
#define _APP_CAP_NAV_FIRM_CD								1
#define _APP_CAP_NAV_USB_DISC								_COP_SYS_USB_SUPPORT
#define _APP_CAP_NAV_FX_DATA								_COP_SYS_CARD_SUPPORT

#define _APP_CAP_NAV_MMP								1
#if _APP_CAP_NAV_MMP
#define _APP_CAP_NAV_MMP_PLAY_VIDEO_FILE				1
#else
#define _APP_CAP_NAV_MMP_PLAY_VIDEO_FILE				0	/* fixed */
#endif

/**
 \def _APP_CAP_NAV_GAME_CD
 Enable Game CD

 To enable 8-bit game. 300-in-1 series supported, Light-Gun series not supported yet.
 \remark Generally this option is up to customer.
 \[Sunto Lee, 2006.09.22 ported]
 */  
#define _APP_CAP_NAV_GAME_CD			_COP_NAV_GAME_CD // redefined by _COP_xxx.


/*
		Define function options
 */
/**
 \def _APP_CAP_FUNC_MMP_MPG_TRICK_PLAY
 To support mpg trick play in MMN
 
 When this option is disabled, MPG file can only be normally played, if it is enabled
 .MPG/.DAT file have trick play functions.
 \remark Generally this option is enabled.
 */ 
/**
 \def _APP_CAP_FUNC_FE_POWER_DOWN
 To use F/E power down function
 
 When power off sequence is started, F/E must be full stopped. To confirm F/E 
 stop in this process you can get help of F/E api.
 \remark Generally this option is enabled.
 */ 
/**
 \def _APP_CAP_FUNC_MIXED_VCD_CDDA
 To support VCD+CDDA media type. Some of VCD disc can include CDDA tracks at
 the end of its disc. 

 But when CDDA track is positioned in front of VCD track, we cannot support
 this disc. In this case this disc will be handled in CDDA navigation. Only
 audio track can be played.
 \remark Generally this option is enabled.
 */  
/**
 \def _APP_CAP_FUNC_DISPLAY_FIT
 To support display fit in runtime. 

 When this option is enabled, user can chang video aspect ratio runtime.
 \remark Generally this option is disabled.
 */   
/**
 \def _APP_CAP_FUNC_BLACK_LEVEL_CHANGE
 To support black level change in SETUP menu or HOT key in stop mode
 
 When this option is enabled, user can chang video aspect ratio runtime.
 \remark Generally this option is enabled.
 */  
/**
 \def _APP_CAP_FUNC_BOOKMARK
 To support bookmark application
 
 When this option is enabled, osd function also related.
 \remark Generally this option is enabled.
 */   
/**
 \def _APP_CAP_FUNC_INSTANT_PLAY
 To support instant skip/replay function.
 
 When this option is enabled, customer can use instant skip and replay function.
 Using this function, 5 or 10 second jump skip available.
 \remark Generally this option is disabled.
 */   
/**
 \def _APP_CAP_FUNC_REMAIN_TIME
 To support remain time display.
 
 To support this function, we can support total time caculation also.
 \remark Generally this option is enabled.
 */   
/**
 \def _APP_CAP_FUNC_RANDOM_PLAY
 To support random mode play.
 
 If this option is enabled, random/program mode selection OSD needed.
 \remark Generally this option is enabled.
 */   
/**
 \def _APP_CAP_FUNC_VOLUM_CONTOL
 To support volume control function in application.
 
 If this option is enabled, volume control OSD needed.
 \remark Generally this option is enabled.
 */   
/**
 \def _APP_CAP_FUNC_MASTER_MUTE
 To support master audio mute function in application.
 
 If this option is enabled, API also enabled.
 \remark Generally this option is enabled.
 */   
/**
 \def _APP_CAP_FUNC_FIRMUP_ON_FLASH
 To support Firmware update when code is running on the flash device.
 
 Generally, code is working on SDRAM, but in some application can use flash
 device for code running device instead of SDRAM over S5L5005.
 In this case, flash device working in Read mode but in write time, it must be
 write mode. When flash device mode is changed, code cannot work on that.
 Firmware update code should be running on the SDRAM instead of Flash device.
 \remark Generally this option is enabled.
 */   
/**
 \def _APP_CAP_FUNC_RC_CODE_FREE
 To support code free function using remote control's special pattern.

 In some model they want to support code free using special key input pattern.
 For example, in the open state, "12345678" key entered sequecially, it can make
 code free ready state.
 \remark Generally this option is disabled.
 */  
/**
 \def _APP_CAP_FUNC_AUDIO_LR_IN_MMP
 To support audio LR change in explore menu OSD.

 In MP3/WMA explore menu, audio L/R change is handled by different way with
 audio cd or vcd. With this option, we can select toggle of this function.
 \remark Generally this option is diabled.

⌨️ 快捷键说明

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