Edit

Share via


AVIStreamPrevSampleTime macro (vfw.h)

The AVIStreamPrevSampleTime macro determines the time of the nearest nonempty sample that precedes a specified time in a stream.

Syntax

LONG AVIStreamPrevSampleTime(
     pavi,
     t
);

Parameters

pavi

Handle to an open stream.

t

Position information of the sample in the stream.

Return value

Type: LONG

Returns the time if successful or –1 otherwise.

Remarks

The AVIStreamPrevSampleTime macro is defined as follows:


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