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

📄 m2vd_define.h

📁 SAMSUNG 5009的源代码
💻 H
字号:
/******************************************************************************
 *   Filename    : M2vd_define.h
 *   Start       : 2005.1.15
 *   By          : Inseo Han
 *   Contact     : ishan@samsung.com
 *   Description : 
 ******************************************************************************
 */ 

#ifndef _M2VD_DEFINE_H_
#define _M2VD_DEFINE_H_


#ifdef __cplusplus
extern "C" {
#endif


#if _USE_5005 || _USE_5015
/* Enable FIQ to prevent the M2VD ISR from delaying */
#define _M2VD_USE_FIQ					1
#else
#define _M2VD_USE_FIQ					0
#endif


/*
	Temporary decrease size of hisr stack. by CKLee. 2005.04.25
*/
#define M2VD_HISR_STACK_SIZE_CMD_READY			800//1600
#define M2VD_HISR_STACK_SIZE_SET_ERROR			800//1600

/*************************************************************
  * 	M2VD Video show level for corrupted video
  *	
  *	- M2VD_SHOW_ALL_CORRUPTED : show all the corrupted videos
  *	- M2VD_SHOW_NO_CORRUPTED : show only uncorrupted videos
  *************************************************************/
#define M2VD_SHOW_ALL_CORRUPTED			0
#define M2VD_SHOW_NO_CORRUPTED			1

#define _M2VD_SHOW_LEVEL	M2VD_SHOW_NO_CORRUPTED


/*************************************************************
  * 		Threshold of the concealed MB 
  *************************************************************/
/* The threshold of the concealed macroblocks (1~2047) */
#define M2VD_MIN_THRESHOLD_CONCEALED_MB	1
#define M2VD_MAX_THRESHOLD_CONCEALED_MB	2047


/* Set the relative show level according to the pic size.
    If disabled, set the show level constant regardless of the pic size
    (20050828,ishan) */
#define _M2VD_USE_SHOW_LEVEL_RELATIVE           0

#if _M2VD_USE_SHOW_LEVEL_RELATIVE
/* 
    Show level ratio that the percentage of concealed MB 
*/
#define M2VD_THRESHOLD_CONCEALED_MB_RATIO           100 
#define M2VD_THRESHOLD_CONCEALED_MB_DEFAULT 		700 
#else
//#define M2VD_THRESHOLD_CONCEALED_MB		M2VD_MAX_THRESHOLD_CONCEALED_MB
// As request of Lee JH, change to 700
#define M2VD_THRESHOLD_CONCEALED_MB		700 //10
#endif


/*************************************************************
  * 	How to handle the scrambled video stream (CVD)
  *	
  *	- TRUE : Show all the videos regardless of corrupted amount
  *	- FALSE : Follow _M2VD_SHOW_LEVEL
  *************************************************************/
#define _M2VD_SHOW_CVD_ALL					1

/*************************************************************
  * 	Notification (NOTIFY_VD_CONTINUOUS_ERROR) 
  * when the dec error happens continously
  *	
  *   - TRUE : Enable the notification
  *	- FALSE : Disable the notification
  *************************************************************/
#define _M2VD_NOTIFY_CONT_DEC_ERR					0


/* The threshold to notify the dec error */
#define M2VD_THR_RESET_ERR_COUNT					30
/* The threshold to reset the dec error count */
#define M2VD_THR_NOTIFY_CONT_DEC_ERR				10




/*************************************************************
  *
  * 	Fill the corrupted MB with the black, not with the previous reference pic
  *   at the first I picture after stop.
  *
  *   This fix the problem that the part of logo is shown at the first pic
  *	when playing the scratch disc.
  *   (20050909, ishan) 
  *
  *************************************************************/

/* Block concealment type */
#define M2VD_NO_BLACK_CONCEAL					0  
#define M2VD_SW_BLACK_CONCEAL				1
#define M2VD_HW_BLACK_CONCEAL				2


#if _USE_5005 || _USE_5015
#define _M2VD_CONCEAL_TYPE	M2VD_HW_BLACK_CONCEAL
#else
#define _M2VD_CONCEAL_TYPE	M2VD_SW_BLACK_CONCEAL
#endif


#if _USE_VIDEO_RECOMP
/* If recomp mode is enabled, SW black conceal cannot be used (20051214,ishan) */
#if (_M2VD_CONCEAL_TYPE == M2VD_SW_BLACK_CONCEAL)
#undef _M2VD_CONCEAL_TYPE
#define _M2VD_CONCEAL_TYPE	M2VD_NO_BLACK_CONCEAL
#endif
#endif




/*************************************************************
 *	When to release input nodes when the cmd_ready happens
 *
 *	- TRUE : Release after order and dec
 *	- FALSE : Release before order and dec
  *************************************************************/
#if _USE_5005 || _USE_5015
#define _M2VD_REL_INPUT_LATER							1
#else
#define _M2VD_REL_INPUT_LATER							0
#endif



#ifdef __cplusplus
}
#endif


#endif

⌨️ 快捷键说明

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