Interface IMFCapturePreviewSink
Namespace: MediaFoundation
Assembly: MediaFoundation.dll
Syntax
[Guid("77346cfd-5b49-4d73-ace0-5b52a859f2e0")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IMFCapturePreviewSink : IMFCaptureSink
Methods
AddStream(Int32, IMFMediaType, IMFAttributes, out Int32)
Declaration
HResult AddStream(int dwSourceStreamIndex, IMFMediaType pMediaType, IMFAttributes pAttributes, out int pdwSinkStreamIndex)
Parameters
System.Int32
dwSourceStreamIndex
|
IMFMediaType
pMediaType
|
IMFAttributes
pAttributes
|
System.Int32
pdwSinkStreamIndex
|
Returns
HResult
|
GetMirrorState(out Boolean)
Declaration
HResult GetMirrorState(out bool pfMirrorState)
Parameters
System.Boolean
pfMirrorState
|
Returns
HResult
|
GetOutputMediaType(Int32, out IMFMediaType)
Declaration
HResult GetOutputMediaType(int dwSinkStreamIndex, out IMFMediaType ppMediaType)
Parameters
System.Int32
dwSinkStreamIndex
|
IMFMediaType
ppMediaType
|
Returns
HResult
|
GetRotation(Int32, out Int32)
Declaration
HResult GetRotation(int dwStreamIndex, out int pdwRotationValue)
Parameters
System.Int32
dwStreamIndex
|
System.Int32
pdwRotationValue
|
Returns
HResult
|
GetService(Int32, Guid, Guid, out Object)
Declaration
HResult GetService(int dwSinkStreamIndex, Guid rguidService, Guid riid, out object ppUnknown)
Parameters
System.Int32
dwSinkStreamIndex
|
System.Guid
rguidService
|
System.Guid
riid
|
System.Object
ppUnknown
|
Returns
HResult
|
Prepare()
RemoveAllStreams()
SetCustomSink(IMFMediaSink)
Declaration
HResult SetCustomSink(IMFMediaSink pMediaSink)
Parameters
IMFMediaSink
pMediaSink
|
Returns
HResult
|
SetMirrorState(Boolean)
Declaration
HResult SetMirrorState(bool fMirrorState)
Parameters
System.Boolean
fMirrorState
|
Returns
HResult
|
SetRenderHandle(IntPtr)
SetRenderSurface(Object)
Declaration
HResult SetRenderSurface(object pSurface)
Parameters
System.Object
pSurface
|
Returns
HResult
|
SetRotation(Int32, Int32)
Declaration
HResult SetRotation(int dwStreamIndex, int dwRotationValue)
Parameters
System.Int32
dwStreamIndex
|
System.Int32
dwRotationValue
|
Returns
HResult
|
SetSampleCallback(Int32, IMFCaptureEngineOnSampleCallback)
Declaration
HResult SetSampleCallback(int dwStreamSinkIndex, IMFCaptureEngineOnSampleCallback pCallback)
Parameters
System.Int32
dwStreamSinkIndex
|
IMFCaptureEngineOnSampleCallback
pCallback
|
Returns
HResult
|
UpdateVideo(MFVideoNormalizedRect, MFRect, MFInt)
Declaration
HResult UpdateVideo(MFVideoNormalizedRect pSrc, MFRect pDst, MFInt pBorderClr)
Parameters
MFVideoNormalizedRect
pSrc
|
MFRect
pDst
|
MFInt
pBorderClr
|
Returns
HResult
|