© 2016 Thorlabs Scientific Imaging
4 Programming (SDK)
395
4.4 AVI Function Descriptions
The functions of the uc480_tools.dll enable you to save images captured with the DCx Camera
as sequences to an AVI file. The How to proceed: Capturing AVIs chapter shows the command
sequence for capturing an AVI video.
Notes
Video Resolution
If the width or height of the video resolution is greater than 2048 pixels, some media players may
not be able to play the video.
Video Compression
To reduce the file size, the single frames are stored in the AVI container using an adjustable JPEG
compression. It is possible to extract single frames from the AVI file.
4.4.1 isavi_AddFrame
Syntax
INT isavi_AddFrame (INT nAviID, char* pcImageMem)
Description
isavi_AddFrame() adds a new frame to an AVI sequence.
Input parameters
Instance ID set by the isavi_InitAVI() function
Pointer to the memory containing the image.
Return values
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().
The last image compression failed.
IS_AVI_ERR_COMPRESSION_RUN
The current image could not be processed since
compression is still in progress.
The file has no valid AVI format.
Related functions
isavi_InitAVI()