📄 sh_capability.h
字号:
* By TJ
*****************************************************************************/
/* Define for OSD
* 20050120 kdy for test, delete later ..
*/
/*
5008 M2VD has bug that UD Ptr is reset while rewinding.
In order to fix this problem, _USE_UD_BUG_FIX should be enabled.
Others don't need to enable it.
*/
#if _USE_5008
#define _USE_UD_BUG_FIX 1
#else
#define _USE_UD_BUG_FIX 0
#endif
/* <<< @: 5008CHN-477.ishan 050720 : Keep hightlight after emergency handling */
/* Keep HLI after SH_PM_Stop() if the HLI exists.
This option prevents the hightlight from disappearing after emergency handling.
(Caution!!!)
If _USE_KEEP_HLI is "1", _DVD_KEEP_HLI should be defined in Dvd_predef.h
(20050720, ishan) */
#define _USE_KEEP_HLI 1
/* >>> @: 5008CHN-477.ishan 050720 */
/*****************************************/
/* Use the revised SDOUT feature since S5L5001 */
#define _USE_5001_MACROVISION 1 /* Macrovision change for 5001 */
/*****************************************/
/* 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 _USE_DSI 0 /* Find and play the specific unit
* automaticall using DSI during trick play */
//#define _SLOW_REVERSE 0 /* For slow reverse */
#if _API_CAP_GLB_B2R_FRAME_MODE
#define _3FRAME_ON 0 /* If enabled, only 2D IPC is possible */
#define _4FRAME_ON 0
#else
#define _3FRAME_ON 1 /* If enabled, only 2D IPC is possible */
#define _4FRAME_ON 0
#define _4FRAME_800x608_ON (!_COP_5009_SIMPLE_SOL)
#endif
#define _EXTENDED_VBV_BUF_140_ (!_COP_5009_SIMPLE_SOL)
#define _EXTENDED_VBV_BUF_100 _COP_5009_SIMPLE_SOL
#define _SUPPORT_3D_IPC 0
/* When 3D IPC is on, VD-VP handshake should be turned off (20051014,ishan) */
#if _SUPPORT_3D_IPC
#undef _USE_VD_VP_HANDSHAKE
#define _USE_VD_VP_HANDSHAKE 0
#endif
#define _USE_LOWER_BW 1
/*
Share Y of Component output with S-Video.
If S-video is made from Y of DAC1 and C of DAC5(i.e. Y of Component output is
shared with S-video), set 1.
If S-video is made from DAC4 Y and DAC5 C(i.e. the external chip to give two
outputs, composite and S-video from Y,C mix is used), set 0.
If 1, Y of component is shared for S-video and component output.
In this case, sync level and ratio, int/prog mode should be changed properly
according to the current mode.
If 0, Y is used only for the component output.
In this case, the component output is not affected by S-video mode change
and also not affected by the black level on/off. The black level should be kept off.
(20060119,ishan)
*/
#define _USE_SHARE_Y_FOR_SVIDEO 1
/******************************************************
*
* TV Output setup
*
*******************************************************/
/* Enhance NTSC-to-PAL video quality by adjusting VP and SDOUT */
#define _USE_ENHANCE_NTSC_PAL 0
/* For Code optimization */
#define _USE_VP_PP_BRIGHT 1 /* VP PP for brightness */
/* If _APP_CAP_FUNC_SAVER_BY_BRIGHT_CHANGE in select_cap.h is 1,
should be 1 */
#if _USE_ENHANCE_NTSC_PAL
#define _USE_VP_PP_OTHERS 1 /* VP PP for saturation, contrast : should 1 */
#else
#define _USE_VP_PP_OTHERS 0 /* VP PP for saturation, contrast : 0 or 1 */
#endif
#define _USE_USER_DEFINED_PS 0
/* <<< @: 5008CHN-2000.ishan 050613 : Keep zooming scale even after TV mode change */
#define _USE_KEEP_ZOOM_IN_TV_CHANGE 1
/* >>> @: 5008CHN-2000.ishan 050613 */
/*
Enable WSS/CGMS (20050802,ishan)
*/
/* Enable WSS.CGMS by request of ReignComTech (20050826, ishan) */
/* Disable WSS/CGMS by default according to the reference set (20050801) */
#define _USE_WSS_CGMS 1
/*
Fix the WSS625 CGMS signal problem
(20060224,ishan)
*/
#define _USE_FIX_WSS_626_CGMS 1
/*
Enable the check whether to play PAL disc or not
*/
#define _SUPPORT_CHECK_PAL_DISC_PLAY 0
/****************************************************************************************
* Support Audio output using PWM
* 1: Use PWM
* 0: Use ADAC
*
* (Note) This define is valid only in 5005 solution, and has no effect on other solution.
*****************************************************************************************/
/****************************************************************************************
* Audio Misc Options
* --hspark 050920
******************************************************************************************/
#if _USE_5008
#define _USE_256FS_INSTEAD_OF_384FS 0 /* 1: try to use 256FS (previous was 384fs), 0: use original 384FS */
#else
#define _USE_256FS_INSTEAD_OF_384FS 0 /* disable this feature for others */
#endif
/****************************************************************************************
* Audio PostCodec Option which has no dependancy with Application
* for example, Karaoke has dependancy at selec_cap.h with the application options
* _APP_CAP_AUD_KARAOKE & _APP_CAP_AUD_MIC_DETECT
* --hspark 050920
******************************************************************************************/
/*
Turn On Karaoke feature for 5008 only
-- hspark 050921
*/
/*
In case of Karaoke supported mode,
we can choose whether we use EXTERNAL_ADC or internal ADC ( default : use internal ADC )
-- hspark 051005
*/
#if _APP_CAP_PERI_EXT_ADC
/*
Current External ADC don't support 384FS.
So, forcely set to 1 here
-- hspark 051007
*/
#undef _USE_256FS_INSTEAD_OF_384FS
#define _USE_256FS_INSTEAD_OF_384FS 1
#endif
#define _AUD_HALF_MIC_FREQ 1 //jy kara
/*
option for 5009, 14bit ADC karaoke
example) when SAIU frequency is 48khz
_AUD_HALF_MIC_FREQ : Mic sampling freqeuncy is 24Khz.
!_AUD_HALF_MIC_FREQ (FULL) : Mic sampling freqeuncy is 48Khz.
060522 - jaeyoul kim -
*/
#if _API_CAP_GLB_MPVD_FRAME_MODE
/*
in case of PCM stream muxed in AVI. Sampling rate & Bitrate are variable should be prepared.
because PCM stream in AVi is passed to CDDA decoder, AVI parser should pass these parameter to decoder.
CDDA decoder also fixed due to support this.
050811 - jaeyoul kim -
*/
#define SUPPORT_AVI_PCM 1 //jy newcodec
/*
WMA file format has it's own ASF header format.
in case of WMA stream muxed in AVI and ASF, these headers are parsed already, and only raw stream is passed to WMA decoder.
WMA decoder also fixed due to support not only file stream but also raw stream.
050915 - jaeyoul kim -
*/
#define SUPPORT_AVI_WMA 1 //jy newcodec
/*
MSADPCM is among the format of SONY QA avi stream. so it should be supported.
MSADPCM also use it's own RIFF header format so it will be Rawstream in AVI and ASF stream.
050926 - jaeyoul kim -
*/
#define SUPPORT_AVI_ADPCM 1 //jy newcodec
/*
OGG is among the format of SONY QA avi stream. so it should be supported.
OGG keeps it's containner format in AVI file. it makes things difficult.
060118 - jaeyoul kim -
*/
#define SUPPORT_AVI_OGG 1 //jy ogg
/* <<< @: 5010-xxx. HoJune_Byun 06/02/06 */
/******************************************************************************
* _USE_AUDIO_IMMEDIATE_RESPONSE
* for fullframe 2x, this option let sound out immediately when be resumed
*****************************************************************************/
#define _USE_AUDIO_IMMEDIATE_RESPONSE 1
/* <<< @: 5010-xxx. HoJune_Byun 06/02/06 */
#define _AUD_NEW_BUF_STRC_FOR_DIVX 0 //jy newbuf
#else /*_API_CAP_GLB_MPVD_FRAME_MODE*/
#define SUPPORT_AVI_PCM 0
#define SUPPORT_AVI_WMA 0
#define SUPPORT_AVI_ADPCM 0
#define SUPPORT_AVI_OGG 0
#define _USE_AUDIO_IMMEDIATE_RESPONSE 0
#define _AUD_NEW_BUF_STRC_FOR_DIVX 0 //jy newbuf
#endif
/* <<< @: 5010-xxx.JaeYoul_Kim 051215 : use 32bit buffer offset value to support over 64KB S0, S1 buf size*/ //jy noaudext
/* this is for DivX sol so far. however, all the AD solution should use this mode */
#if _API_CAP_GLB_MPVD_FRAME_MODE
#define _SUPPORT_AD_32BIT_BUFOFFSET 1 //jy noaudext
#else
#define _SUPPORT_AD_32BIT_BUFOFFSET 0
#endif
/* >>> @: 5010-xxx.JaeYoul_Kim 051215 */
#if _API_CAP_GLB_MPVD_FRAME_MODE
#define ADPLAY_AT_MMN 1 //jy wait
#else
#define ADPLAY_AT_MMN 0 //jy wait
#endif
#if _USE_5009||_USE_5010 // zb 060328
#define _MPVD_RESTORE_SEQ_BACKUP 1
#endif
#define _mpeg4_backup_vol_header_ 1
/****************************************************************************************
* Memory Configuration Option related with Physical memory available
* --hspark 050920
* 1: for 4M/16M 5008 China solution, reduce H/W's SDRAM usage to fit init 16M bit
* 0: if there is enough memory, we don't need to use this option
******************************************************************************************/
#if _USE_5008
#define _REDUCE_HW_MEMORY_V1 1
#else
#define _REDUCE_HW_MEMORY_V1 0
#endif
/******************************************************************************
* Set concealment level capability
*****************************************************************************/
#define _CONCEAL_MAX 0
#define _CONCEAL_MID 1
#define _CONCEAL_MIN 0
/******************************************************************************
* Set Disc Capability
*****************************************************************************/
#if _APP_CAP_NAV_DVD_AUDIO
#define _USE_DVD_AUDIO 1
#else
#define _USE_DVD_AUDIO 0
#endif
#define _USE_DVD_VR 0
/******************************************************************************
* Set descramble capability
*****************************************************************************/
#define _SUPPORT_CSS
#if _APP_CAP_NAV_DVD_AUDIO
#define _SUPPORT_CPPM
#endif
/**************************************************************************************
* SEQUENCE END CODE(MPEG4 : 0x000001B1) Inserted for MPVD by Avi_parser 2006.07.03
**************************************************************************************/
#define _SEQ_END_CODE__FORCELY_INSERTED 1
/***************************************************************
* Put DivX Internal Subtitle data by chunk //hjune byun 2006.07.06
***************************************************************/
#define DIVX_SUBTITLE_CHUNK_MODE _APP_CAP_MMP_SUPPORT_VOBSUB_SUBTITLE
//#define _SUPPORT_CPRM
/******************************************************************************
* STACK sizes for all resources are used in API
*****************************************************************************/
#define S5H_SDOUT_HISR_SIZE 3000
#define S5H_VP_CMDQ_NUM 20
#define S5H_VP_CMDQ_SIZE (sizeof(VpCmd_t))
/******************************************************************************
* To support too-various audio options,
* 1. split audio-library's dependancy from application layer.
* 2. manage another audio option definition file.
* 3. use uniform new definitions for audio.
*
* Current status :
* - prepare one for Funia BASIC model & one for common usage whose dependancy is inherited from custom_option.h.
* - add a DVS5650 spec (DVS-5010 DivX)
*
*****************************************************************************/
#if _CUSTOM_OPTION_FOR_FUNAI_
#include "SH_AUD_capability_Funai_Basic.h"
#else
#include "SH_AUD_capability.h"
#endif
#ifdef __cplusplus
}
#endif
#endif /* _SH_capability_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -