windows::Win32::Media::MediaFoundation

Trait IMFCaptureEngine_Impl

pub trait IMFCaptureEngine_Impl: IUnknownImpl {
    // Required methods
    fn Initialize(
        &self,
        peventcallback: Ref<'_, IMFCaptureEngineOnEventCallback>,
        pattributes: Ref<'_, IMFAttributes>,
        paudiosource: Ref<'_, IUnknown>,
        pvideosource: Ref<'_, IUnknown>,
    ) -> Result<()>;
    fn StartPreview(&self) -> Result<()>;
    fn StopPreview(&self) -> Result<()>;
    fn StartRecord(&self) -> Result<()>;
    fn StopRecord(
        &self,
        bfinalize: BOOL,
        bflushunprocessedsamples: BOOL,
    ) -> Result<()>;
    fn TakePhoto(&self) -> Result<()>;
    fn GetSink(
        &self,
        mfcaptureenginesinktype: MF_CAPTURE_ENGINE_SINK_TYPE,
    ) -> Result<IMFCaptureSink>;
    fn GetSource(&self) -> Result<IMFCaptureSource>;
}

Required Methods§

fn Initialize( &self, peventcallback: Ref<'_, IMFCaptureEngineOnEventCallback>, pattributes: Ref<'_, IMFAttributes>, paudiosource: Ref<'_, IUnknown>, pvideosource: Ref<'_, IUnknown>, ) -> Result<()>

fn StartPreview(&self) -> Result<()>

fn StopPreview(&self) -> Result<()>

fn StartRecord(&self) -> Result<()>

fn StopRecord( &self, bfinalize: BOOL, bflushunprocessedsamples: BOOL, ) -> Result<()>

fn TakePhoto(&self) -> Result<()>

fn GetSink( &self, mfcaptureenginesinktype: MF_CAPTURE_ENGINE_SINK_TYPE, ) -> Result<IMFCaptureSink>

fn GetSource(&self) -> Result<IMFCaptureSource>

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.

Implementors§