1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
#define IS_IMG_BMP 0
#define IS_IMG_JPG 1
typedef DWORD HIDS;
#define HIDS_DEFINED
#define IDSEXP INT
typedef struct
{
wchar_t* pwchFileName;
UINT nFileType;
UINT nQuality;
char** ppcImageMem;
UINT* pnImageID;
BYTE reserved[32];
} IMAGE_FILE_PARAMS;
/*!
* \brief Enumeration of commands of function \ref is_ImageFile,
*
* \sa is_ImageFile.
*/
typedef enum E_IMAGE_FILE_CMD
{
IS_IMAGE_FILE_CMD_LOAD = 1,
IS_IMAGE_FILE_CMD_SAVE = 2
} IMAGE_FILE_CMD;
/*!
* \brief Interface for all image file operations
* \param hCam valid device handle.
* \param nCommand Specifies the command
* \param pParam input or output storage for the accessed param.
* \param cbSizeOfParam size of *pParam.
* \return error code
*/
IDSEXP is_ImageFile(HIDS hCam, UINT nCommand, void* pParam, UINT cbSizeOfParam); |
Partager