📄 mxrsub.c
字号:
/********************************************************************************/
/*!
@file mxrsub.c
@brief 俵倃俼摦嶌帪偺旝挷惍梡娭悢
@version $Revision: 2.00 $
@date 2007/XX/XX
@author Matsushita Electronics Co.,Ltd.
*/
/********************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <itron.h>
#include <kernel.h>
#include <kernel_id.h>
#include "..\gerda_dd\include\gerda_dd.h"
#include "..\gerda_dd\include\dd_sys.h"
#include "..\gerda_dd\include\gerda_reg.h"
#include "..\gerda_dd\dsp\dst_ram.h"
#include "..\gerda_dd\dsp\ini_def.h"
#include "..\texture\texdata.h"
#include "systype.h"
#include "sr103se60pub.h"
#include "option.h"
#include "if_cmd.h"
#include "if_mxr.h"
#include "if_txtid.h"
#include "parameter.h"
#include "dd_param.h"
#include "dspctrl.h"
/********************************************************************/
/* 儅僋儘掕媊 */
/********************************************************************/
#if 1 /* @006s6[08/01/13] */
#define ARTWORK_WIDTH 160
#define ARTWORK_HEIGHT 120
#endif /* @006s6[08/01/13] */
#if 1 /* @016s3[08/02/29] */
#define BMP_ADR_OFFSET 0x40000000
#endif /* @016s3[08/02/29] */
/********************************************************************/
/* 娭悢愰尵 */
/********************************************************************/
#if 1 /* @006s6[08/01/13] */
int GetBitmapDataPointer(int castNo, void** lplpBitmap, void** lplpPalette);
#endif /* @006s6[08/01/13] */
/********************************************************************/
/* 奜晹曄悢愰尵 */
/********************************************************************/
extern UCHAR ucDSP_mode; /* 儌乕僪曄悢 */
/********************************************************************/
/* 曄悢愰尵 */
/********************************************************************/
static UCHAR disp_sharp_bk;
static UCHAR disp_color_bk;
static UCHAR disp_tint_bk;
static UCHAR disp_contrast_bk;
static UCHAR disp_bright_bk;
/********************************************************************/
/* 儅僋儘掕悢愰尵 */
/********************************************************************/
/********************************************************************/
/* 掕悢愰尵 */
/********************************************************************/
/************************************************************************/
/*!
@fn void vMXR_sub(void)
@brief 俵倃俼摦嶌帪偺旝挷惍梡僒僽儖乕僠儞
@param 側偟
@return 側偟
@date 2007/XX/XX
*/
/************************************************************************/
void vMXR_sub(void)
{
#if 0 /* @011s6[08/01/29] */
//#if 1 /* @006s6[08/01/13] */
// ULONG i,j;
//#endif /* @006s6[08/01/13] */
#else /* @011s6[08/01/29] */
ULONG i;
#endif /* @011s6[08/01/29] */
if( ucDSP_mode == DISP_SETTING){
if( disp_sharp != disp_sharp_bk ){
vi_set_enhancer( (ULONG)disp_sharp, VI_INIT_SHP_LIMIT, VI_INIT_SHP_SELTAP );
disp_sharp_bk = disp_sharp;
}
if( (disp_tint != disp_tint_bk) ||
(disp_color != disp_color_bk) ){
vi_set_tint( (ULONG)disp_tint, (ULONG)disp_color );
disp_tint_bk = disp_tint;
disp_color_bk = disp_color;
}
if( disp_contrast != disp_contrast_bk ){
vi_set_contrast( (ULONG)disp_contrast*4 );
disp_contrast_bk = disp_contrast;
}
if( disp_bright != disp_bright_bk ){
dsp_set_brightness( (ULONG)(disp_bright>>2) );
disp_bright_bk = disp_bright;
}
}
#if 1 /* @006s6[08/01/13] */
if( debug0_flag ){
debug0_flag = 0;
/* 揮幨愭偺俛俵俹偺傾僪儗僗庢摼 bmp_adr_ptr */
GetBitmapDataPointer( (INT)debug0_idx, &bmp_adr_ptr, &bmp_plt_ptr );
/* 旕僉儍僢僔儏椞堟偱揮憲偝偣傞 */
#if 0 /* @016s3[08/02/29] */
// #if 0 /* @013s3[08/02/06] */
// // bmp_adr_ptr += 0x40000000; /* 仼堄恾僐乕僪偵側偭偰偄側偄亂巄掕亃 */
// #else /* @013s3[08/02/06] */
// bmp_adr_ptr += bmp_adr_offset; /* 僐儞僷僀儔偱俀價僢僩僔僼僩偝傟傞亂巄掕亃 */
// #endif /* @013s3[08/02/06] */
#else /* @016s3[08/02/29] */
bmp_adr_ptr = (UCHAR *)bmp_adr_ptr + BMP_ADR_OFFSET;
#endif /* @016s3[08/02/29] */
/* 揮幨尦偺俛俵俹偺傾僪儗僗庢摼 bmp_rptr */
bmp_rptr = sdram_wptr;
/* 俧倕倰倓倎乛俵倃偺巇條嵎偺堊丄嵍壓偐傜塃傊僐僺乕偡傞 */
#if 0 /* @011s6[08/01/29] */
// bmp_rptr += (ARTWORK_WIDTH*ARTWORK_HEIGHT/2) - (ARTWORK_WIDTH/2);
// for( i=0 ; i<ARTWORK_HEIGHT ; i++ ){
// /* 墶侾峴僐僺乕 */
// for( j=0 ; j<(ARTWORK_WIDTH/2) ; j++ ){
// *(bmp_adr_ptr++) = *(bmp_rptr++);
// }
// /* 揮幨尦偺俛俵俹偺傾僪儗僗抣傪嵍偵栠偟侾抜忋傊堏摦偝偣傞 */
// bmp_rptr -= ( ARTWORK_WIDTH/2*2 );
// }
#else /* @011s6[08/01/29] */
for( i=0 ; i<ARTWORK_WIDTH*ARTWORK_HEIGHT/2 ; i++ ){
*(bmp_adr_ptr++) = *(bmp_rptr++);
}
#endif /* @011s6[08/01/29] */
}
#endif /* @006s6[08/01/13] */
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -