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

📄 mjpeg2bmp.h

📁 基于WINCE的Webcam程序 基于WINCE的Webcam程序 基于WINCE的Webcam程序 基于WINCE的Webcam程序
💻 H
字号:
//======================================================================
// Header for conversion library that uses the Imaging component
// of Windows CE 5 and later.
//

// Call to initialize the library
HRESULT InitDisplayFrame (LPCWSTR pszExt);

// Call to convert MJPEG frame and write to a Device Context
HRESULT DisplayFrame (PBYTE pData, DWORD dwPreBuff, DWORD dwSize, HDC hdc, RECT *pRect);

HRESULT DisplayBitmap (IBitmapImage *pBitmapImage, HDC hdc, RECT *pRect);

typedef struct {
	int nHeight;
	int nWidth;
	int PixelFormat;
} BMPFMT, *PBMPFMT;

// Convert an MJPEG frame to an IBitmapImage object.
HRESULT GetBitMapImage (PBYTE pData, DWORD dwPreBuff, DWORD dwSize, 
						IBitmapImage **ppBitmapImage, PBMPFMT pInfo);

BOOL IsMotionDetected (IBitmapImage* pBitmapImage, IBitmapImage* pBitmapImageOld, PBMPFMT pInfo,
					   DWORD dwSenstivity);

// Call to free the library
HRESULT ReleaseDisplayFrame ();

⌨️ 快捷键说明

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