AVIStreamPrevSampleTime

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

AVIStreamPrevSampleTime(
  pavi, 
  time  
);
 

Parameters

pavi
Handle of an open stream.
time
Position information of the sample in the stream.

Return Values

Returns the time if successful or – 1 otherwise.

Remarks

The AVIStreamPrevSampleTime macro is defined as follows:

#define AVIStreamPrevSampleTime(pavi, time) \ 
    AVIStreamSampleToTime(pavi, \ 
    AVIStreamPrevSample(pavi, \ 
    AVIStreamTimeToSample(pavi, t))) 
 

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in vfw.h.

See Also

AVIFile Functions and Macros Overview, AVIFile Macros