Windows Dev Center

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.

AVIStreamNearestSampleTime macro

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

Remarks

The AVIStreamNearestSampleTime macro is defined as follows:



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

 

 

Community Additions

Show:
© 2015 Microsoft