loadAVI
Top  Previous  Next

laodAVI ( integer Input, string File, integer Start, integer Count )

Use this function to open an AVI file as a sequence.

Parameters
 
Image  
 
An integer between 1 and 99 specifying the number of the workspace frame in which the sequence will open.  
 
File  
A string specifying the path and name of the AVI file from which the sequence will be loaded. If the path is not specified, the default directory will be used.  
 
Start  
 
A positive integer specifying the number of the video frame in the AVI file that will be the first frame in the sequence.  
 
Count  
 
A positive integers specifying the number of the frames to be loaded in the sequence.  
 
 
Error flags

ERR_OK  
 
The flag set if successful.  
 
ERR_FAILED  
 
The flag set if failed.  
 
ERR_NOTFOUND  
 
The flag set if the file was not found.  
 
ERR_BADFORMAT  
 
The flag set if the file format was not recognized  
 
Example

setCurDir ("samples")  
LoadAvi (1, "motion.avi", 3, 10)