Struct windows::Win32::Media::WindowsMediaFormat::IWMSyncReader2
pub struct IWMSyncReader2(/* private fields */);
Implementations§
§impl IWMSyncReader2
impl IWMSyncReader2
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>,
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<P0>(
&self,
dwoutputnum: u32,
pallocator: P0
) -> Result<()>where
P0: IntoParam<IWMReaderAllocatorEx>,
pub unsafe fn GetAllocateForOutput( &self, dwoutputnum: u32 ) -> Result<IWMReaderAllocatorEx>
pub unsafe fn SetAllocateForStream<P0>(
&self,
wstreamnum: u16,
pallocator: P0
) -> Result<()>where
P0: IntoParam<IWMReaderAllocatorEx>,
pub unsafe fn GetAllocateForStream( &self, dwsreamnum: u16 ) -> Result<IWMReaderAllocatorEx>
Trait Implementations§
§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 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.
§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 IWMSyncReader2
impl PartialEq for IWMSyncReader2
§fn eq(&self, other: &IWMSyncReader2) -> bool
fn eq(&self, other: &IWMSyncReader2) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IWMSyncReader2
impl StructuralPartialEq for IWMSyncReader2
Auto Trait Implementations§
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