Struct windows::Win32::Media::WindowsMediaFormat::IWMSyncReader
pub struct IWMSyncReader(/* private fields */);
Implementations§
§impl IWMSyncReader
impl IWMSyncReader
pub unsafe fn Open<P0>(&self, pwszfilename: P0) -> Result<()>where
P0: IntoParam<PCWSTR>,
pub unsafe fn Close(&self) -> Result<()>
pub unsafe fn SetRange(&self, cnsstarttime: u64, cnsduration: i64) -> Result<()>
pub unsafe fn SetRangeByFrame( &self, wstreamnum: u16, qwframenumber: u64, cframestoread: i64 ) -> Result<()>
pub unsafe fn GetNextSample( &self, wstreamnum: u16, ppsample: *mut Option<INSSBuffer>, pcnssampletime: *mut u64, pcnsduration: *mut u64, pdwflags: *mut u32, pdwoutputnum: *mut u32, pwstreamnum: *mut u16 ) -> Result<()>
pub unsafe fn SetStreamsSelected( &self, cstreamcount: u16, pwstreamnumbers: *const u16, pselections: *const WMT_STREAM_SELECTION ) -> Result<()>
pub unsafe fn GetStreamSelected( &self, wstreamnum: u16 ) -> Result<WMT_STREAM_SELECTION>
pub unsafe fn SetReadStreamSamples<P0>(
&self,
wstreamnum: u16,
fcompressed: P0
) -> Result<()>where
P0: IntoParam<BOOL>,
pub unsafe fn GetReadStreamSamples(&self, wstreamnum: u16) -> Result<BOOL>
pub unsafe fn GetOutputSetting<P0>(
&self,
dwoutputnum: u32,
pszname: P0,
ptype: *mut WMT_ATTR_DATATYPE,
pvalue: *mut u8,
pcblength: *mut u16
) -> Result<()>where
P0: IntoParam<PCWSTR>,
pub unsafe fn SetOutputSetting<P0>(
&self,
dwoutputnum: u32,
pszname: P0,
type: WMT_ATTR_DATATYPE,
pvalue: &[u8]
) -> Result<()>where
P0: IntoParam<PCWSTR>,
pub unsafe fn GetOutputCount(&self) -> Result<u32>
pub unsafe fn GetOutputProps( &self, dwoutputnum: u32 ) -> Result<IWMOutputMediaProps>
pub unsafe fn SetOutputProps<P0>(
&self,
dwoutputnum: u32,
poutput: P0
) -> Result<()>where
P0: IntoParam<IWMOutputMediaProps>,
pub unsafe fn GetOutputFormatCount(&self, dwoutputnum: u32) -> Result<u32>
pub unsafe fn GetOutputFormat( &self, dwoutputnum: u32, dwformatnum: u32 ) -> Result<IWMOutputMediaProps>
pub unsafe fn GetOutputNumberForStream(&self, wstreamnum: u16) -> Result<u32>
pub unsafe fn GetStreamNumberForOutput(&self, dwoutputnum: u32) -> Result<u16>
pub unsafe fn GetMaxOutputSampleSize(&self, dwoutput: u32) -> Result<u32>
pub unsafe fn GetMaxStreamSampleSize(&self, wstream: u16) -> Result<u32>
pub unsafe fn OpenStream<P0>(&self, pstream: P0) -> Result<()>where
P0: IntoParam<IStream>,
Trait Implementations§
§impl Clone for IWMSyncReader
impl Clone for IWMSyncReader
§fn clone(&self) -> IWMSyncReader
fn clone(&self) -> IWMSyncReader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for IWMSyncReader
impl Debug for IWMSyncReader
§impl From<&IWMSyncReader> for &IUnknown
impl From<&IWMSyncReader> for &IUnknown
§fn from(value: &IWMSyncReader) -> Self
fn from(value: &IWMSyncReader) -> Self
Converts to this type from the input type.
§impl From<&IWMSyncReader2> for &IWMSyncReader
impl From<&IWMSyncReader2> for &IWMSyncReader
§fn from(value: &IWMSyncReader2) -> Self
fn from(value: &IWMSyncReader2) -> Self
Converts to this type from the input type.
§impl From<IWMSyncReader> for IUnknown
impl From<IWMSyncReader> for IUnknown
§fn from(value: IWMSyncReader) -> Self
fn from(value: IWMSyncReader) -> Self
Converts to this type from the input type.
§impl From<IWMSyncReader2> for IWMSyncReader
impl From<IWMSyncReader2> for IWMSyncReader
§fn from(value: IWMSyncReader2) -> Self
fn from(value: IWMSyncReader2) -> Self
Converts to this type from the input type.
§impl Interface for IWMSyncReader
impl Interface for IWMSyncReader
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§impl PartialEq for IWMSyncReader
impl PartialEq for IWMSyncReader
§fn eq(&self, other: &IWMSyncReader) -> bool
fn eq(&self, other: &IWMSyncReader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IWMSyncReader
impl StructuralPartialEq for IWMSyncReader
Auto Trait Implementations§
impl RefUnwindSafe for IWMSyncReader
impl !Send for IWMSyncReader
impl !Sync for IWMSyncReader
impl Unpin for IWMSyncReader
impl UnwindSafe for IWMSyncReader
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more