亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? viporfunc.c

?? 此為齊樂達數碼相框dpf的源代碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
#ifdef _WINDVD#ifdef VP_API_CT909  #include "..\Hio.H"#endif#ifdef VP_API_CT909P  #include "..\Hio.H"#endifextern	void _printf(char *fmt, ...);#else	#include "defs.H"#endif#ifdef VP_API_CT909//BYTE  _REG[26];BYTE  gbTrmBuf[17];#endif#ifdef VP_API_CT909P//BYTE  _REG[26];BYTE  gbTrmBuf[17];#endif#include "Viporregtable_CT675.h"#include "ViporVariable.h"#include "Vipor_API.h"#include "ViporFunc.h"#ifdef VP_API_CT908#include "Vipor_iic908.h"#endif#ifdef VP_API_CT909#include "Vipor_iic909.h"#endif#ifdef VP_API_CT909P#include "Vipor_iic909P.h"#endifBYTE u8VideoHue;BYTE u8VideoContrast;BYTE u8VideoSaturation;//#define sRGB_HDTV//#define sRGB_SDTV_Computer#ifdef SetPicture_ALLBYTE Temperature_Adjust[][3] =#elseBYTE code Temperature_Adjust[][3] =#endif{	{ 0x80, 0x80, 0x80 }, //R G B Gain  0 ... 128 ... 255	{ 0x80, 0x80, 0x80 }  //R G B Offset  0 ... 128 ... 255};	//DWORD __dwVersionTFT;#define     TFT_SW_VERSION          (112L)#define     TFT_PANEL_VERSION    (0)#define     TFT_PANEL_MINOR_VERSION    (0)extern DWORD __dwVersionTFT;  extern WORD ViporSin(BYTE bval);   extern WORD ViporCos(BYTE bval);extern WORD VPAddSize(WORD para1,WORD para2);#ifdef VP_API_CT909BYTE gbTrmBuf[17];#endifWORD wval;BYTE Vipor_BATTERY_State (void){	Vipor_SC_Write_Byte(0x07,Vipor_SC_Read_Byte(0x07) & 0xF7); //Enable SAR  Vipor_SC_Write_Byte(0x0E,Vipor_SC_Read_Byte(0x0E) & 0x08); //Disable SAR Trigger Enable select ADC0  Vipor_SC_Write_Byte(0x0E,Vipor_SC_Read_Byte(0x0E)|0x04); //Enable SAR Trigger   if (Vipor_SC_Read_Byte(0x0E) && 0x08) //Check if Filish   return Vipor_SC_Read_Byte(0x0F);  else return 0; }//set CVBS(video format)'s videomode PALvoid Vipor_SetVideo_CVBS_PAL(void){	Vipor_WriteRegister(Vipor_CVBS_PAL_Register);	SoftResetMvdSync();}//set CVBS(video format)'s videomode NTSCvoid Vipor_SetVideo_CVBS_NTSC(void){	printf("CVBS_NTSC");	Vipor_WriteRegister(Vipor_CVBS_NTSC_Register);	SoftResetMvdSync();}//set SVIDEO(video format)'s videomode PALvoid Vipor_SetVideo_SVIDEO_PAL(void){	Vipor_WriteRegister(Vipor_SVIDEO_PAL_Register);	SoftResetMvdSync();}//set SVIDEO(video format)'s videomode NTSCvoid Vipor_SetVideo_SVIDEO_NTSC(void){	Vipor_WriteRegister(Vipor_SVIDEO_NTSC_Register); //Jeff 20060313 modify	SoftResetMvdSync();}//Set video aspect ratio 4:3void Vipor_SetAspect_4_3(void){	Vipor_WriteRegister(Vipor_4_3_Register);}//Set video aspect ratio 16:9 void Vipor_SetAspect_16_9(void){	Vipor_WriteRegister(Vipor_16_9_Register);}void Vipor_SetAspect_4_3_CVBS(void){	Vipor_WriteRegister(Vipor_CVBS_4_3_Register);}//Set video aspect ratio 16:9 void Vipor_SetAspect_16_9_CVBS(void){	Vipor_WriteRegister(Vipor_CVBS_16_9_Register);}//Set picture Brightness//bBriValue: brightness valueBYTE code Vipor_BrightnessXferTable[]=//  0     1     2     3     4     5     6     7     8     9    10    11    12    13    14    15{0x90, 0xA0, 0xB0, 0xC0, 0xD0, 0xE0, 0xF0, 0x00, 0x10, 0x20, 0x30, 0x40, 0x50, 0x60, 0x70 ,0x7F };// -8    -7    -6    -5    -4    -3    -2    -1     0    +1    +2    +3    +4    +5    +6    +7#ifdef VP_API_CT908#pragma NOAREGS //may be called by ISR  // KCHong, 20060717#endifvoid Vipor_SetPicture_Brightness(BYTE bBriValue){	//printf("Brightness = %hx\n",Vipor_BrightnessXferTable[bBriValue >> 4]);	Vipor_SC_Write_Byte(0xE1, Vipor_BrightnessXferTable[bBriValue >> 4]);}//Set picture Contrast#ifdef VP_API_CT908#pragma NOAREGS //may be called by ISR  // KCHong, 20060717#endif //may be called by ISR  // KCHong, 20060717void Vipor_SetPicture_Contrast(BYTE bConValue){ u8VideoHue = 128; u8VideoContrast = bConValue; ViporBCAdjust();}#ifdef SetPicture_ALL#ifdef VP_API_CT908#pragma NOAREGS //may be called by ISR  // KCHong, 20060717#endifvoid Vipor_SetPicture_ALL(void){	extern BYTE _bLEVEL_TABLE[];	Vipor_SC_Write_Byte(0xE1, _bLEVEL_TABLE[0]);	u8VideoContrast = _bLEVEL_TABLE[1];  u8VideoHue = _bLEVEL_TABLE[2];  u8VideoSaturation = _bLEVEL_TABLE[3];  Temperature_Adjust[0][0] = _bLEVEL_TABLE[4];  Temperature_Adjust[0][1] = _bLEVEL_TABLE[5];  Temperature_Adjust[0][2] = _bLEVEL_TABLE[6];  Temperature_Adjust[1][0] = _bLEVEL_TABLE[7];  Temperature_Adjust[1][1] = _bLEVEL_TABLE[8];  Temperature_Adjust[1][2] = _bLEVEL_TABLE[9];  ViporBCAdjust();}#endif //SetPicture_ALL#ifdef VP_API_CT908#pragma NOAREGS //may be called by ISR  // KCHong, 20060717#endif //may be called by ISR  // KCHong, 20060717void Vipor_SetPicture_Saturation(BYTE bSatValue){ u8VideoHue = 128; u8VideoSaturation = bSatValue; ViporBCAdjust();}//judge NTSC(video mode) color if Burst\locked//output: TRUE\FALSEBOOL Vipor_NTSC_GetColorBurstLocked(void){#define fNoColorBurst __bViporTemp5//	BOOL fNoColorBurst;	fNoColorBurst = Vipor_VD_Read_Byte(0x3B) & 0x08;	if((Vipor_VD_Read_Byte(0x3A) & 0x08) == 0x08)	{		return TRUE;		// Video Color Locked	}	if(fNoColorBurst)	{		gbTrmBuf[0] = Vipor_VD_Read_Byte(0x00);		Vipor_VD_Write_Byte(0x00, (gbTrmBuf[0] & 0x01));		Vipor_VD_Write_Byte(0x03, 0x00);		Vipor_WriteRegister(rVideoReg18_60[0]);		return TRUE;	}	return FALSE;#undef fNoColorBurst}//for NTSC(video mode) subsystem//bVideoSubSystem:	NTSC_M, PAL_443, NTSC_443,void Vipor_NTSC_VideoSubSystem(BYTE bVideoSubSystem){	Vipor_VD_Write_Byte(0xB2, 0x40);	Vipor_WriteRegister(rVideoReg18_60[bVideoSubSystem]);	gbTrmBuf[0] = Vipor_VD_Read_Byte(0x00);	switch( bVideoSubSystem )	{		case 1: // PAL 4.43 - 60Hz			Vipor_VD_Write_Byte(0x00, gbTrmBuf[0]|0x04);			Vipor_VD_Write_Byte(0x03, 0x1E);			break;		case 2: // NTSC 4.43 - 60Hz			Vipor_VD_Write_Byte(0x00,gbTrmBuf[0]&0x01);			Vipor_VD_Write_Byte(0x03,0x86);			break;		case 0: // NTSC M		default:			Vipor_VD_Write_Byte(0x00,gbTrmBuf[0]&0x01);			Vipor_VD_Write_Byte(0x03,0x00);			break;	}}//judge PAL(video mode) color if Burst\locked//output: TRUE\FALSEBOOL Vipor_PAL_GetColorBurstLocked(BYTE bVideoSubSystem){#define fNoColorBurst2  __bViporTemp6//	BOOL fNoColorBurst;	fNoColorBurst2 = Vipor_VD_Read_Byte(0x3B) & 0x08;	gbTrmBuf[0] = Vipor_VD_Read_Byte(0x3C);	if(bVideoSubSystem <= 1)   // 0 for PAL-B,G,D,K,I,N   1 for PAL-CN	{		if((gbTrmBuf[0] & 0x05) == 0x05) 			return TRUE;	}	else  // (bVideoSubSystem == 2)	{		if((gbTrmBuf[0] & 0x07) == 0x06) 			return TRUE;	}	if(fNoColorBurst2)	{		gbTrmBuf[0] = (Vipor_VD_Read_Byte(0x00) & 0x01) | 0x32;		Vipor_VD_Write_Byte(0x00, gbTrmBuf[0]);		gbTrmBuf[0] = (Vipor_VD_Read_Byte(0x01) & 0x40) | 0x88;		Vipor_VD_Write_Byte(0x01, gbTrmBuf[0]);		Vipor_VD_Write_Byte(0x2C, 0x32);		Vipor_VD_Write_Byte(0x2D, 0x46);		Vipor_VD_Write_Byte(0x2E,0x90);		Vipor_WriteRegister(rVideoReg18_50[0]);		return TRUE;	}	return FALSE;#undef fNoColorBurst2	}//for PAL(video mode) subsystem//bVideoSubSystem:	PAL_BGDHI, PAL_N, SECAMvoid Vipor_PAL_VideoSubSystem(BYTE bVideoSubSystem){	Vipor_VD_Write_Byte(0xB2, 0x40);	Vipor_WriteRegister(rVideoReg18_50[bVideoSubSystem]);	gbTrmBuf[0] = Vipor_VD_Read_Byte(0x00);	gbTrmBuf[1] = Vipor_VD_Read_Byte(0x01);	switch( bVideoSubSystem )	{		case 1: // PAL N			Vipor_VD_Write_Byte(0x00, (gbTrmBuf[0] | 0x36));			Vipor_VD_Write_Byte(0x01, (gbTrmBuf[1] & 0xFE));			Vipor_VD_Write_Byte(0x2C, 0x32);			Vipor_VD_Write_Byte(0x2D, 0x46);			Vipor_VD_Write_Byte(0x2E, 0x90);			Vipor_VD_Write_Byte(0xB5, 0x80);			break;		case 2: // SECAM			Vipor_VD_Write_Byte(0x00,  (gbTrmBuf[0] | 0x38));			Vipor_VD_Write_Byte(0x01, ((gbTrmBuf[1] & 0x40) | 0x03));			Vipor_VD_Write_Byte(0x2C, 0x32);			Vipor_VD_Write_Byte(0x2D, 0x6E);			Vipor_VD_Write_Byte(0x2E, 0x90);			Vipor_VD_Write_Byte(0xB5, 0x03);			break;		case 0: // PAL BGDHI		default:			Vipor_VD_Write_Byte(0x00,  (gbTrmBuf[0] | 0x32));			Vipor_VD_Write_Byte(0x01, ((gbTrmBuf[1] & 0x40) | 0x08));			Vipor_VD_Write_Byte(0x2C, 0x32);			Vipor_VD_Write_Byte(0x2D, 0x46);			Vipor_VD_Write_Byte(0x2E, 0x90);			Vipor_VD_Write_Byte(0xB5, 0x80);			break;	}}//judge video if locked//output: TRUE/FALSEBYTE Vipor_GetVideoLocked(void){
	gbTrmBuf[0] = Vipor_VD_Read_Byte(0x10);	// 0x10 MVD_STATUS0
	//  1xx0xxxx bit7=1-->Hsync Lock , bit4=0-->Signal Lock
	if ((gbTrmBuf[0] & 0x90) == 0x80)	return TRUE;	// Locked
	else	    	 return FALSE;	// Unlock}//get video mode//output: EN_VID_MODE_PAL/EN_VID_MODE_NTSCBYTE Vipor_GetVideoMode(void){	gbTrmBuf[0] = Vipor_VD_Read_Byte(0x10);	// 0x10 MVD_STATUS0
	if ((gbTrmBuf[0] & 0x07) == 0x02)	return EN_VID_MODE_PAL;
	else	 return EN_VID_MODE_NTSC;}void Vipor_SetPowerDown(void){#define u8Value  __bViporTemp6	printf("Vipor_SetPowerDown");       u8Value  = Vipor_SC_Read_Byte(0x07)  | 0x10;       VP_IIC_Write(0xF4, 0x07, u8Value);//       VP_IIC_Write(0xF4, 0x28, 0x04);//       VP_IIC_Write(0xF4, 0x25, 0x04);   #undef u8Value  }   void Vipor_SetPowerON(void){#define u8Value  __bViporTemp6	printf("Vipor_SetPowerON");       u8Value  = Vipor_SC_Read_Byte(0x07) & 0xEF;       VP_IIC_Write(0xF4, 0x07, u8Value);//       VP_IIC_Write(0xF4, 0x28, 0x04);//       VP_IIC_Write(0xF4, 0x25, 0x04);#undef u8Value  }     #ifdef LED_BackLight#ifdef VP_API_CT908#pragma NOAREGS#endifvoid Vipor_SetBlackLight_ON(void){	 printf("BackLight_ON\n");    Vipor_WriteRegister(Vipor_LED_BackLight_ON);}#ifdef VP_API_CT908#pragma NOAREGS#endifvoid Vipor_SetBlackLight_OFF(void){	  printf("BackLight_OFF\n");

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产清纯白嫩初高生在线观看91 | 99在线视频精品| 美女视频一区在线观看| 天天影视涩香欲综合网| 亚洲一二三四久久| 亚洲一区二区三区四区在线| 亚洲色图欧美在线| 一区二区三区丝袜| 午夜日韩在线电影| 麻豆精品一区二区三区| 国产一区啦啦啦在线观看| 精品一区二区在线视频| 国产一区二区三区免费看| 国产不卡视频一区| aaa亚洲精品| 在线观看亚洲精品视频| 在线播放亚洲一区| 久久嫩草精品久久久精品一| 国产精品欧美一区二区三区| 亚洲品质自拍视频| 男人的j进女人的j一区| 国产成人自拍网| 在线观看一区日韩| 久久无码av三级| 亚洲欧美一区二区不卡| 日韩国产在线一| 国产精品亚洲专一区二区三区| 成人国产精品免费| 欧美日韩精品欧美日韩精品 | 亚洲视频一区在线| 无码av免费一区二区三区试看| 久久精品国产亚洲aⅴ | 亚洲成人综合在线| 激情另类小说区图片区视频区| 成人三级在线视频| 3751色影院一区二区三区| 久久久久高清精品| 夜夜精品视频一区二区| 国内精品免费**视频| 色国产精品一区在线观看| 精品久久久久99| 有坂深雪av一区二区精品| 美女被吸乳得到大胸91| 色婷婷激情一区二区三区| 欧美tickling网站挠脚心| 亚洲男人的天堂网| 久久66热re国产| 色婷婷久久久综合中文字幕 | 日韩一区欧美小说| 九色综合狠狠综合久久| 色婷婷香蕉在线一区二区| 久久久综合精品| 日本午夜一区二区| 欧美中文字幕不卡| 国产精品视频线看| 久久精品国产99久久6| 91首页免费视频| 国产精品美女www爽爽爽| 九九在线精品视频| 欧美精品久久久久久久多人混战| 中文字幕一区二区视频| 国产麻豆午夜三级精品| 欧美一区二区三区小说| 亚洲一区二区三区四区五区中文| 91香蕉视频黄| 国产精品久久久久久一区二区三区 | 91玉足脚交白嫩脚丫在线播放| 日韩精品一区二区三区四区| 视频一区视频二区在线观看| 欧美色图激情小说| 亚洲午夜一区二区| 日本大香伊一区二区三区| 中文字幕一区在线观看视频| av在线不卡观看免费观看| 中文字幕av一区 二区| 成人精品国产福利| 国产欧美一区二区精品性色超碰| 国产综合久久久久久鬼色| 久久亚洲一区二区三区四区| 狠狠色综合色综合网络| 国产三级欧美三级日产三级99| 国产91富婆露脸刺激对白| 中文字幕一区二区三区四区不卡| 91色婷婷久久久久合中文| 亚洲一区二区三区视频在线| 欧美日韩在线播放一区| 蜜桃视频一区二区三区在线观看| 日韩午夜精品电影| 国产精品一区二区在线观看不卡 | 欧美三日本三级三级在线播放| 一区二区三区中文字幕精品精品| 91麻豆高清视频| 天堂av在线一区| 久久青草国产手机看片福利盒子| 成人一区二区三区| 亚洲国产日韩精品| 精品久久久久久无| 99麻豆久久久国产精品免费| 一区二区激情视频| 日韩一区二区三区精品视频| 国产乱码精品一区二区三区五月婷| 国产欧美日韩一区二区三区在线观看| eeuss国产一区二区三区| 亚洲一区影音先锋| 久久人人爽人人爽| 91久久精品国产91性色tv| 男女男精品视频| 成人免费在线观看入口| 日韩一区二区三区视频在线观看| 国产乱子轮精品视频| 亚洲一级在线观看| 久久久久久久精| 欧美日韩激情一区二区三区| 国产一区二区美女诱惑| 亚洲一区二区三区爽爽爽爽爽| 26uuu亚洲| 欧美日韩在线播放一区| 成人网在线播放| 美女一区二区久久| 亚洲激情一二三区| 国产视频一区不卡| 日韩欧美资源站| 欧美亚洲一区三区| 成人短视频下载| 紧缚捆绑精品一区二区| 亚洲一区在线观看免费 | 亚洲成人免费视频| 久久综合九色综合欧美就去吻| 色综合夜色一区| 国产老女人精品毛片久久| 亚洲与欧洲av电影| 激情综合色综合久久| 懂色av中文字幕一区二区三区 | 久久99久久99| 国产99久久久国产精品| 色综合网站在线| 91精品在线免费| 久久伊99综合婷婷久久伊| 久久精品人人爽人人爽| 亚洲人一二三区| 亚洲成人你懂的| 国产精品伊人色| 91蜜桃免费观看视频| 欧美肥胖老妇做爰| 337p日本欧洲亚洲大胆色噜噜| 中文字幕欧美激情一区| 夜夜嗨av一区二区三区网页| 日日嗨av一区二区三区四区| 国产成人免费在线| 精品视频123区在线观看| 国产亚洲精品bt天堂精选| 伊人一区二区三区| 国产真实乱对白精彩久久| 欧美亚洲国产怡红院影院| 欧美精品一区二区久久婷婷| 一区二区三区av电影| 韩国精品久久久| 欧美日韩一卡二卡三卡 | 亚洲一区二区三区四区中文字幕| 国产在线视频一区二区| 欧美吞精做爰啪啪高潮| 欧美国产激情二区三区| 天天做天天摸天天爽国产一区| 国产一区欧美日韩| 欧美一区二区视频网站| 亚洲欧美aⅴ...| 国产一区日韩二区欧美三区| 欧美精品粉嫩高潮一区二区| 日韩毛片一二三区| 国产精品一区三区| 日韩久久久久久| 亚洲va欧美va人人爽| 91麻豆国产在线观看| 久久精品欧美一区二区三区麻豆| 欧美aaa在线| 欧美日韩一区二区三区视频| 中文字幕中文字幕在线一区| 久久精品免费观看| 欧美一区二区三区啪啪| 亚洲午夜久久久久久久久电影网| 成人av在线看| 日本一区二区成人在线| 黑人精品欧美一区二区蜜桃 | 五月激情六月综合| 色哟哟欧美精品| 一色桃子久久精品亚洲| 成人天堂资源www在线| 国产日韩精品久久久| 韩国成人在线视频| 日韩欧美在线网站| 日韩电影一区二区三区| 欧美色大人视频| 午夜国产精品一区| 欧美高清视频www夜色资源网| 亚洲国产精品久久人人爱蜜臀| 欧美亚洲综合久久| 亚洲一级二级三级| 欧美裸体一区二区三区| 亚洲国产日韩a在线播放性色| 欧美日韩精品电影|