Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

AVIStreamNearestKeyFrameTime macro

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

Syntax


LONG AVIStreamNearestKeyFrameTime(
    pavi,
    lTime
);

Parameters

pavi

Handle to an open stream.

lTime

Starting time, in milliseconds, to search in the stream.

Return value

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))) 


Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Vfw.h

See also

AVIFile Functions and Macros
AVIFile Macros

 

 

Show: