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

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

?? gfx_drawcontrol.c.svn-base

?? sigmadesign smp8623 gui source code ,bingo
?? SVN-BASE
?? 第 1 頁 / 共 5 頁
字號:
/* * * Copyright (c) Sigma Designs, Inc. 2004. All rights reserved. * *//** @file gfx_drawlib.c @brief  Some drawing routines using the graphics accelerator @author Raul Chirinos */#define ALLOW_OS_CODE#include "../include/gfx_drawcontrol.h"#include <sys/time.h>#include <time.h>#include <stdlib.h>#if 0#define GFXDBG ENABLE#else#define GFXDBG DISABLE#endif#define TIMEOUT_US 1000000			// 1 sec#define MAX_DRAWING_BUFFER_PARTS 2		// cannot be 0 !!!#define PICTURE_DISPLAY_OFFSET	5// from gfx_drawlib.cextern GFXLib_data gdata;// localRMbitmapdata g_bitmaps[MAX_BITMAPS]; // to keep loaded bitmap(s) data (including fonts) -- background page at item 0static RMbool g_useCodePageConversion;static RMuint8 g_bitmapBufferIndex = 0;static RMuint8 g_last_palbpp = 0; // last palette set bppstatic struct GFXEngine_Palette_4BPP_type g_lastpal; // to compare some pal colors before setting new palette if same bppstatic RMcriticalsection blt_cs;static RMuint8 step_accell = 4, accell_step = 2;LIST_HEAD(listhead, task) tasks;typedef struct task{	RMascii* file;	LIST_ENTRY(task) entries;} task;static RMthread g_preload = NULL;RMcriticalsection g_cs;RMcriticalsection g_cstasks;RMbool end;RMstatus err;#define RuaSetProp(pRUA, moduleID, propertyID, pValue, ValueSize)						\	 err = RUASetProperty(pRUA, moduleID, propertyID, pValue, ValueSize, 0);		\														\	if (err != RM_OK) { 											\		RMDBGLOG((ENABLE, "Cannot set Property %d on module %d, %d\n", propertyID, moduleID, err));	\	        return err;                                                                                     \	}extern RMstatus gfxDrawHLine(struct RUA *pRua, RMuint16 x, RMuint16 y, RMuint16 length, RMuint16 thickness, RMuint32 color);void* PreloadThreadEntry(void *p);void* PreloadThreadEntry(void *p){	struct timespec time;	task* tp;	time.tv_sec = (RMuint32) 0;	time.tv_nsec = ((RMuint32) 20000000);	while (end)	{		if (tasks.lh_first)		{			RMuint8 bmpindex;			RMEnterCriticalSection(g_cstasks);			{				tp = tasks.lh_first;				LIST_REMOVE(&tasks, tp, entries);			}			RMLeaveCriticalSection(g_cstasks);			nanosleep(&time, NULL);			GetBitmapIndex(NULL, tp->file, &bmpindex, TRUE);			RFREE(tp);			tp = NULL;		}		else		{			nanosleep(&time, NULL);		}	}	return NULL;}static void AddTask(RMascii* file){	task* tp;	if (file)	{		tp = (task*) MALLOC(sizeof(task));		tp->file = file;		RMEnterCriticalSection(g_cstasks);		{			LIST_INSERT_HEAD(&tasks, tp, entries);		}		RMLeaveCriticalSection(g_cstasks);	}}RMstatus BitBlt(struct RUA *pRua){	struct GFXEngine_MoveReplaceRectangle_type replace_param;	RMEnterCriticalSection(blt_cs);	SetInputSurface(pRua, EMhwlibColorMode_TrueColor, gdata.backBuffer.baseAddr, gdata.osdWidth, GFX_SURFACE_ID_Y);	SetOutputSurface(pRua);	replace_param.SrcX = 0;	replace_param.SrcY = 0;	replace_param.DstX = 0;	replace_param.DstY = 0;	replace_param.Width = gdata.osdWidth;	replace_param.Height = gdata.osdHeight;	replace_param.AlphaX = 0;	replace_param.AlphaY = 0;	replace_param.Merge = FALSE;	while ((err = RUASetProperty(pRua, gdata.gfx, RMGFXEnginePropertyID_MoveRectangle, &replace_param, sizeof(replace_param), 0))			== RM_PENDING)		;	if (RMFAILED(err))		RMDBGLOG((ENABLE, "Error sending command move\n"));	RMLeaveCriticalSection(blt_cs);	//SetOutputSurfaceBuffer(pRua, gdata.backBuffer.baseAddr, gdata.osdWidth);	return err;}void InitPrefetch(){	LIST_INIT(&tasks);	end = TRUE;	g_cs = RMCreateCriticalSection();	g_cstasks = RMCreateCriticalSection();	g_preload = RMCreateThread("PreloadThread", PreloadThreadEntry, NULL);	blt_cs = RMCreateCriticalSection();}void ClosePrefetch(){	task* tp = NULL;	if (g_preload)	{		end = FALSE;		RMWaitForThreadToFinish(g_preload);		g_preload = NULL;	}	RMDeleteCriticalSection(g_cs);	RMDeleteCriticalSection(g_cstasks);	while (tasks.lh_first)	{		tp = tasks.lh_first;		LIST_REMOVE(&tasks, tp, entries);		RFREE(tp);		tp = NULL;	}	RMDeleteCriticalSection(blt_cs);}static inline RMstatus GFXColorFormatProperty(struct RUA *pRua, struct GFXEngine_ColorFormat_type *format_param){	RMstatus status;	struct RUAEvent evt;	RMuint8 trycount;	trycount = 2; // try command only a couple of times then jump out	tryagain: status = RUASetProperty(pRua, gdata.gfx, RMGFXEnginePropertyID_ColorFormat, format_param,			sizeof(struct GFXEngine_ColorFormat_type), 0);	if (status == RM_PENDING && trycount--)	{		evt.ModuleID = gdata.gfx;		evt.Mask = RUAEVENT_COMMANDCOMPLETION;		if (RUAWaitForMultipleEvents(pRua, &evt, 1, TIMEOUT_US, NULL) != RM_OK)			RMDBGLOG((GFXDBG, "gfxColorFormat: FAILED WAITING FOR 1 second... TIMING ISSUE?\n"));		goto tryagain;	}	return status;}static inline RMstatus GFX1BPPPaletteProperty(struct RUA *pRua, struct GFXEngine_Palette_1BPP_type *palette_param){	RMstatus status;	struct RUAEvent evt;	RMuint8 trycount;	trycount = 2; // try command only a couple of times then jump out	tryagain: status = RUASetProperty(pRua, gdata.gfx, RMGFXEnginePropertyID_Palette_1BPP, palette_param,			sizeof(struct GFXEngine_Palette_1BPP_type), 0);	if (status == RM_PENDING && trycount--)	{		evt.ModuleID = gdata.gfx;		evt.Mask = RUAEVENT_COMMANDCOMPLETION;		if (RUAWaitForMultipleEvents(pRua, &evt, 1, TIMEOUT_US, NULL) != RM_OK)			RMDBGLOG((GFXDBG, "gfx1bppPalette: FAILED WAITING FOR 1 second... TIMING ISSUE?\n"));		goto tryagain;	}	return status;}static inline RMstatus GFX2BPPPaletteProperty(struct RUA *pRua, struct GFXEngine_Palette_2BPP_type *palette_param){	RMstatus status;	struct RUAEvent evt;	RMuint8 trycount;	trycount = 2; // try command only a couple of times then jump out	tryagain: status = RUASetProperty(pRua, gdata.gfx, RMGFXEnginePropertyID_Palette_2BPP, palette_param,			sizeof(struct GFXEngine_Palette_2BPP_type), 0);	if (status == RM_PENDING && trycount--)	{		evt.ModuleID = gdata.gfx;		evt.Mask = RUAEVENT_COMMANDCOMPLETION;		if (RUAWaitForMultipleEvents(pRua, &evt, 1, TIMEOUT_US, NULL) != RM_OK)			RMDBGLOG((GFXDBG, "gfx2bppPalette: FAILED WAITING FOR 1 second... TIMING ISSUE?\n"));		goto tryagain;	}	return status;}static inline RMstatus GFX4BPPPaletteProperty(struct RUA *pRua, struct GFXEngine_Palette_4BPP_type *palette_param){	RMstatus status;	struct RUAEvent evt;	RMuint8 trycount;	trycount = 2; // try command only a couple of times then jump out	tryagain: status = RUASetProperty(pRua, gdata.gfx, RMGFXEnginePropertyID_Palette_4BPP, palette_param,			sizeof(struct GFXEngine_Palette_4BPP_type), 0);	if (status == RM_PENDING && trycount--)	{		evt.ModuleID = gdata.gfx;		evt.Mask = RUAEVENT_COMMANDCOMPLETION;		if (RUAWaitForMultipleEvents(pRua, &evt, 1, TIMEOUT_US, NULL) != RM_OK)			RMDBGLOG((GFXDBG, "gfx4bppPalette: FAILED WAITING FOR 1 second... TIMING ISSUE?\n"));		goto tryagain;	}	return status;}static inline RMstatus GFX8BPPPaletteProperty(struct RUA *pRua, struct GFXEngine_Palette_8BPP_type *palette_param){	RMstatus status;	struct RUAEvent evt;	RMuint8 trycount;	trycount = 2; // try command only a couple of times then jump out	tryagain: status = RUASetProperty(pRua, gdata.gfx, RMGFXEnginePropertyID_Palette_8BPP, palette_param,			sizeof(struct GFXEngine_Palette_8BPP_type), 0);	if (status == RM_PENDING && trycount--)	{		evt.ModuleID = gdata.gfx;		evt.Mask = RUAEVENT_COMMANDCOMPLETION;		if (RUAWaitForMultipleEvents(pRua, &evt, 1, TIMEOUT_US, NULL) != RM_OK)			RMDBGLOG((GFXDBG, "gfx8bppPalette: FAILED WAITING FOR 1 second... TIMING ISSUE?\n"));		goto tryagain;	}	return status;}static inline RMstatus GFXSurfaceProperty(struct RUA *pRua, struct GFXEngine_Surface_type *surface_param){	RMstatus status;	struct RUAEvent evt;	RMuint8 trycount;	trycount = 2; // try command only a couple of times then jump out	tryagain: status = RUASetProperty(pRua, gdata.gfx, RMGFXEnginePropertyID_Surface, surface_param,			sizeof(struct GFXEngine_Surface_type), 0);	if (status == RM_PENDING && trycount--)	{		evt.ModuleID = gdata.gfx;		evt.Mask = RUAEVENT_COMMANDCOMPLETION;		if (RUAWaitForMultipleEvents(pRua, &evt, 1, TIMEOUT_US, NULL) != RM_OK)			RMDBGLOG((GFXDBG, "gfxSurface: FAILED WAITING FOR 1 second... TIMING ISSUE?\n"));		goto tryagain;	}	return status;}static inline RMstatus GFXFillRectangleProperty(struct RUA *pRua, struct GFXEngine_FillRectangle_type *fill_param){	RMstatus status;	struct RUAEvent evt;	RMuint8 trycount;	trycount = 2; // try command only a couple of times then jump out	tryagain: status = RUASetProperty(pRua, gdata.gfx, RMGFXEnginePropertyID_FillRectangle, fill_param,			sizeof(struct GFXEngine_FillRectangle_type), 0);	if (status == RM_PENDING && trycount--)	{		evt.ModuleID = gdata.gfx;		evt.Mask = RUAEVENT_COMMANDCOMPLETION;		if (RUAWaitForMultipleEvents(pRua, &evt, 1, TIMEOUT_US, NULL) != RM_OK)		{			RMDBGLOG((GFXDBG, "gfxFill: FAILED WAITING FOR 1 second... TIMING ISSUE?"));		}		goto tryagain;	}	return status;}static inline RMstatus GFXMoveRectangleProperty(struct RUA *pRua, struct GFXEngine_MoveReplaceRectangle_type *move_param){	RMstatus status;	struct RUAEvent evt;	RMuint8 trycount;	trycount = 2; // try command only a couple of times then jump out	tryagain: status = RUASetProperty(pRua, gdata.gfx, RMGFXEnginePropertyID_MoveRectangle, move_param,			sizeof(struct GFXEngine_MoveReplaceRectangle_type), 0);	if (status == RM_PENDING && trycount--)	{		evt.ModuleID = gdata.gfx;		evt.Mask = RUAEVENT_COMMANDCOMPLETION;		if (RUAWaitForMultipleEvents(pRua, &evt, 1, TIMEOUT_US, NULL) != RM_OK)		{			RMDBGLOG((GFXDBG, "gfxReplace: FAILED WAITING FOR 1 second... TIMING ISSUE?\n"));		}		goto tryagain;	}	return status;}static inline RMstatus GFXReplaceRectangleProperty(struct RUA *pRua, struct GFXEngine_MoveReplaceRectangle_type *move_param){	RMstatus status;	struct RUAEvent evt;	RMuint8 trycount;	trycount = 2; // try command only a couple of times then jump out	tryagain: status = RUASetProperty(pRua, gdata.gfx, RMGFXEnginePropertyID_ReplaceRectangle, move_param,			sizeof(struct GFXEngine_MoveReplaceRectangle_type), 0);	if (status == RM_PENDING && trycount--)	{		evt.ModuleID = gdata.gfx;		evt.Mask = RUAEVENT_COMMANDCOMPLETION;		if (RUAWaitForMultipleEvents(pRua, &evt, 1, TIMEOUT_US, NULL) != RM_OK)		{			RMDBGLOG((GFXDBG, "gfxReplace: FAILED WAITING FOR 1 second... TIMING ISSUE?\n"));		}		goto tryagain;	}	return status;}static inline RMstatus GFXReplaceAndScaleRectangleProperty(struct RUA *pRua,		struct GFXEngine_MoveReplaceScaleRectangle_type *move_param){	RMstatus status;	struct RUAEvent evt;	RMuint8 trycount;	trycount = 2; // try command only a couple of times then jump out	tryagain: status = RUASetProperty(pRua, gdata.gfx, RMGFXEnginePropertyID_ReplaceAndScaleRectangle, move_param,			sizeof(struct GFXEngine_MoveReplaceScaleRectangle_type), 0);	if (status == RM_PENDING && trycount--)	{		evt.ModuleID = gdata.gfx;		evt.Mask = RUAEVENT_COMMANDCOMPLETION;		if (RUAWaitForMultipleEvents(pRua, &evt, 1, TIMEOUT_US, NULL) != RM_OK)		{			RMDBGLOG((GFXDBG, "gfxReplaceAndScale: FAILED WAITING FOR 1 second... TIMING ISSUE?\n"));		}		goto tryagain;	}	return status;}static inline RMstatus GFXMoveAndScaleRectangleProperty(struct RUA *pRua, struct GFXEngine_MoveReplaceScaleRectangle_type *move_param){	RMstatus status;	struct RUAEvent evt;	RMuint8 trycount;	trycount = 2; // try command only a couple of times then jump out	tryagain: status = RUASetProperty(pRua, gdata.gfx, RMGFXEnginePropertyID_MoveAndScaleRectangle, move_param,			sizeof(struct GFXEngine_MoveReplaceScaleRectangle_type), 0);	if (status == RM_PENDING && trycount--)	{		evt.ModuleID = gdata.gfx;		evt.Mask = RUAEVENT_COMMANDCOMPLETION;		if (RUAWaitForMultipleEvents(pRua, &evt, 1, TIMEOUT_US, NULL) != RM_OK)		{			RMDBGLOG((GFXDBG, "gfxMoveAndScale: FAILED WAITING FOR 1 second... TIMING ISSUE?\n"));		}		goto tryagain;	}	return status;}static inline RMstatus GFXBlendRectanglesProperty(struct RUA *pRua, struct GFXEngine_BlendRectangles_type *blend_param){	RMstatus status;	struct RUAEvent evt;	RMuint8 trycount;	trycount = 2; // try command only a couple of times then jump out	tryagain: status = RUASetProperty(pRua, gdata.gfx, RMGFXEnginePropertyID_BlendRectangles, blend_param,			sizeof(struct GFXEngine_BlendRectangles_type), 0);	if (status == RM_PENDING && trycount--)	{		evt.ModuleID = gdata.gfx;		evt.Mask = RUAEVENT_COMMANDCOMPLETION;		if (RUAWaitForMultipleEvents(pRua, &evt, 1, TIMEOUT_US, NULL) != RM_OK)		{			RMDBGLOG((GFXDBG, "gfxBlend: FAILED WAITING FOR 1 second... TIMING ISSUE?\n"));		}		goto tryagain;	}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产综合久久久久久久久久久久| 日韩色视频在线观看| 免费精品视频最新在线| 亚洲美女屁股眼交| 亚洲最新视频在线播放| 一区二区三区高清| 亚洲国产裸拍裸体视频在线观看乱了| 亚洲乱码中文字幕综合| 欧美国产综合色视频| 欧美国产日本视频| 亚洲三级电影全部在线观看高清| 综合久久给合久久狠狠狠97色| 最新不卡av在线| 亚洲精品第一国产综合野| 亚洲欧美中日韩| 樱花影视一区二区| 日本强好片久久久久久aaa| 日韩成人一区二区三区在线观看| 国产高清一区日本| 国产一区二区三区蝌蚪| 处破女av一区二区| 97超碰欧美中文字幕| 欧洲另类一二三四区| 欧美高清性hdvideosex| 欧美日韩大陆在线| 在线视频你懂得一区二区三区| 色婷婷综合激情| 91精品国产综合久久久久久久| 欧美成人video| 国产精品久久久久久久久免费樱桃 | 成人爱爱电影网址| 91丝袜呻吟高潮美腿白嫩在线观看| a4yy欧美一区二区三区| 91同城在线观看| 欧美图片一区二区三区| 久久久一区二区三区捆绑**| 欧美三级乱人伦电影| 欧美电影免费观看高清完整版在 | 久久国内精品自在自线400部| 国产乱人伦偷精品视频不卡 | 亚洲欧美一区二区三区久本道91 | 成人动漫一区二区三区| 欧美色电影在线| 国产日韩在线不卡| 亚洲高清在线视频| 不卡在线视频中文字幕| 91精品国产全国免费观看 | 亚洲一区二区三区不卡国产欧美| 精品一区二区三区免费视频| 欧美最猛性xxxxx直播| 久久久www成人免费毛片麻豆 | 精品国产一区a| 亚洲va韩国va欧美va| 波多野结衣在线aⅴ中文字幕不卡| 91精品国产综合久久香蕉麻豆| 中文字幕第一区| 国产麻豆欧美日韩一区| 亚洲欧美色一区| 成人免费观看视频| 精品国产三级a在线观看| 一区二区三区免费看视频| 高清成人在线观看| 欧美精品一区二区在线观看| 亚洲成人动漫精品| 欧美四级电影网| 亚洲免费观看高清完整版在线观看熊 | 精品视频123区在线观看| 国产精品久久三| 国产剧情在线观看一区二区| 欧美成人福利视频| 美腿丝袜在线亚洲一区| 欧美久久免费观看| 日韩影院在线观看| 777精品伊人久久久久大香线蕉| 一个色妞综合视频在线观看| 99久久免费精品| ...xxx性欧美| 色综合久久久久网| 亚洲精品成人a在线观看| 色综合天天综合| 欧美影视一区二区三区| 亚洲国产精品精华液网站| 欧美性色综合网| 亚洲一区二区在线免费看| 在线日韩av片| 日本中文字幕不卡| 欧美精品一区二区三区蜜桃| 国模一区二区三区白浆| 国产精品天美传媒沈樵| www.成人网.com| 亚洲欧美日韩中文字幕一区二区三区| 95精品视频在线| 亚洲国产毛片aaaaa无费看| 777奇米四色成人影色区| 美美哒免费高清在线观看视频一区二区| 欧美日韩在线不卡| 麻豆成人av在线| 久久久蜜臀国产一区二区| 国产乱码精品一区二区三区五月婷| 久久久精品日韩欧美| 97精品电影院| 日产欧产美韩系列久久99| 日韩欧美视频在线| 风间由美中文字幕在线看视频国产欧美| 中文文精品字幕一区二区| 日本高清不卡视频| 天堂久久一区二区三区| 久久久久88色偷偷免费| 亚洲欧洲www| 欧美日韩国产大片| 盗摄精品av一区二区三区| 亚洲精品免费在线观看| 日韩欧美aaaaaa| 一本色道综合亚洲| 精品亚洲欧美一区| 一区二区三区国产| 亚洲国产精品成人综合| 欧美日韩一级黄| 成人av电影在线| 美女一区二区在线观看| 亚洲丝袜美腿综合| 国产欧美日韩精品一区| 欧美一区二区三区视频免费| 成人黄色在线视频| 韩国三级中文字幕hd久久精品| 一级日本不卡的影视| 中文字幕中文乱码欧美一区二区| 欧美日韩另类国产亚洲欧美一级| 国产露脸91国语对白| 午夜精品久久久久久久蜜桃app| 欧美成人精品1314www| 欧美三级蜜桃2在线观看| 丰满放荡岳乱妇91ww| 免费不卡在线观看| 亚洲一二三四区不卡| 国产精品毛片高清在线完整版| 99免费精品视频| 亚洲午夜久久久| 久久精品无码一区二区三区| 91精品国产一区二区三区蜜臀| 91美女精品福利| 成人aaaa免费全部观看| 国产成人日日夜夜| 国产在线视频一区二区三区| 三级一区在线视频先锋 | 99久精品国产| 国产馆精品极品| 国产精品资源网| 国产专区欧美精品| 久久精品噜噜噜成人av农村| 午夜av一区二区| 午夜精品成人在线| 午夜欧美一区二区三区在线播放| 亚洲免费av在线| 亚洲精品成a人| 一区二区三区中文字幕精品精品| 亚洲人成网站精品片在线观看| 国产日本欧美一区二区| 亚洲精品免费视频| 精品捆绑美女sm三区| 久久精品欧美日韩| 色综合久久久久| 色婷婷精品大在线视频| 一本一本大道香蕉久在线精品| 美国十次综合导航| 日韩精品中文字幕一区| 精品国产乱码久久久久久牛牛| 88在线观看91蜜桃国自产| 欧美一区二区三区在线观看视频 | 国产精品乱码一区二区三区软件 | 久久综合av免费| 中文字幕免费一区| 国产精品成人在线观看| 亚洲欧美日韩国产一区二区三区| 中文字幕一区在线| 亚洲午夜精品一区二区三区他趣| 奇米影视一区二区三区| 美女视频黄频大全不卡视频在线播放 | 欧美视频完全免费看| 7777精品伊人久久久大香线蕉的| 91精品国产一区二区三区香蕉| 日韩精品最新网址| 久久久久久久久久久久久夜| 欧美激情自拍偷拍| 亚洲午夜在线观看视频在线| 另类成人小视频在线| 波多野结衣的一区二区三区| 欧美色中文字幕| 精品久久国产老人久久综合| 国产精品久久久久久久久晋中 | 成人久久久精品乱码一区二区三区| 91丨九色丨蝌蚪丨老版| 日韩一级片网站| 中文字幕亚洲在| 蜜桃视频免费观看一区| 日本高清不卡视频| 久久久久久久免费视频了| 天天操天天综合网| 北条麻妃国产九九精品视频| 日韩精品资源二区在线|