Interface IMFSourceReader
Namespace: MediaFoundation.ReadWrite
Assembly: MediaFoundation.dll
Syntax
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("70ae66f2-c809-4e4f-8915-bdcb406b7993")]
public interface IMFSourceReader
Methods
Flush(Int32)
GetCurrentMediaType(Int32, out IMFMediaType)
Declaration
HResult GetCurrentMediaType(int dwStreamIndex, out IMFMediaType ppMediaType)
Parameters
System.Int32
dwStreamIndex
|
IMFMediaType
ppMediaType
|
Returns
HResult
|
GetNativeMediaType(Int32, Int32, out IMFMediaType)
Declaration
HResult GetNativeMediaType(int dwStreamIndex, int dwMediaTypeIndex, out IMFMediaType ppMediaType)
Parameters
System.Int32
dwStreamIndex
|
System.Int32
dwMediaTypeIndex
|
IMFMediaType
ppMediaType
|
Returns
HResult
|
GetPresentationAttribute(Int32, Guid, PropVariant)
Declaration
HResult GetPresentationAttribute(int dwStreamIndex, Guid guidAttribute, PropVariant pvarAttribute)
Parameters
System.Int32
dwStreamIndex
|
System.Guid
guidAttribute
|
PropVariant
pvarAttribute
|
Returns
HResult
|
GetServiceForStream(Int32, Guid, Guid, out Object)
Declaration
HResult GetServiceForStream(int dwStreamIndex, Guid guidService, Guid riid, out object ppvObject)
Parameters
System.Int32
dwStreamIndex
|
System.Guid
guidService
|
System.Guid
riid
|
System.Object
ppvObject
|
Returns
HResult
|
GetStreamSelection(Int32, out Boolean)
Declaration
HResult GetStreamSelection(int dwStreamIndex, out bool pfSelected)
Parameters
System.Int32
dwStreamIndex
|
System.Boolean
pfSelected
|
Returns
HResult
|
ReadSample(Int32, MF_SOURCE_READER_CONTROL_FLAG, out Int32, out MF_SOURCE_READER_FLAG, out Int64, out IMFSample)
Declaration
HResult ReadSample(int dwStreamIndex, MF_SOURCE_READER_CONTROL_FLAG dwControlFlags, out int pdwActualStreamIndex, out MF_SOURCE_READER_FLAG pdwStreamFlags, out long pllTimestamp, out IMFSample ppSample)
Parameters
System.Int32
dwStreamIndex
|
MF_SOURCE_READER_CONTROL_FLAG
dwControlFlags
|
System.Int32
pdwActualStreamIndex
|
MF_SOURCE_READER_FLAG
pdwStreamFlags
|
System.Int64
pllTimestamp
|
IMFSample
ppSample
|
Returns
HResult
|
SetCurrentMediaType(Int32, MFInt, IMFMediaType)
Declaration
HResult SetCurrentMediaType(int dwStreamIndex, MFInt pdwReserved, IMFMediaType pMediaType)
Parameters
System.Int32
dwStreamIndex
|
MFInt
pdwReserved
|
IMFMediaType
pMediaType
|
Returns
HResult
|
SetCurrentPosition(Guid, ConstPropVariant)
Declaration
HResult SetCurrentPosition(Guid guidTimeFormat, ConstPropVariant varPosition)
Parameters
System.Guid
guidTimeFormat
|
ConstPropVariant
varPosition
|
Returns
HResult
|
SetStreamSelection(Int32, Boolean)
Declaration
HResult SetStreamSelection(int dwStreamIndex, bool fSelected)
Parameters
System.Int32
dwStreamIndex
|
System.Boolean
fSelected
|
Returns
HResult
|