#[repr(u8)]
pub enum CaptureResolution {
Show 13 variants Qqvga, Qvga, Vga, Svga, Hd, Sxgam, Uxga, Fhd, Qxga, Wqxga2, Res96x96, Res128x128, Res320x320,
}
Expand description

The resolution of the image captured by the camera

Qvga and Vga are good test values. Qqvga is listed in the SDK, however is also not explicitly added to the camera’s supported resolutions. Qqvga is therefore listed here but hasn’t been tested.

If both the 3mp and 5mp features are enabled, this enum will have a Fhd (1080p) default, as that is the highest resolution compatible with both cameras. When only the 3mp feature is enabled, the enum will default to the camera’s maximum supported resolution: Qxga. When only the 5mp feature is enabled, the enum will default to Wqxga2.

Variants§

§

Qqvga

QQVGA resolution (160x120). Untested, and the official Arducam SDK does not list this resolution as supported by either the 3MP or 5MP Arducam Mega.

§

Qvga

QVGA resolution (320x240). Untested.

§

Vga

VGA resolution (640x480). Tested on the Ardumcam Mega 5MP.

§

Svga

SVGA resolution (800x600). Untested.

§

Hd

HD resolution (1280x720). Untested.

§

Sxgam

SXGAM resolution (1280x960). Untested.

§

Uxga

UXGA resolution (1600x1200). Untested.

§

Fhd

FHD resolution (1920x1080). Untested. This is the default choice for this enum when both the 3mp and 5mp features are enabled.

§

Qxga

QXGA resolution (2048x1536). Untested. This is the default choice for this enum when the 3mp feature (only) is enabled.

§

Wqxga2

WQXGA2 resolution (2592x1944). Untested. This is the default choice for this enum when the 5mp feature (only) is enabled.

§

Res96x96

96x96 resolution. Untested.

§

Res128x128

128x128 resolution. Untested.

§

Res320x320

320x320 resolution. Untested.

Trait Implementations§

source§

impl Clone for CaptureResolution

source§

fn clone(&self) -> CaptureResolution

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CaptureResolution

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for CaptureResolution

source§

fn default() -> CaptureResolution

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.