Struct windows::Media::Devices::VideoDeviceController
pub struct VideoDeviceController(/* private fields */);
Implementations§
§impl VideoDeviceController
impl VideoDeviceController
pub fn SetDeviceProperty<P0>(
&self,
propertyid: &HSTRING,
propertyvalue: P0,
) -> Result<()>where
P0: Param<IInspectable>,
pub fn GetDeviceProperty(&self, propertyid: &HSTRING) -> Result<IInspectable>
pub fn CameraOcclusionInfo(&self) -> Result<CameraOcclusionInfo>
pub fn TryAcquireExclusiveControl( &self, deviceid: &HSTRING, mode: MediaCaptureDeviceExclusiveControlReleaseMode, ) -> Result<bool>
pub fn LowLagPhotoSequence(&self) -> Result<LowLagPhotoSequenceControl>
pub fn LowLagPhoto(&self) -> Result<LowLagPhotoControl>
pub fn SceneModeControl(&self) -> Result<SceneModeControl>
pub fn TorchControl(&self) -> Result<TorchControl>
pub fn FlashControl(&self) -> Result<FlashControl>
pub fn WhiteBalanceControl(&self) -> Result<WhiteBalanceControl>
pub fn ExposureControl(&self) -> Result<ExposureControl>
pub fn FocusControl(&self) -> Result<FocusControl>
pub fn ExposureCompensationControl(&self) -> Result<ExposureCompensationControl>
pub fn IsoSpeedControl(&self) -> Result<IsoSpeedControl>
pub fn RegionsOfInterestControl(&self) -> Result<RegionsOfInterestControl>
pub fn PrimaryUse(&self) -> Result<CaptureUse>
pub fn SetPrimaryUse(&self, value: CaptureUse) -> Result<()>
pub fn VariablePhotoSequenceController( &self, ) -> Result<VariablePhotoSequenceController>
pub fn PhotoConfirmationControl(&self) -> Result<PhotoConfirmationControl>
pub fn ZoomControl(&self) -> Result<ZoomControl>
pub fn ExposurePriorityVideoControl( &self, ) -> Result<ExposurePriorityVideoControl>
pub fn DesiredOptimization(&self) -> Result<MediaCaptureOptimization>
pub fn SetDesiredOptimization( &self, value: MediaCaptureOptimization, ) -> Result<()>
pub fn HdrVideoControl(&self) -> Result<HdrVideoControl>
pub fn OpticalImageStabilizationControl( &self, ) -> Result<OpticalImageStabilizationControl>
pub fn AdvancedPhotoControl(&self) -> Result<AdvancedPhotoControl>
pub fn Id(&self) -> Result<HSTRING>
pub fn GetDevicePropertyById<P0>(
&self,
propertyid: &HSTRING,
maxpropertyvaluesize: P0,
) -> Result<VideoDeviceControllerGetDevicePropertyResult>where
P0: Param<IReference<u32>>,
pub fn SetDevicePropertyById<P0>(
&self,
propertyid: &HSTRING,
propertyvalue: P0,
) -> Result<VideoDeviceControllerSetDevicePropertyStatus>where
P0: Param<IInspectable>,
pub fn GetDevicePropertyByExtendedId<P0>(
&self,
extendedpropertyid: &[u8],
maxpropertyvaluesize: P0,
) -> Result<VideoDeviceControllerGetDevicePropertyResult>where
P0: Param<IReference<u32>>,
pub fn SetDevicePropertyByExtendedId( &self, extendedpropertyid: &[u8], propertyvalue: &[u8], ) -> Result<VideoDeviceControllerSetDevicePropertyStatus>
pub fn VideoTemporalDenoisingControl( &self, ) -> Result<VideoTemporalDenoisingControl>
pub fn InfraredTorchControl(&self) -> Result<InfraredTorchControl>
pub fn PanelBasedOptimizationControl( &self, ) -> Result<PanelBasedOptimizationControl>
pub fn DigitalWindowControl(&self) -> Result<DigitalWindowControl>
pub fn GetAvailableMediaStreamProperties( &self, mediastreamtype: MediaStreamType, ) -> Result<IVectorView<IMediaEncodingProperties>>
pub fn GetMediaStreamProperties( &self, mediastreamtype: MediaStreamType, ) -> Result<IMediaEncodingProperties>
pub fn SetMediaStreamPropertiesAsync<P0>(
&self,
mediastreamtype: MediaStreamType,
mediaencodingproperties: P0,
) -> Result<IAsyncAction>where
P0: Param<IMediaEncodingProperties>,
pub fn Brightness(&self) -> Result<MediaDeviceControl>
pub fn Contrast(&self) -> Result<MediaDeviceControl>
pub fn Hue(&self) -> Result<MediaDeviceControl>
pub fn WhiteBalance(&self) -> Result<MediaDeviceControl>
pub fn BacklightCompensation(&self) -> Result<MediaDeviceControl>
pub fn Pan(&self) -> Result<MediaDeviceControl>
pub fn Tilt(&self) -> Result<MediaDeviceControl>
pub fn Zoom(&self) -> Result<MediaDeviceControl>
pub fn Roll(&self) -> Result<MediaDeviceControl>
pub fn Exposure(&self) -> Result<MediaDeviceControl>
pub fn Focus(&self) -> Result<MediaDeviceControl>
pub fn TrySetPowerlineFrequency( &self, value: PowerlineFrequency, ) -> Result<bool>
pub fn TryGetPowerlineFrequency( &self, value: &mut PowerlineFrequency, ) -> Result<bool>
Trait Implementations§
§impl CanInto<IInspectable> for VideoDeviceController
impl CanInto<IInspectable> for VideoDeviceController
§impl CanInto<IMediaDeviceController> for VideoDeviceController
impl CanInto<IMediaDeviceController> for VideoDeviceController
§impl CanInto<IUnknown> for VideoDeviceController
impl CanInto<IUnknown> for VideoDeviceController
§impl Clone for VideoDeviceController
impl Clone for VideoDeviceController
§fn clone(&self) -> VideoDeviceController
fn clone(&self) -> VideoDeviceController
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 VideoDeviceController
impl Debug for VideoDeviceController
§impl From<&VideoDeviceController> for &IInspectable
impl From<&VideoDeviceController> for &IInspectable
§fn from(value: &VideoDeviceController) -> Self
fn from(value: &VideoDeviceController) -> Self
Converts to this type from the input type.
§impl From<&VideoDeviceController> for &IUnknown
impl From<&VideoDeviceController> for &IUnknown
§fn from(value: &VideoDeviceController) -> Self
fn from(value: &VideoDeviceController) -> Self
Converts to this type from the input type.
§impl From<VideoDeviceController> for IInspectable
impl From<VideoDeviceController> for IInspectable
§fn from(value: VideoDeviceController) -> Self
fn from(value: VideoDeviceController) -> Self
Converts to this type from the input type.
§impl From<VideoDeviceController> for IUnknown
impl From<VideoDeviceController> for IUnknown
§fn from(value: VideoDeviceController) -> Self
fn from(value: VideoDeviceController) -> Self
Converts to this type from the input type.
§impl Interface for VideoDeviceController
impl Interface for VideoDeviceController
§const IID: GUID = <IVideoDeviceController as windows_core::Interface>::IID
const IID: GUID = <IVideoDeviceController as windows_core::Interface>::IID
The
GUID
associated with the interface.§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§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§impl PartialEq for VideoDeviceController
impl PartialEq for VideoDeviceController
§fn eq(&self, other: &VideoDeviceController) -> bool
fn eq(&self, other: &VideoDeviceController) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for VideoDeviceController
impl StructuralPartialEq for VideoDeviceController
Auto Trait Implementations§
impl Freeze for VideoDeviceController
impl RefUnwindSafe for VideoDeviceController
impl !Send for VideoDeviceController
impl !Sync for VideoDeviceController
impl Unpin for VideoDeviceController
impl UnwindSafe for VideoDeviceController
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)