Struct libcamera::properties::UnitCellSize
source · pub struct UnitCellSize(pub Size);
Expand description
The pixel unit cell physical size, in nanometers.
The UnitCellSize properties defines the horizontal and vertical sizes of a single pixel unit, including its active and non-active parts. In other words, it expresses the horizontal and vertical distance between the top-left corners of adjacent pixels.
The property can be used to calculate the physical size of the sensor’s pixel array area and for calibration purposes.
Tuple Fields§
§0: Size
Trait Implementations§
source§impl Clone for UnitCellSize
impl Clone for UnitCellSize
source§fn clone(&self) -> UnitCellSize
fn clone(&self) -> UnitCellSize
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 UnitCellSize
impl ControlEntry for UnitCellSize
source§impl Debug for UnitCellSize
impl Debug for UnitCellSize
source§impl Deref for UnitCellSize
impl Deref for UnitCellSize
source§impl DerefMut for UnitCellSize
impl DerefMut for UnitCellSize
source§impl From<UnitCellSize> for ControlValue
impl From<UnitCellSize> for ControlValue
source§fn from(val: UnitCellSize) -> Self
fn from(val: UnitCellSize) -> Self
Converts to this type from the input type.
source§impl TryFrom<ControlValue> for UnitCellSize
impl TryFrom<ControlValue> for UnitCellSize
source§type Error = ControlValueError
type Error = ControlValueError
The type returned in the event of a conversion error.
impl Property for UnitCellSize
Auto Trait Implementations§
impl Freeze for UnitCellSize
impl RefUnwindSafe for UnitCellSize
impl Send for UnitCellSize
impl Sync for UnitCellSize
impl Unpin for UnitCellSize
impl UnwindSafe for UnitCellSize
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
)