Interface IMFSourceReaderEx
Namespace: MediaFoundation.ReadWrite
Assembly: MediaFoundation.dll
Syntax
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("7b981cf0-560e-4116-9875-b099895f23d7")]
public interface IMFSourceReaderEx : IMFSourceReader
Methods
AddTransformForStream(Int32, Object)
Declaration
HResult AddTransformForStream(int dwStreamIndex, object pTransformOrActivate)
Parameters
System.Int32
dwStreamIndex
|
System.Object
pTransformOrActivate
|
Returns
HResult
|
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
|
GetTransformForStream(Int32, Int32, out Guid, out IMFTransform)
Declaration
HResult GetTransformForStream(int dwStreamIndex, int dwTransformIndex, out Guid pGuidCategory, out IMFTransform ppTransform)
Parameters
System.Int32
dwStreamIndex
|
System.Int32
dwTransformIndex
|
System.Guid
pGuidCategory
|
IMFTransform
ppTransform
|
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
|
RemoveAllTransformsForStream(Int32)
Declaration
HResult RemoveAllTransformsForStream(int dwStreamIndex)
Parameters
System.Int32
dwStreamIndex
|
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
|
SetNativeMediaType(Int32, IMFMediaType, out MF_SOURCE_READER_FLAG)
Declaration
HResult SetNativeMediaType(int dwStreamIndex, IMFMediaType pMediaType, out MF_SOURCE_READER_FLAG pdwStreamFlags)
Parameters
System.Int32
dwStreamIndex
|
IMFMediaType
pMediaType
|
MF_SOURCE_READER_FLAG
pdwStreamFlags
|
Returns
HResult
|
SetStreamSelection(Int32, Boolean)
Declaration
HResult SetStreamSelection(int dwStreamIndex, bool fSelected)
Parameters
System.Int32
dwStreamIndex
|
System.Boolean
fSelected
|
Returns
HResult
|