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

📄 dibdisplay.h

📁 傅立叶变换和小波变换是图像压缩的重要工具。该代大戏是利用小波变换进行图像压缩。
💻 H
字号:
/****************************************************************************************/
/*  DIBDisplay.H                                                                        */
/*                                                                                      */
/*  Author:  Mike Sandige                                                               */
/*  Description:  display surface manager for windows with a DIB as the frame buffer    */
/*                Code fragments contributed by John Miles                              */
/*                                                                                      */
/*  The contents of this file are subject to the Genesis3D Public License               */
/*  Version 1.0 (the "License"); you may not use this file except in                    */
/*  compliance with the License. You may obtain a copy of the License at                */
/*  http://www.genesis3d.com                                                            */
/*                                                                                      */
/*  Software distributed under the License is distributed on an "AS IS"                 */
/*  basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.  See                */
/*  the License for the specific language governing rights and limitations              */
/*  under the License.                                                                  */
/*                                                                                      */
/*  The Original Code is Genesis3D, released March 25, 1999.                            */
/*  Copyright (C) 1996-1999 Eclipse Entertainment, L.L.C. All Rights Reserved           */
/*                                                                                      */
/****************************************************************************************/


#ifndef DIBDisplay_H
#define DIBDisplay_H

#include "basetype.h"
#include "DisplayModeInfo.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef struct DIBDisplay DIBDisplay;

bool DIBDisplay_GetDisplayInfo(	char			*DescriptionString, 
										unsigned int	 DescriptionStringMaxLength,
										DisplayModeInfo *Info);

void DIBDisplay_GetDisplayFormat(		const DIBDisplay *D,
										int   *Width, 
										int   *Height,
										int   *BitsPerPixel,
										uint  *Flags);

bool DIBDisplay_GetPixelFormat  (	const DIBDisplay *D,
										//int       *pixel_pitch,
										int       *bytes_per_pixel,
										int       *R_shift,
										uint      *R_mask,
										int       *R_width,
										int       *G_shift,
										uint      *G_mask,
										int       *G_width,
										int       *B_shift,
										uint      *B_mask,
										int       *B_width);


bool DIBDisplay_Blit		(	DIBDisplay *D);

bool DIBDisplay_Wipe		(	DIBDisplay *D,	
									uint        color);

bool DIBDisplay_Lock		(	DIBDisplay *D,
									ubyte       **ptr,
									int       *pitch);

bool DIBDisplay_Unlock		(	DIBDisplay *D);

void DIBDisplay_Destroy			(	DIBDisplay **pDIBDisplay);

                         
						 
#ifdef _INC_WINDOWS						                             

bool DIBDisplay_UpdateWindow( DIBDisplay *D );

DIBDisplay *DIBDisplay_Create	(	HWND hWindow,
									int  Width,
									int  Height,
									int  display_bpp,
									uint Flags);
#endif


#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

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