cameracode.h

来自「WinCE下实现的罗技usb摄像头驱动程序 镜像启动後插入摄像头并输入驱动dll」· C头文件 代码 · 共 46 行

H
46
字号
//======================================================================
// Header file
//
// Copyright (C) 2005 Douglas Boling
//======================================================================

// Call first before anything else
int InitCamera ();

// Call after last call to camera library
int ShutdownCamera ();

// Returns the video formats supported on the device
int GetVideoFormats (PFORMATPROPS pFormats, int *pnCnt);

// Returns the still image formats supported on the device
int GetStillFormats (PFORMATPROPS pFormats, int *pnCount);

// Returns a string labeling a given feature ID
LPCTSTR GetFeatureText (DWORD dwFeatureID);

// Queries a feature value
int GetFeatureSetting (DWORD dwFeature, DWORD *pdwVal);

// Sets a feature value
int SetFeatureSetting (DWORD dwFeature, DWORD dwVal);

// Returns information on a given format
int GetFormatInformation (WORD wFormat, WORD wFrame, PFORMATPROPS pFmt);

// Returns the list of features supported by the phone
int GetFeatureList (PFEATUREPROPS pFeatures, DWORD *pdwSize);

// Start streaming to an HDC
int StartStreaming (HDC hdc, RECT *prect, WORD wFormat, WORD wFrame, DWORD dwInterval);

// Stop streaming
int StopStreaming ();

// Capture a still image from the cameras
int GetStillImage (WORD wFormat, WORD wFrame, PFORMATPROPS pFmt, PBYTE *ppData, DWORD *pdwSize);

// Writes an MJPEG frame as a JPEG file
int WriteJPEG (LPTSTR lpszName, PBYTE pData, int nSize);

⌨️ 快捷键说明

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