Trait windows::Win32::Media::WindowsMediaFormat::IWMReader_Impl

pub trait IWMReader_Impl: Sized {
    // Required methods
    fn Open(
        &self,
        pwszurl: &PCWSTR,
        pcallback: Option<&IWMReaderCallback>,
        pvcontext: *const c_void,
    ) -> Result<()>;
    fn Close(&self) -> Result<()>;
    fn GetOutputCount(&self) -> Result<u32>;
    fn GetOutputProps(&self, dwoutputnum: u32) -> Result<IWMOutputMediaProps>;
    fn SetOutputProps(
        &self,
        dwoutputnum: u32,
        poutput: Option<&IWMOutputMediaProps>,
    ) -> Result<()>;
    fn GetOutputFormatCount(&self, dwoutputnumber: u32) -> Result<u32>;
    fn GetOutputFormat(
        &self,
        dwoutputnumber: u32,
        dwformatnumber: u32,
    ) -> Result<IWMOutputMediaProps>;
    fn Start(
        &self,
        cnsstart: u64,
        cnsduration: u64,
        frate: f32,
        pvcontext: *const c_void,
    ) -> Result<()>;
    fn Stop(&self) -> Result<()>;
    fn Pause(&self) -> Result<()>;
    fn Resume(&self) -> Result<()>;
}

Required Methods§

fn Open( &self, pwszurl: &PCWSTR, pcallback: Option<&IWMReaderCallback>, pvcontext: *const c_void, ) -> Result<()>

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

fn GetOutputCount(&self) -> Result<u32>

fn GetOutputProps(&self, dwoutputnum: u32) -> Result<IWMOutputMediaProps>

fn SetOutputProps( &self, dwoutputnum: u32, poutput: Option<&IWMOutputMediaProps>, ) -> Result<()>

fn GetOutputFormatCount(&self, dwoutputnumber: u32) -> Result<u32>

fn GetOutputFormat( &self, dwoutputnumber: u32, dwformatnumber: u32, ) -> Result<IWMOutputMediaProps>

fn Start( &self, cnsstart: u64, cnsduration: u64, frate: f32, pvcontext: *const c_void, ) -> Result<()>

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

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

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

Object Safety§

This trait is not object safe.

Implementors§