Trait IMFCapturePreviewSink_Impl
pub trait IMFCapturePreviewSink_Impl: IMFCaptureSink_Impl {
// Required methods
fn SetRenderHandle(&self, handle: HANDLE) -> Result<()>;
fn SetRenderSurface(&self, psurface: Ref<'_, IUnknown>) -> Result<()>;
fn UpdateVideo(
&self,
psrc: *const MFVideoNormalizedRect,
pdst: *const RECT,
pborderclr: *const COLORREF,
) -> Result<()>;
fn SetSampleCallback(
&self,
dwstreamsinkindex: u32,
pcallback: Ref<'_, IMFCaptureEngineOnSampleCallback>,
) -> Result<()>;
fn GetMirrorState(&self) -> Result<BOOL>;
fn SetMirrorState(&self, fmirrorstate: BOOL) -> Result<()>;
fn GetRotation(&self, dwstreamindex: u32) -> Result<u32>;
fn SetRotation(
&self,
dwstreamindex: u32,
dwrotationvalue: u32,
) -> Result<()>;
fn SetCustomSink(&self, pmediasink: Ref<'_, IMFMediaSink>) -> Result<()>;
}
Required Methods§
fn SetRenderHandle(&self, handle: HANDLE) -> Result<()>
fn SetRenderSurface(&self, psurface: Ref<'_, IUnknown>) -> Result<()>
fn UpdateVideo( &self, psrc: *const MFVideoNormalizedRect, pdst: *const RECT, pborderclr: *const COLORREF, ) -> Result<()>
fn SetSampleCallback( &self, dwstreamsinkindex: u32, pcallback: Ref<'_, IMFCaptureEngineOnSampleCallback>, ) -> Result<()>
fn GetMirrorState(&self) -> Result<BOOL>
fn SetMirrorState(&self, fmirrorstate: BOOL) -> Result<()>
fn GetRotation(&self, dwstreamindex: u32) -> Result<u32>
fn SetRotation(&self, dwstreamindex: u32, dwrotationvalue: u32) -> Result<()>
fn SetCustomSink(&self, pmediasink: Ref<'_, IMFMediaSink>) -> Result<()>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.