自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 资源 (88)
  • 问答 (1)
  • 收藏
  • 关注

原创 Bayer抖动表

给出Bayer抖动表M4阵方便大家使用,关于RGB5:6:5及其他m4 = [ 0 128 32 160 8 136 40 168 2 130 34 162 10 138 42 170;192 64 224 96 200 72 232 104 194 66 226 98 202 74 234 106;48 176 16 144 56 184 24 152 50 178 18 146

2010-04-26 10:28:00 3609

转载 YUV转RGB

颜色空间是一个三维坐标系统,每一种颜色由一个点表示。在 RGB 颜色空间中,红,绿,蓝是基本元素。RGB 格式是显示器通常使用的格式。在 YUV 空间中,每一个颜色有一个亮度信号 Y,和两个色度信号 U 和 V。亮度信号是强度的感觉,它和色度信号断开,这样的话强度就可以在不影响颜色的情况下改变。YUV 格式通常用于 PAL制,即欧洲的电视传输标准,而且缺省情况下是图像和视频压缩的标准。   YUV

2010-04-13 16:31:00 860

原创 C语言标准库--math.h

1 三角函数double sin (double);double cos (double);double tan (double);2 反三角函数double asin (double); 结果介于[-PI/2, PI/2]double acos (double); 结果介于[0, PI]double atan (double); 反正切(主值), 结果介于[-PI/2, PI/2]double

2010-04-10 14:08:00 856

原创 Printf参数详解!

printf()函数作用:向终端输出若干个任意类型的数据(putchar 只能输出字符,而且只能是一个字符,而printf可   以输出多个数据,且为任意类型)一、 printf()的一般格式printf(格式控制,输出列表); 例:int i = 3; double f = 4.56; printf("i = %d, f = %f/n", i,f);  printf()是

2010-04-10 09:58:00 2647

原创 INT GetEncoderClsid(const WCHAR *format, CLSID *pClsid) 函数源码

GetEncoderClsid函数来获取一个编码器的MIME (多用途网际邮件扩充协议)类型,然后返回该编码器的类标识符(CLSID)。GDI+中编码器的MIME类型如下:image/bmp image/jpeg image/gif image/tiff image/png INT GetEncoderClsid(const WCHAR *format, CLSID *pClsid){ U

2010-04-09 15:55:00 1537

原创 VC++ 6.0 控制台程序使用GDI+的方法

首先在VC++6.0中新建一个控制台程序。 #define ULONG_PTR unsigned long#include using namespace Gdiplus;#pragma comment(lib, "gdiplus.lib") 在头文件中添加以上的头文件和定义、还有lib库。 int main(){ //GDI+程序的初始化 GdiplusS

2010-04-09 15:40:00 1903 1

转载 图象处理常用特效算法

1.图像的逆反处理算法逆反处理的算法如下:设r,g,b分别为源图像像素f(i,j)的红,绿,蓝分量值,rr,gg,bb分别为处理后像素g(i,j)的红,绿,蓝分量值。正在装载数据……则rr=255-rgg=255-gbb=255-b2.图像的平滑处理算法如下:平滑处理是指将源图像的每一个像素的颜色值由其相邻n*n个像素的平均值来代替。例如,对于3*3

2010-04-09 09:58:00 1042 1

原创 把MFC程序保存为图片 vc ++

 在单文档中可以把客户区的内容保存成一张BMP格式图片。 代码如下: void CCBilinearView::OnFileSave() { CDC* pDC = GetWindowDC(); CBitmap bitmap; CDC memDC ; CRect rect; GetClientRect(rect)

2010-04-08 16:56:00 2680 3

原创 你可能不知道的90条冷门知识及网友精彩点评

1.看看你的拉链,如果上面有YKK三个字母,那么说明这是全球最大的拉链制造商Yoshida Kogyo Kabushibibaisha的产品 【点评】这算什么,如果看见“Made In Waiguo”,那也是世界最大的成衣生产商们制造的。 2.麦当劳40%的利润来自Happy Meals的销售 【点评】中石油A股的利润100%来自股民。3.1996版的韦伯斯特词典有31

2010-04-07 13:38:00 1461

E_EDID 手册

EDID版本解析。

2017-08-01

2017年上半年软件设计师上午真题及答案解析

【转】2017年上半年软件设计师上午真题及答案解析

2017-07-28

HID 设备类读写

HID 设备类读写 #include //! Defines the maximum length of a serial number #define SERNUM_LEN 40 //! Defines the maximum number of physical devices #define MAX_PHYS_DEVICES 6 //! \name HID Device return codes //! @{ // //! HID action/transfer was successful #define HID_DEVICE_SUCCESS 0x00 //! HID device was not found #define HID_DEVICE_NOT_FOUND 0x01 //! HID device is not opened #define HID_DEVICE_NOT_OPENED 0x02 //! HID device is allready opened #define HID_DEVICE_ALREADY_OPENED 0x03 //! Timeout occurs during transfer #define HID_DEVICE_TRANSFER_TIMEOUT 0x04 //! HID transfer failed #define HID_DEVICE_TRANSFER_FAILED 0x05 //! Invalid handle #define HID_DEVICE_HANDLE_ERROR 0x06 //! Unknown error #define HID_DEVICE_UNKNOWN_ERROR 0xFF //! @} // Enabled only when debugging HID connection issues //#define DEBUG_MODE //****************************************************************************** // //! \brief Device information structure. // //****************************************************************************** struct strHidDevice{ //! Handle for hid device HANDLE hndHidDevice; //! Indicator if device is opened BOOL bDeviceOpen; //! Timeout for GetReport requests UINT uGetReportTimeout; //! Timeout for SetReport requests UINT uSetReportTimeout; //! Asynchronous I/O structure OVERLAPPED oRead; //! Asynchronous I/O structure OVERLAPPED oWrite; //! Maximum length of InReport's WORD wInReportBufferLength; //! Maximum length of OutReport's WORD wOutReportBufferLength; //! InBuffer contains data, if InReport provides more data then the application actual need BYTE inBuffer[8192]; //! Number of current used bytes in inBuffer WORD inBufferUsed; }; //****************************************************************************** // //! A structure that tracks the number of serial numbers // //****************************************************************************** struct strTrackSerialNumbers { //! Index number DWORD deviceNum; //! Serial number of physical device char serialNum[SERNUM_LEN]; }; //****************************************************************************** // //! \addtogroup hiddevice_api //! @{ // //****************************************************************************** //****************************************************************************** // //! \brief Close a HID Device. //! //! This function will close a HID device based on the HID structure //! //! \param pstrHidDevice Structure which contains important data of an HID //! device //! //! \return Returns the error status, as one of //! \n \b HID_DEVICE_SUCCESS //! \n \b HID_DEVICE_NOT_OPENED //! \n \b HID_DEVICE_HANDLE_ERROR // //****************************************************************************** BYTE HID_Close(struct strHidDevice* pstrHidDevice); //****************************************************************************** // //! \brief Flush USB buffer for the given device //! //! \param pstrHidDevice Structure which contains important data of an HID //! device. //! //! \return Returns the error status, as one of //! \n \b HID_DEVICE_SUCCESS //! \n \b HID_DEVICE_HANDLE_ERROR //! \n \b HID_DEVICE_UNKNOWN_ERROR // //****************************************************************************** BYTE HID_FlushBuffer(struct strHidDevice* pstrHidDevice); //****************************************************************************** // //! \brief Gets the number of HID devices //! //! This function will return the number of interfaces connected with a //! specified VID, PID and serial number, if no devices are connected, //! it will return a 0 //! //! \param vid Vendor-Id of the device //! \param pid Product-Id of the device //! \param numSerNums Total number of connected physical devices //! //! \return Return the number of connected devices with the specific VID, PID, //! and serial number. // //****************************************************************************** DWORD HID_GetNumOfInterfaces(WORD vid, WORD pid, DWORD numSerNums); //****************************************************************************** // //! \brief Gets the number of serial number and serial number list //! //! Scans the HID Devices on the system for any whose VID/PID match the //! ones specified. For every one it finds, it returns that device's //! serial number in serialNumList. Every physical USB device within a //! given VID/PID space has a unique serial number; therefore, each //! item in the list corresponds with a separate physical USB device //! attached to this host; that is, different physical instances of the //! same product or design. The function returns the total number of //! serial numbers found; if none are found, it returns 0. //! //! \param vid Vendor-ID of the device //! \param pid Product-ID of the device //! \param serialNumList List of serial numbers corresponding to the passed //! VID and PID //! //! \return Returns the number of connected physical devices with the specific //! VID and PID // //****************************************************************************** DWORD HID_GetSerNums(WORD vid, WORD pid, struct strTrackSerialNumbers * serialNumList); //****************************************************************************** // //! \brief Returns the version number of a device. //! //! \param pstrHidDevice Structure which contains important data of an HID //! device. //! \param VersionNumber Pointer to USHORT variable. //! //! \return Returns the error status, as one of //! \n \b HID_DEVICE_SUCCESS //! \n \b HID_DEVICE_HANDLE_ERROR // //****************************************************************************** BYTE HID_GetVersionNumber(struct strHidDevice* pstrHidDevice, USHORT * VersionNumber); //****************************************************************************** // //! \brief Init structure with default values. //! //! It is important to call HID_Init() before calling HID_Open() to //! avoid unpredictable behavoir. //! //! \param pstrHidDevice Structure which contains important data of a HID //! device //! //! \return None // //****************************************************************************** void HID_Init(struct strHidDevice* pstrHidDevice); //****************************************************************************** // //! \brief This has to be called inside WM_ON_DEVICECHANGE notification window //! //! This function checks if the particular HID device structure is //! still connected or disconnected. //! //! \param pstrHidDevice Structure which contains important data of an HID //! device. //! //! \return Returns the error status, as one of //! \n \b HID_DEVICE_SUCCESS //! \n \b HID_DEVICE_HANDLE_ERROR // //****************************************************************************** BOOL HID_IsDeviceAffected(struct strHidDevice* pstrHidDevice); //****************************************************************************** // //! \brief Open a HID Device. //! //! This function opens the HID device associated with the HID interface //! 'deviceIndex' (0-7), on the physical device described by the VID, //! PID, and serial number. //! \param pstrHidDevice Structure which contains important data of an HID //! device //! \param vid Vendor-ID of the device //! \param pid Product-ID of the device //! \param deviceIndex Index of the device.If only one HID is connected, //! deviceIndex is 0. //! - Starts with zero //! - Maximum value is (HID_GetNumOfInterfaces() - 1) //! \param serialNumber Serial number of device to be opened. //! \param totalDevNum Total number of interfaces associated with the //! serial number //! \param totalSerNum Total number of physical devices associated with //! the VID/PID //! //! \return Returns the error status, as one of //! \n \b HID_DEVICE_SUCCESS //! \n \b HID_DEVICE_NOT_FOUND //! \n \b HID_DEVICE_ALREADY_OPENED // //****************************************************************************** BYTE HID_Open(struct strHidDevice* pstrHidDevice, WORD vid, WORD pid, DWORD deviceIndex, char serialNumber[SERNUM_LEN], DWORD totalDevNum, DWORD totalSerNum); //****************************************************************************** // //! \brief Reads a data stream from the given HID device. //! //! Prefixed report ID will be skipped. //! //! \param pstrHidDevice Structure which contains important data of an HID //! device //! \param buffer Pointer to buffer in which will be written //! \param bufferSize Number of bytes to read //! \param bytesReturned Number of actual read bytes //! //! \return Returns the error status, as one of //! \n \b HID_DEVICE_SUCCESS //! \n \b HID_DEVICE_NOT_OPENED //! \n \b HID_DEVICE_TRANSFER_TIMEOUT //! \n \b HID_DEVICE_TRANSFER_FAILED // //****************************************************************************** BYTE HID_ReadFile(struct strHidDevice* pstrHidDevice, BYTE* buffer, DWORD bufferSize, DWORD* bytesReturned); //****************************************************************************** // //! \brief Registers a device for program Windows notification. //! //! Registers the window pointed to by handle hWnd to receive //! notification when devices are added or removed from the system. //! //! \param hWnd Windows handle //! \param diNotifyHandle Device notification handle pointer address //! //! \return Returns the error status, as one of //! \n \b HID_DEVICE_SUCCESS //! \n \b HID_DEVICE_HANDLE_ERROR // //****************************************************************************** BYTE HID_RegisterForDeviceNotification(HWND hWnd, HDEVNOTIFY* diNotifyHandle); //****************************************************************************** // //! \brief Un-Registers a device from Windows notification. //! //! Un-registers the window pointed to by handle hWnd to receive //! notification when devices are added or removed from the system. //! //! \param diNotifyHandle: Device notification handle pointer address. //! //! \return Returns the error status, as one of //! \n \b HID_DEVICE_SUCCESS //! \n \b HID_DEVICE_HANDLE_ERROR // //****************************************************************************** BYTE HID_UnRegisterForDeviceNotification(HDEVNOTIFY* diNotifyHandle); //****************************************************************************** // //! \brief Writes a data stream to the given HID device. //! //! Needed report IDs will be generated automatically. //! //! \param pstrHidDevice Structure which contains important data of an HID //! device //! \param buffer Buffer which will be send //! \param bufferSize Number of bytes to send //! //! \return Returns the error status, as one of //! \n \b HID_DEVICE_SUCCESS //! \n \b HID_DEVICE_NOT_OPENED //! \n \b HID_DEVICE_TRANSFER_TIMEOUT //! \n \b HID_DEVICE_TRANSFER_FAILED // //****************************************************************************** BYTE HID_WriteFile(struct strHidDevice* pstrHidDevice, BYTE* buffer, DWORD bufferSize);

2013-12-13

U盘完美安装系统教程

U盘完美安装系统教程

2013-10-23

qt获取文件—超大图标

typedef HICON (*getIcon)(CONST TCHAR *filePath); //定义函数指针,以备调用

2013-07-25

硬盘 绝密 维修 资料

第 一 章 硬盘的物理结构和原理 第 二 章 硬盘的基本参数 第 三 章 硬盘逻辑结构简介 第 四 章 硬盘的物理安装 第 五 章 系统启动过程 第 六 章 硬盘的品牌 第 七 章 硬盘电路板测试及维修技巧 第 八 章 常用维修软件 第 九 章 专业维修软件PC3000 第 十 章 数据恢复 第十一章 典型故障及维修流程

2013-01-08

Turbo C高级编程技术

介绍如何利用 TC 系统所提供的相关函数实现菜单设计、图形绘制、动画的播放、乐曲 的演奏、汉字的显示、图片的显现等技术,在讲述时,以问题-解答的方式来逐渐阐明。

2013-01-08

System Management BIOS (SMBIOS)

System Management BIOS (SMBIOS) Reference Specification DSP0134 Version 2.6a Status: Preliminary Standard May 2, 2007

2013-01-08

OpenGL游戏程序设计光盘源码

OpenGL游戏程序设计光盘源码

2012-12-26

3DS 文件格式详解

3DS 文件格式详解

2012-12-26

用面向对象的方法实现3DS文件的读取与操纵

用面向对象的方法实现3DS文件的读取与操纵 用面向对象的方法实现3DS文件的读取与操纵

2012-12-26

一种OpenGL中3D Studio模型的读取与控制方法

一种OpenGL中3D Studio模型的读取与控制方法

2012-12-26

基于OpenGL的DEM地形可视化和虚拟漫游系统

基于OpenGL的DEM地形可视化和虚拟漫游系统 基于OpenGL的DEM地形可视化和虚拟漫游系统

2012-12-26

基于OpenGL的3DS图形文件中模型数据的获取

基于OpenGL的3DS图形文件中模型数据的获取 基于OpenGL的3DS图形文件中模型数据的获取

2012-12-26

Linux dmidecode-2.9 源码

Linux dmidecode-2.9 源码

2012-12-26

OpenGL Nehe 教程Python源码

OpenGL Nehe 教程Python源码

2012-12-26

Turbo C++ 3.0

Turbo C++ 3.0

2012-12-26

OpenGL Nehe 教程VS_Net源码

OpenGL Nehe 教程VS_Net源码

2012-12-24

OpenGL Nehe 教程C#源码

OpenGL Nehe 教程C#源码

2012-12-24

OpenGL Nehe 教程Delphi源码

OpenGL Nehe 教程Delphi源码

2012-12-24

OpenGL Nehe 教程Linux源码

OpenGL Nehe 教程Linux源码

2012-12-24

OpenGL Nehe 教程Java源码

OpenGL Nehe 教程Java源码

2012-12-24

OpenGL Nehe 教程VC源码

OpenGL Nehe 教程VC源码

2012-12-24

OpenGL 天空盒的实现

OpenGL 天空盒的实现

2012-12-24

OpenGL 加载3ds文件并显示

OpenGL 加载3ds文件并显示 OpenGL 加载3ds文件并显示 OpenGL 加载3ds文件并显示

2012-12-24

屏幕2D坐标转化为场景3D坐标

Name: ReadDepth Desc: 通过读取Z Buffer深度值将屏幕2D坐标转化为场景3D坐标 操作:点击鼠标左键,在标题栏上会显示深度值和转化后的场景3D坐标

2012-12-24

unetbootin-windows-581

unetbootin-windows-581 实现把ISO导入到U盘,实现U盘安装操作系统!!!

2012-12-24

图像边缘检测各种算法源码

图像边缘检测各种算法源码

2012-12-21

Visual C++多媒体开发指南配套源码

Visual C++多媒体开发指南配套源码

2012-12-21

VC++图像平滑处理

VC++图像平滑处理

2012-12-21

Bitmap 转 txt 源码

Bitmap 转 txt 源码

2012-12-21

精通Visual C++.NET图像处理编程(第二版)

精通Visual C++.NET图像处理编程(第二版)

2012-12-21

MATLAB教程

MATLAB教程

2012-12-21

iPhone 系统图标 PNG格式

iPhone 系统图标 PNG格式

2012-12-21

XP系统ICON图标

XP系统ICON图标

2012-12-21

VC 实现2.64 协议

VC 实现2.64 协议

2012-12-21

300种加密解密算法

300种加密解密算法

2012-12-21

微软提供的usb软件开发包

微软提供的usb软件开发包

2012-12-21

用VC++编写USB接口通信程序

用VC++编写USB接口通信程序

2012-12-21

usb 2.0 协议 中文版

usb 2.0 协议 中文版

2012-12-21

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除