AVIStreamNearestKeyFrameTime

The AVIStreamNearestKeyFrameTime macro determines the time corresponding to the beginning of the key frame nearest (at or preceding) a specified time in a stream.

AVIStreamNearestKeyFrameTime(
  pavi,  
  lTime  
);
 

Parameters

pavi
Handle of an open stream.
lTime
Starting time, in milliseconds, to search in the stream.

Return Values

Returns the time of the nearest key frame if successful or – 1 otherwise.

Remarks

The AVIStreamNearestKeyFrameTime macro is defined as follows:

#define AVIStreamNearestKeyFrameTime(pavi, lTime) \ 
    AVIStreamSampleToTime(pavi, AVIStreamNearestKeyFrame(pavi, 
    AVIStreamTimeToSample(pavi, lTime))) 
 

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in vfw.h.

See Also

AVIFile Functions and Macros Overview, AVIFile Macros