Struct windows::Win32::Media::MediaFoundation::IMFMediaSourceExtension
pub struct IMFMediaSourceExtension(/* private fields */);
Implementations§
§impl IMFMediaSourceExtension
impl IMFMediaSourceExtension
pub unsafe fn GetSourceBuffers(&self) -> Option<IMFSourceBufferList>
pub unsafe fn GetActiveSourceBuffers(&self) -> Option<IMFSourceBufferList>
pub unsafe fn GetReadyState(&self) -> MF_MSE_READY
pub unsafe fn GetDuration(&self) -> f64
pub unsafe fn SetDuration(&self, duration: f64) -> Result<()>
pub unsafe fn AddSourceBuffer<P0, P1>(
&self,
type: P0,
pnotify: P1
) -> Result<IMFSourceBuffer>where
P0: IntoParam<BSTR>,
P1: IntoParam<IMFSourceBufferNotify>,
pub unsafe fn RemoveSourceBuffer<P0>(&self, psourcebuffer: P0) -> Result<()>where
P0: IntoParam<IMFSourceBuffer>,
pub unsafe fn SetEndOfStream(&self, error: MF_MSE_ERROR) -> Result<()>
pub unsafe fn IsTypeSupported<P0>(&self, type: P0) -> BOOLwhere
P0: IntoParam<BSTR>,
pub unsafe fn GetSourceBuffer( &self, dwstreamindex: u32 ) -> Option<IMFSourceBuffer>
Trait Implementations§
§impl Clone for IMFMediaSourceExtension
impl Clone for IMFMediaSourceExtension
§fn clone(&self) -> IMFMediaSourceExtension
fn clone(&self) -> IMFMediaSourceExtension
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 IMFMediaSourceExtension
impl Debug for IMFMediaSourceExtension
§impl From<&IMFMediaSourceExtension> for &IUnknown
impl From<&IMFMediaSourceExtension> for &IUnknown
§fn from(value: &IMFMediaSourceExtension) -> Self
fn from(value: &IMFMediaSourceExtension) -> Self
Converts to this type from the input type.
§impl From<IMFMediaSourceExtension> for IUnknown
impl From<IMFMediaSourceExtension> for IUnknown
§fn from(value: IMFMediaSourceExtension) -> Self
fn from(value: IMFMediaSourceExtension) -> Self
Converts to this type from the input type.
§impl Interface for IMFMediaSourceExtension
impl Interface for IMFMediaSourceExtension
§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 IMFMediaSourceExtension
impl PartialEq for IMFMediaSourceExtension
§fn eq(&self, other: &IMFMediaSourceExtension) -> bool
fn eq(&self, other: &IMFMediaSourceExtension) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IMFMediaSourceExtension
impl StructuralPartialEq for IMFMediaSourceExtension
Auto Trait Implementations§
impl RefUnwindSafe for IMFMediaSourceExtension
impl !Send for IMFMediaSourceExtension
impl !Sync for IMFMediaSourceExtension
impl Unpin for IMFMediaSourceExtension
impl UnwindSafe for IMFMediaSourceExtension
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