Trait IMFCaptureSource_Impl
pub trait IMFCaptureSource_Impl: IUnknownImpl {
Show 14 methods
// Required methods
fn GetCaptureDeviceSource(
&self,
mfcaptureenginedevicetype: MF_CAPTURE_ENGINE_DEVICE_TYPE,
ppmediasource: OutRef<'_, IMFMediaSource>,
) -> Result<()>;
fn GetCaptureDeviceActivate(
&self,
mfcaptureenginedevicetype: MF_CAPTURE_ENGINE_DEVICE_TYPE,
ppactivate: OutRef<'_, IMFActivate>,
) -> Result<()>;
fn GetService(
&self,
rguidservice: *const GUID,
riid: *const GUID,
ppunknown: OutRef<'_, IUnknown>,
) -> Result<()>;
fn AddEffect(
&self,
dwsourcestreamindex: u32,
punknown: Ref<'_, IUnknown>,
) -> Result<()>;
fn RemoveEffect(
&self,
dwsourcestreamindex: u32,
punknown: Ref<'_, IUnknown>,
) -> Result<()>;
fn RemoveAllEffects(&self, dwsourcestreamindex: u32) -> Result<()>;
fn GetAvailableDeviceMediaType(
&self,
dwsourcestreamindex: u32,
dwmediatypeindex: u32,
ppmediatype: OutRef<'_, IMFMediaType>,
) -> Result<()>;
fn SetCurrentDeviceMediaType(
&self,
dwsourcestreamindex: u32,
pmediatype: Ref<'_, IMFMediaType>,
) -> Result<()>;
fn GetCurrentDeviceMediaType(
&self,
dwsourcestreamindex: u32,
) -> Result<IMFMediaType>;
fn GetDeviceStreamCount(&self) -> Result<u32>;
fn GetDeviceStreamCategory(
&self,
dwsourcestreamindex: u32,
) -> Result<MF_CAPTURE_ENGINE_STREAM_CATEGORY>;
fn GetMirrorState(&self, dwstreamindex: u32) -> Result<BOOL>;
fn SetMirrorState(
&self,
dwstreamindex: u32,
fmirrorstate: BOOL,
) -> Result<()>;
fn GetStreamIndexFromFriendlyName(&self, uifriendlyname: u32) -> Result<u32>;
}
Required Methods§
fn GetCaptureDeviceSource( &self, mfcaptureenginedevicetype: MF_CAPTURE_ENGINE_DEVICE_TYPE, ppmediasource: OutRef<'_, IMFMediaSource>, ) -> Result<()>
fn GetCaptureDeviceActivate( &self, mfcaptureenginedevicetype: MF_CAPTURE_ENGINE_DEVICE_TYPE, ppactivate: OutRef<'_, IMFActivate>, ) -> Result<()>
fn GetService( &self, rguidservice: *const GUID, riid: *const GUID, ppunknown: OutRef<'_, IUnknown>, ) -> Result<()>
fn AddEffect( &self, dwsourcestreamindex: u32, punknown: Ref<'_, IUnknown>, ) -> Result<()>
fn RemoveEffect( &self, dwsourcestreamindex: u32, punknown: Ref<'_, IUnknown>, ) -> Result<()>
fn RemoveAllEffects(&self, dwsourcestreamindex: u32) -> Result<()>
fn GetAvailableDeviceMediaType( &self, dwsourcestreamindex: u32, dwmediatypeindex: u32, ppmediatype: OutRef<'_, IMFMediaType>, ) -> Result<()>
fn SetCurrentDeviceMediaType( &self, dwsourcestreamindex: u32, pmediatype: Ref<'_, IMFMediaType>, ) -> Result<()>
fn GetCurrentDeviceMediaType( &self, dwsourcestreamindex: u32, ) -> Result<IMFMediaType>
fn GetDeviceStreamCount(&self) -> Result<u32>
fn GetDeviceStreamCategory( &self, dwsourcestreamindex: u32, ) -> Result<MF_CAPTURE_ENGINE_STREAM_CATEGORY>
fn GetMirrorState(&self, dwstreamindex: u32) -> Result<BOOL>
fn SetMirrorState(&self, dwstreamindex: u32, fmirrorstate: BOOL) -> Result<()>
fn GetStreamIndexFromFriendlyName(&self, uifriendlyname: u32) -> Result<u32>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.