Edit

Share via


AVIStreamNearestSampleTime macro (vfw.h)

The AVIStreamNearestSampleTime macro determines the time corresponding to the beginning of a sample that is nearest to a specified time in a stream.

Syntax

LONG AVIStreamNearestSampleTime(
     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 sample if successful or –1 otherwise.

Remarks

The AVIStreamNearestSampleTime macro is defined as follows:


#define AVIStreamNearestSampleTime(pavi, t) \ 
    AVIStreamSampleToTime(pavi, AVIStreamNearestSample(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