windows::Win32::Media::MediaFoundation

Trait IMFMediaType_Impl

pub trait IMFMediaType_Impl: IMFAttributes_Impl {
    // Required methods
    fn GetMajorType(&self) -> Result<GUID>;
    fn IsCompressedFormat(&self) -> Result<BOOL>;
    fn IsEqual(&self, pimediatype: Ref<'_, IMFMediaType>) -> Result<u32>;
    fn GetRepresentation(
        &self,
        guidrepresentation: &GUID,
        ppvrepresentation: *mut *mut c_void,
    ) -> Result<()>;
    fn FreeRepresentation(
        &self,
        guidrepresentation: &GUID,
        pvrepresentation: *const c_void,
    ) -> Result<()>;
}

Required Methods§

fn GetMajorType(&self) -> Result<GUID>

fn IsCompressedFormat(&self) -> Result<BOOL>

fn IsEqual(&self, pimediatype: Ref<'_, IMFMediaType>) -> Result<u32>

fn GetRepresentation( &self, guidrepresentation: &GUID, ppvrepresentation: *mut *mut c_void, ) -> Result<()>

fn FreeRepresentation( &self, guidrepresentation: &GUID, pvrepresentation: *const c_void, ) -> 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§