Struct windows::Win32::Media::MediaFoundation::IMFCaptureEngine
pub struct IMFCaptureEngine(/* private fields */);
Implementations§
§impl IMFCaptureEngine
impl IMFCaptureEngine
pub unsafe fn Initialize<P0, P1, P2, P3>(
&self,
peventcallback: P0,
pattributes: P1,
paudiosource: P2,
pvideosource: P3
) -> Result<()>where
P0: IntoParam<IMFCaptureEngineOnEventCallback>,
P1: IntoParam<IMFAttributes>,
P2: IntoParam<IUnknown>,
P3: IntoParam<IUnknown>,
pub unsafe fn StartPreview(&self) -> Result<()>
pub unsafe fn StopPreview(&self) -> Result<()>
pub unsafe fn StartRecord(&self) -> Result<()>
pub unsafe fn StopRecord<P0, P1>( &self, bfinalize: P0, bflushunprocessedsamples: P1 ) -> Result<()>
pub unsafe fn TakePhoto(&self) -> Result<()>
pub unsafe fn GetSink( &self, mfcaptureenginesinktype: MF_CAPTURE_ENGINE_SINK_TYPE ) -> Result<IMFCaptureSink>
pub unsafe fn GetSource(&self) -> Result<IMFCaptureSource>
Trait Implementations§
§impl Clone for IMFCaptureEngine
impl Clone for IMFCaptureEngine
§fn clone(&self) -> IMFCaptureEngine
fn clone(&self) -> IMFCaptureEngine
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 IMFCaptureEngine
impl Debug for IMFCaptureEngine
§impl From<&IMFCaptureEngine> for &IUnknown
impl From<&IMFCaptureEngine> for &IUnknown
§fn from(value: &IMFCaptureEngine) -> Self
fn from(value: &IMFCaptureEngine) -> Self
Converts to this type from the input type.
§impl From<IMFCaptureEngine> for IUnknown
impl From<IMFCaptureEngine> for IUnknown
§fn from(value: IMFCaptureEngine) -> Self
fn from(value: IMFCaptureEngine) -> Self
Converts to this type from the input type.
§impl Interface for IMFCaptureEngine
impl Interface for IMFCaptureEngine
§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 IMFCaptureEngine
impl PartialEq for IMFCaptureEngine
§fn eq(&self, other: &IMFCaptureEngine) -> bool
fn eq(&self, other: &IMFCaptureEngine) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IMFCaptureEngine
impl StructuralPartialEq for IMFCaptureEngine
Auto Trait Implementations§
impl RefUnwindSafe for IMFCaptureEngine
impl !Send for IMFCaptureEngine
impl !Sync for IMFCaptureEngine
impl Unpin for IMFCaptureEngine
impl UnwindSafe for IMFCaptureEngine
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