windows::Win32::Media::DirectShow

Trait IVMRSurfaceAllocator_Impl

pub trait IVMRSurfaceAllocator_Impl: IUnknownImpl {
    // Required methods
    fn AllocateSurface(
        &self,
        dwuserid: usize,
        lpallocinfo: *const VMRALLOCATIONINFO,
        lpdwactualbuffers: *mut u32,
        lplpsurface: OutRef<'_, IDirectDrawSurface7>,
    ) -> Result<()>;
    fn FreeSurface(&self, dwid: usize) -> Result<()>;
    fn PrepareSurface(
        &self,
        dwuserid: usize,
        lpsurface: Ref<'_, IDirectDrawSurface7>,
        dwsurfaceflags: u32,
    ) -> Result<()>;
    fn AdviseNotify(
        &self,
        lpivmrsurfallocnotify: Ref<'_, IVMRSurfaceAllocatorNotify>,
    ) -> Result<()>;
}

Required Methods§

fn AllocateSurface( &self, dwuserid: usize, lpallocinfo: *const VMRALLOCATIONINFO, lpdwactualbuffers: *mut u32, lplpsurface: OutRef<'_, IDirectDrawSurface7>, ) -> Result<()>

fn FreeSurface(&self, dwid: usize) -> Result<()>

fn PrepareSurface( &self, dwuserid: usize, lpsurface: Ref<'_, IDirectDrawSurface7>, dwsurfaceflags: u32, ) -> Result<()>

fn AdviseNotify( &self, lpivmrsurfallocnotify: Ref<'_, IVMRSurfaceAllocatorNotify>, ) -> 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§