Szerkesztés

Megosztás a következőn keresztül:


AVIStreamNearestKeyFrameTime macro (vfw.h)

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,
     t
);

Parameters

pavi

Handle to an open stream.

t

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

Return value

Type: LONG

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

Remarks

The AVIStreamNearestKeyFrameTime macro is defined as follows:


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

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header vfw.h

See also

AVIFile Functions and Macros

AVIFile Macros