windows::Win32::Media::MediaFoundation

Trait IMFSampleGrabberSinkCallback_Impl

pub trait IMFSampleGrabberSinkCallback_Impl: IMFClockStateSink_Impl {
    // Required methods
    fn OnSetPresentationClock(
        &self,
        ppresentationclock: Ref<'_, IMFPresentationClock>,
    ) -> Result<()>;
    fn OnProcessSample(
        &self,
        guidmajormediatype: *const GUID,
        dwsampleflags: u32,
        llsampletime: i64,
        llsampleduration: i64,
        psamplebuffer: *const u8,
        dwsamplesize: u32,
    ) -> Result<()>;
    fn OnShutdown(&self) -> Result<()>;
}

Required Methods§

fn OnSetPresentationClock( &self, ppresentationclock: Ref<'_, IMFPresentationClock>, ) -> Result<()>

fn OnProcessSample( &self, guidmajormediatype: *const GUID, dwsampleflags: u32, llsampletime: i64, llsampleduration: i64, psamplebuffer: *const u8, dwsamplesize: u32, ) -> Result<()>

fn OnShutdown(&self) -> 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.

Implementors§