miraacq_GetFrameSize
Returns the size of a frame in bytes.
int miraacq_GetFrameSize(makernel* pma);
Parameters:
- pma: A pointer to the acquisition kernel returned by miraacq_Init.
Return value:
The size of a frame in bytes if the value (> 0) or an error code (< 0).
Description:
miraacq_GetFrameSize will get the size of a frame in bytes, this value can be used to allocate a buffer for one or more frames. It requires that acquisition has been initialized using miraacq_InitializeAcquisition.
Example:
- printf("Geometry: width=%d bands=%d lines=%d dataType=%d dataLayout=%d frameSize=%d\n",
- miraacq_GetFrameWidth(pma),
- miraacq_GetFrameBands(pma),
- miraacq_GetFrameHeight(pma),
- miraacq_GetFrameDataType(pma),
- miraacq_GetFrameDataLayout(pma),
- miraacq_GetFrameSize(pma));
Output:
Geometry: width=1024 bands=301 lines=1 dataType=1 dataLayout=2 frameSize=616448