IAsyncReader2 Interface (Compact 2013)
3/26/2014
This interface extends IAsyncReader Interface to sequentially retrieve media samples from the stream.
Methods
- IAsyncReader2::SetCurrentPosition
Sets the position of the first requested sample in the media stream
- IAsyncReader2::SetCurrentTime
Sets the file position, in time, of the first requested sample in the media stream
- IAsyncReader2::GetCurrentPosition
Retrieves the position of the current sample in the media stream
- IAsyncReader2::GetNext
Asynchronously returns the next media sample
- IAsyncReader2::GetCapabilities
Returns the capabilities of the media stream
- IAsyncReader2::IsEndOfStream
Determines whether a file pointer is at the end of the media stream for this connection
- IAsyncReader2::GetEventHandle
Returns a handle to the event that is signaled when new media samples are available
Remarks
This interface offers better performance than the IAsyncReader Interface because it reduces the number of memory operations that are required to retrieve media samples.
A pull filter that connects to a buffering filter or a source filter can use this interface. The upstream filter can be the Buffering Stream Filter or any filter that receives data from a source filter.
When to Implement
Implement this interface on a pin if your filter is a source filter or a buffering filter.
Requirements
Header |
dshow.h |
Library |
Strmiids.lib |