Frame Grabber SDK (Windows-C) Developer Guide
Return Value
Return MV_FG_SUCCESS on success, and return Error Code on failure.
Remarks
The SDK has no internal buffer if this API is not called or the value of parameter nBufferNum is set to
0. When there is no internal buffer, you need to request and register buffers to stream channels
before starting image acquisition.
When the parameter nBufferNum is set to a value greater than 0, buffers will the allocated internally
by the SDK and it is not allowed to register buffers to stream channels at this time.
The number of image buffers should be reasonably allocated.
3.5.2 MV_FG_GetBufferChunkData
Get the chunk data information of a buffer.
API Definition
int MV_FG_GetBufferChunkData(
STREAMHANDLE
hStream,
MV_FG_BUFFER_INFO
*pstBufferInfo,
unsigned int
nIndex,
MV_FG_CHUNK_DATA_INFO
*pstChunkDataInfo
);
Parameters
hStream
[IN] Stream channel handle.
pstBufferInfo
[IN] Buffer information, see MV_FG_BUFFER_INFO for details.
nIndex
[IN] Chunk data index.
pstChunkDataInfo
[OUT] Chunk data information, see MV_FG_CHUNK_DATA_INFO for details.
Return Value
Return MV_FG_SUCCESS on success, and return Error Code on failure.
Remarks
After getting the buffer information, this API must be called before calling the APIs
MV_FG_ReleaseFrameBuffer and MV_FG_QueueBuffer to get valid information of the chunk data.
18
    "