Trait windows::Win32::Media::MediaFoundation::IMFSinkWriter_Impl
pub trait IMFSinkWriter_Impl: Sized {
// Required methods
fn AddStream(&self, ptargetmediatype: Option<&IMFMediaType>) -> Result<u32>;
fn SetInputMediaType(
&self,
dwstreamindex: u32,
pinputmediatype: Option<&IMFMediaType>,
pencodingparameters: Option<&IMFAttributes>
) -> Result<()>;
fn BeginWriting(&self) -> Result<()>;
fn WriteSample(
&self,
dwstreamindex: u32,
psample: Option<&IMFSample>
) -> Result<()>;
fn SendStreamTick(&self, dwstreamindex: u32, lltimestamp: i64) -> Result<()>;
fn PlaceMarker(
&self,
dwstreamindex: u32,
pvcontext: *const c_void
) -> Result<()>;
fn NotifyEndOfSegment(&self, dwstreamindex: u32) -> Result<()>;
fn Flush(&self, dwstreamindex: u32) -> Result<()>;
fn Finalize(&self) -> Result<()>;
fn GetServiceForStream(
&self,
dwstreamindex: u32,
guidservice: *const GUID,
riid: *const GUID,
ppvobject: *mut *mut c_void
) -> Result<()>;
fn GetStatistics(
&self,
dwstreamindex: u32,
pstats: *mut MF_SINK_WRITER_STATISTICS
) -> Result<()>;
}
Required Methods§
fn AddStream(&self, ptargetmediatype: Option<&IMFMediaType>) -> Result<u32>
fn SetInputMediaType( &self, dwstreamindex: u32, pinputmediatype: Option<&IMFMediaType>, pencodingparameters: Option<&IMFAttributes> ) -> Result<()>
fn BeginWriting(&self) -> Result<()>
fn WriteSample( &self, dwstreamindex: u32, psample: Option<&IMFSample> ) -> Result<()>
fn SendStreamTick(&self, dwstreamindex: u32, lltimestamp: i64) -> Result<()>
fn PlaceMarker( &self, dwstreamindex: u32, pvcontext: *const c_void ) -> Result<()>
fn NotifyEndOfSegment(&self, dwstreamindex: u32) -> Result<()>
fn Flush(&self, dwstreamindex: u32) -> Result<()>
fn Finalize(&self) -> Result<()>
fn GetServiceForStream( &self, dwstreamindex: u32, guidservice: *const GUID, riid: *const GUID, ppvobject: *mut *mut c_void ) -> Result<()>
fn GetStatistics( &self, dwstreamindex: u32, pstats: *mut MF_SINK_WRITER_STATISTICS ) -> Result<()>
Object Safety§
This trait is not object safe.