Example
// Query image buffer geometry
int
nWidth, nWidth, nBits, nPitch;
is_InquireImageMem
( hCam, pLast, nImageID,
&nWidth, &nHeight,
&nBits, &nPitch);
INT nOffsetX =
is_SetImagePos
INT nOffsetY =
is_SetImagePos
// Derive pixel pitch from buffer byte pitch
INT nPitchPx=0;
nPitchPx = (nPitch *
8
INT nAviWidth = nWidth
INT LineOffsetPx = nPitchPx - nAviWidth ;
isavi_SetImageSize( nAviId, m_cMode,
nAviWidth, nHeight,
nOffsetX, nOffsetY,
LineOffsetPx);
4.4.20 isavi_StartAVI
USB 2.0
USB 3.0
Syntax
INT isavi_StartAVI (INT nAviID)
Description
isavi_StartAVI() starts the image capture thread.
Input parameters
nAviID
Return values
IS_AVI_NO_ERR
IS_AVI_ERR_INVALID_ID
IS_AVI_ERR_INVALID_FILE
IS_AVI_ERR_PLAY_RUNNING
Related functions
isavi_StopAVI()
isavi_InitEvent()
isavi_ExitAVI()
© 2013 Thorlabs GmbH
( hCam, IS_GET_IMAGE_POS_X_ABS, 0);
( hCam, IS_GET_IMAGE_POS_Y_ABS, 0);
) / nBits;
/8
* 8;
// Width must be multiple of 8
-
Instance ID set by the
378
370
362
isavi_InitAVI()
Function executed successfully.
The indicated AVI instance could not be found. Either the
AVI ID is invalid or the instance has already been deleted
using
isavi_ExitAVI()
362
The file has no valid AVI format.
A playback is already running.
4 Programming (SDK)
function.
369
.
377