Struct libcamera::controls::ScalerCrop
source · pub struct ScalerCrop(pub Rectangle);
Expand description
Sets the image portion that will be scaled to form the whole of the final output image. The (x,y) location of this rectangle is relative to the PixelArrayActiveAreas that is being used. The units remain native sensor pixels, even if the sensor is being used in a binning or skipping mode.
This control is only present when the pipeline supports scaling. Its maximum valid value is given by the properties::ScalerCropMaximum property, and the two can be used to implement digital zoom.
Tuple Fields§
§0: Rectangle
Trait Implementations§
source§impl Clone for ScalerCrop
impl Clone for ScalerCrop
source§fn clone(&self) -> ScalerCrop
fn clone(&self) -> ScalerCrop
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 moresource§impl ControlEntry for ScalerCrop
impl ControlEntry for ScalerCrop
source§impl Debug for ScalerCrop
impl Debug for ScalerCrop
source§impl Deref for ScalerCrop
impl Deref for ScalerCrop
source§impl DerefMut for ScalerCrop
impl DerefMut for ScalerCrop
source§impl From<ScalerCrop> for ControlValue
impl From<ScalerCrop> for ControlValue
source§fn from(val: ScalerCrop) -> Self
fn from(val: ScalerCrop) -> Self
Converts to this type from the input type.
source§impl TryFrom<ControlValue> for ScalerCrop
impl TryFrom<ControlValue> for ScalerCrop
source§type Error = ControlValueError
type Error = ControlValueError
The type returned in the event of a conversion error.
impl Control for ScalerCrop
Auto Trait Implementations§
impl Freeze for ScalerCrop
impl RefUnwindSafe for ScalerCrop
impl Send for ScalerCrop
impl Sync for ScalerCrop
impl Unpin for ScalerCrop
impl UnwindSafe for ScalerCrop
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)