Frame Range, FRS

Previous  Next

 

range = FRS( nFrameOffset AS INTEGER,

             nFrames      AS INTEGER ) AS INTEGER

 


 

Returns the a range of frames..  The range is specified as offset and number of frames.  This can be used by any MAL function that can use frame offset as argument.  If the nFrames is 0, then all frames are used.

 

Techincal Description

 

The function creates a 32 bit integer where the lower 18 bits defines the frame offset (max 262,143) and the upper 14 bits defines the number of frames (max 16,383).

 

Example:

 

' Calculate Verctor length of Point 2 from frame 11 through 100

DIM r AS REFERENCE

r = MAL.VectorLength( NULL, arrPoints, 2, FRS( 10, 90 ) )

CALL PrintArray( r )

UNREF r