Struct IWMSyncReader2
pub struct IWMSyncReader2(/* private fields */);
Implementations§
§impl IWMSyncReader2
impl IWMSyncReader2
pub unsafe fn SetRangeByTimecode( &self, wstreamnum: u16, pstart: *const WMT_TIMECODE_EXTENSION_DATA, pend: *const WMT_TIMECODE_EXTENSION_DATA, ) -> Result<()>
pub unsafe fn SetRangeByFrameEx( &self, wstreamnum: u16, qwframenumber: u64, cframestoread: i64, ) -> Result<u64>
pub unsafe fn SetAllocateForOutput<P1>(
&self,
dwoutputnum: u32,
pallocator: P1,
) -> Result<()>where
P1: Param<IWMReaderAllocatorEx>,
pub unsafe fn GetAllocateForOutput( &self, dwoutputnum: u32, ) -> Result<IWMReaderAllocatorEx>
pub unsafe fn SetAllocateForStream<P1>(
&self,
wstreamnum: u16,
pallocator: P1,
) -> Result<()>where
P1: Param<IWMReaderAllocatorEx>,
pub unsafe fn GetAllocateForStream( &self, dwsreamnum: u16, ) -> Result<IWMReaderAllocatorEx>
Methods from Deref<Target = IWMSyncReader>§
pub unsafe fn Open<P0>(&self, pwszfilename: P0) -> Result<()>where
P0: Param<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( &self, wstreamnum: u16, fcompressed: bool, ) -> Result<()>
pub unsafe fn GetReadStreamSamples(&self, wstreamnum: u16) -> Result<BOOL>
pub unsafe fn GetOutputSetting<P1>(
&self,
dwoutputnum: u32,
pszname: P1,
ptype: *mut WMT_ATTR_DATATYPE,
pvalue: *mut u8,
pcblength: *mut u16,
) -> Result<()>where
P1: Param<PCWSTR>,
pub unsafe fn SetOutputSetting<P1>(
&self,
dwoutputnum: u32,
pszname: P1,
type: WMT_ATTR_DATATYPE,
pvalue: &[u8],
) -> Result<()>where
P1: Param<PCWSTR>,
pub unsafe fn GetOutputCount(&self) -> Result<u32>
pub unsafe fn GetOutputProps( &self, dwoutputnum: u32, ) -> Result<IWMOutputMediaProps>
pub unsafe fn SetOutputProps<P1>(
&self,
dwoutputnum: u32,
poutput: P1,
) -> Result<()>where
P1: Param<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: Param<IStream>,
Trait Implementations§
§impl CanInto<IUnknown> for IWMSyncReader2
impl CanInto<IUnknown> for IWMSyncReader2
§impl CanInto<IWMSyncReader> for IWMSyncReader2
impl CanInto<IWMSyncReader> for IWMSyncReader2
§impl Clone for IWMSyncReader2
impl Clone for IWMSyncReader2
§fn clone(&self) -> IWMSyncReader2
fn clone(&self) -> IWMSyncReader2
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 IWMSyncReader2
impl Debug for IWMSyncReader2
§impl Deref for IWMSyncReader2
impl Deref for IWMSyncReader2
§impl From<&IWMSyncReader2> for &IUnknown
impl From<&IWMSyncReader2> for &IUnknown
§fn from(value: &IWMSyncReader2) -> Self
fn from(value: &IWMSyncReader2) -> 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<IWMSyncReader2> for IUnknown
impl From<IWMSyncReader2> for IUnknown
§fn from(value: IWMSyncReader2) -> Self
fn from(value: IWMSyncReader2) -> 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 IWMSyncReader2
impl Interface for IWMSyncReader2
§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.
§unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
§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§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§impl PartialEq for IWMSyncReader2
impl PartialEq for IWMSyncReader2
impl Eq for IWMSyncReader2
impl StructuralPartialEq for IWMSyncReader2
Auto Trait Implementations§
impl Freeze for IWMSyncReader2
impl RefUnwindSafe for IWMSyncReader2
impl !Send for IWMSyncReader2
impl !Sync for IWMSyncReader2
impl Unpin for IWMSyncReader2
impl UnwindSafe for IWMSyncReader2
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