Struct windows::Win32::Media::MediaFoundation::IMFSampleGrabberSinkCallback
pub struct IMFSampleGrabberSinkCallback(/* private fields */);
Implementations§
§impl IMFSampleGrabberSinkCallback
impl IMFSampleGrabberSinkCallback
pub unsafe fn OnClockStart( &self, hnssystemtime: i64, llclockstartoffset: i64 ) -> Result<()>
pub unsafe fn OnClockStop(&self, hnssystemtime: i64) -> Result<()>
pub unsafe fn OnClockPause(&self, hnssystemtime: i64) -> Result<()>
pub unsafe fn OnClockRestart(&self, hnssystemtime: i64) -> Result<()>
pub unsafe fn OnClockSetRate( &self, hnssystemtime: i64, flrate: f32 ) -> Result<()>
pub unsafe fn OnSetPresentationClock<P0>(
&self,
ppresentationclock: P0
) -> Result<()>where
P0: IntoParam<IMFPresentationClock>,
pub unsafe fn OnProcessSample( &self, guidmajormediatype: *const GUID, dwsampleflags: u32, llsampletime: i64, llsampleduration: i64, psamplebuffer: &[u8] ) -> Result<()>
pub unsafe fn OnShutdown(&self) -> Result<()>
Trait Implementations§
§impl Clone for IMFSampleGrabberSinkCallback
impl Clone for IMFSampleGrabberSinkCallback
§fn clone(&self) -> IMFSampleGrabberSinkCallback
fn clone(&self) -> IMFSampleGrabberSinkCallback
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 IMFSampleGrabberSinkCallback
impl Debug for IMFSampleGrabberSinkCallback
§impl From<&IMFSampleGrabberSinkCallback> for &IMFClockStateSink
impl From<&IMFSampleGrabberSinkCallback> for &IMFClockStateSink
§fn from(value: &IMFSampleGrabberSinkCallback) -> Self
fn from(value: &IMFSampleGrabberSinkCallback) -> Self
Converts to this type from the input type.
§impl From<&IMFSampleGrabberSinkCallback> for &IUnknown
impl From<&IMFSampleGrabberSinkCallback> for &IUnknown
§fn from(value: &IMFSampleGrabberSinkCallback) -> Self
fn from(value: &IMFSampleGrabberSinkCallback) -> Self
Converts to this type from the input type.
§impl From<&IMFSampleGrabberSinkCallback2> for &IMFSampleGrabberSinkCallback
impl From<&IMFSampleGrabberSinkCallback2> for &IMFSampleGrabberSinkCallback
§fn from(value: &IMFSampleGrabberSinkCallback2) -> Self
fn from(value: &IMFSampleGrabberSinkCallback2) -> Self
Converts to this type from the input type.
§impl From<IMFSampleGrabberSinkCallback> for IMFClockStateSink
impl From<IMFSampleGrabberSinkCallback> for IMFClockStateSink
§fn from(value: IMFSampleGrabberSinkCallback) -> Self
fn from(value: IMFSampleGrabberSinkCallback) -> Self
Converts to this type from the input type.
§impl From<IMFSampleGrabberSinkCallback> for IUnknown
impl From<IMFSampleGrabberSinkCallback> for IUnknown
§fn from(value: IMFSampleGrabberSinkCallback) -> Self
fn from(value: IMFSampleGrabberSinkCallback) -> Self
Converts to this type from the input type.
§impl From<IMFSampleGrabberSinkCallback2> for IMFSampleGrabberSinkCallback
impl From<IMFSampleGrabberSinkCallback2> for IMFSampleGrabberSinkCallback
§fn from(value: IMFSampleGrabberSinkCallback2) -> Self
fn from(value: IMFSampleGrabberSinkCallback2) -> Self
Converts to this type from the input type.
§impl Interface for IMFSampleGrabberSinkCallback
impl Interface for IMFSampleGrabberSinkCallback
§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 IMFSampleGrabberSinkCallback
impl PartialEq for IMFSampleGrabberSinkCallback
§fn eq(&self, other: &IMFSampleGrabberSinkCallback) -> bool
fn eq(&self, other: &IMFSampleGrabberSinkCallback) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IMFSampleGrabberSinkCallback
impl StructuralPartialEq for IMFSampleGrabberSinkCallback
Auto Trait Implementations§
impl RefUnwindSafe for IMFSampleGrabberSinkCallback
impl !Send for IMFSampleGrabberSinkCallback
impl !Sync for IMFSampleGrabberSinkCallback
impl Unpin for IMFSampleGrabberSinkCallback
impl UnwindSafe for IMFSampleGrabberSinkCallback
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