ID_SourceInfo struct

Structure that defines the image source data.

Syntax

struct ID_SourceInfo
{
   ID_SourceInfo() { ZeroMemory(this, sizeof(*this)); };

   DWORD dwFlags;
   wchar_t* pszFN;
   BYTE* pBuf;
   DWORD dwLen;
   BOOL(*pfFillBuffer)(void* pUserParam, DWORD dwPos, DWORD* pdwNewPos);
   void* pParam;
};

Members

dwFlags

Type: DWORD

ID_SIF flags

pszFN

Type: wchar_t*

Name of image file, if applicable (can be NULL).

pBuf

Type: BYTE*

Pointer to image file data

dwLen

Type: DWORD

Byte length of image file

BOOL (*pfFillBuffer)(void* pUserParam, DWORD dwPos, DWORD* pdwNewPos)

Type: BOOL (*pfFillBuffer)(void* pUserParam, DWORD dwPos, DWORD* pdwNewPos)

Byte length of image file call-back function to read more data info buffer. The function attempts to read as much additional data into buf as necessary to make dwBufRead at least as large as dwPos. Returns TRUE if successful, FALSE otherwise.

pParam

Type: void*

Calling application can set this to whatever it likes

Remarks

The image decoding plug-in must make a copy of the content of ID_SourceInfo. It may not retain a pointer to either ID_SourceInfo or its pszFN member (used by the ID_OpenImage function).

Requirements

Header: ID_PlugIn.h

See also: