L_Jp2GetFileInfoMemory
#include "l_bitmap.h"
L_LTJP2_API L_INT EXT_FUNCTION L_Jp2GetFileInfoMemory(hJp2, pBuffer, uBufferSize, pFileInfo)
L_HJP2 hJp2; |
/* JPEG 2000 engine handle */ |
L_UINT8 * pBuffer; |
/* pointer to a JPEG 2000 file in memory buffer */ |
L_SIZE_T uBufferSize; |
/* size of the file in memory buffer */ |
pL_JP2_FILEINFO pFileInfo; |
/* pointer to a file info structure */ |
Gets information about the specified file in the memory and fills the specified L_JP2_FILEINFO structure with the information.
Parameter |
Description |
hJp2 |
JPEG 2000 engine handle that was created by the L_Jp2Create function. |
pBuffer |
Pointer to a JPEG 2000 file in the memory. |
uBufferSize |
Size in bytes of the file referenced by pBuffer. |
pFileInfo |
Pointer to the L_JP2_FILEINFO structure to be filled with the information. |
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
L_Jp2GetFileInfoMemory gets information about the specified file in the memory and fills the specified L_JP2_FILEINFO structure with the information. You must free this structure by calling the L_Jp2FreeFileInfo function. All of the engines boxes will be reset.
Required DLLs and Libraries
LTJP2 For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
Platforms
Windows 2000 / XP/Vista.
See Also
Functions: |
L_Jp2FreeFileInfo, L_Jp2GetFileInfo, L_Jp2ReadBox, L_Jp2ReadFrames |
Topics: |
Programming
with JPEG 2000 Features |
Example
For an example, refer to L_Jp2ReadBoxMemory.