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

📄 sh_pp_api.h

📁 SAMSUNG 5009的源代码
💻 H
字号:
#ifndef _SH_PP_API_H_
#define _SH_PP_API_H_

	/** 
 	  ** 		NOTE : For any kind of Frame buffer to make the JPEG PP 
  	  **				work please do take care of these Macros.
  	  **				There will be no need to change the PP source 
  	  **				to support the buffer. Just changing the macros will do.
  	  **/

/* 
 *	FB_VERTICAL_SPLIT
 *	This configures if repeat of one Macroblock has to be done 
 *		0	- 	S5L5008
 *		1	-	S5H5002, S5L5000, S5L5001
 */
#if (_USE_5008 || _USE_5005 || _USE_5015)
#define 	FB_VERTICAL_SPLIT							0
#elif (_USE_3200)
#define 	FB_VERTICAL_SPLIT							1
#else
#define 	FB_VERTICAL_SPLIT							1
#endif


/* Number of Blocks 
 *	No. Blocks = Left + Right
 *		1 	- 	S5L5008
 *		2 	- 	S5L5000, S5L5001, S5H5002
 */
#define 	FB_NO_BLOCKS								( ( FB_VERTICAL_SPLIT == 1 ) ? 2 : 1 )

/** 
  ** Usually no changes in the below 
  **/
/*	Number of Fields 
 *		2 	- 	S5L5000, S5L5001, S5H5008
 *		4 	-	S5L5002 
 */
#define 	FB_NO_FIELDS								2

/*
 * Width and Half of the Frame Buffer
 *	If the Frame buffer is split into 2 Blocks, the whole width is 1024
 *	else it is whole Image width 720.
 *	Since the buffer is not split into 2 the half width is 0.
 */
#define FB_BUFFER_WIDTH							( ( FB_VERTICAL_SPLIT == 1 ) ? 1024 : 720 )

/* Only if the Filed is Split */
#if _USE_3200
#define FB_FRAME_BUFFER_HALF_WIDTH				352
#else
#define FB_FRAME_BUFFER_HALF_WIDTH				( ( FB_VERTICAL_SPLIT == 1 ) ? 512 : 352 )
#endif

#define FB_FIELD_LBLOCK_SIZE_PP					368
#define FB_FIELD_RBLOCK_SIZE_PP					352

#define FB_START_OF_Y_PTR_PP					0x0

/* if PAL mode then the end of the frame buffer end pointer is 1152 else 960 */
#define FB_END_OF_Y_PTR_PP(X)					( ( X == OUTPUT_625_50 ) ? 1152 : 960 )
#define FB_NUMBER_OF_PTRS_PP(X)					( ( X == OUTPUT_625_50 ) ? 1728 : 1440 )
#define FB_START_OF_C_PTR_PP					FB_END_OF_Y_PTR_PP
#define FB_END_OF_C_PTR_PP						FB_NUMBER_OF_PTRS_PP

#define FB_FIND_X_TO_CENTER(__X__)				((720-__X__)/2)
#define FB_FIND_Y_TO_CENTER_PAL(__Y__)			((576-__Y__)/2 )
#define FB_FIND_Y_TO_CENTER_NTSC(__Y__)			((480-__Y__)/2 )
#define	FB_IMG_HEIGHT(X)							( ( X == OUTPUT_625_50 ) ? 576 : 480  )
#define	FB_IMG_WIDTH								720
#define FB_IMG_ZOOM_X_CENTER						360
#define FB_IMG_ZOOM_Y_CENTER(X)						((X == OUTPUT_625_50) ? 288 : 240 )

#endif

⌨️ 快捷键说明

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