pub enum RequestedFormatType {
AbsoluteHighestResolution,
AbsoluteHighestFrameRate,
HighestResolution(Resolution),
HighestFrameRate(u32),
Exact(CameraFormat),
Closest(CameraFormat),
None,
}Expand description
Tells the init function what camera format to pick.
AbsoluteHighestResolution: Pick the highestResolution, then pick the highest frame rate of those provided.AbsoluteHighestFrameRate: Pick the highest frame rate, then the highestResolution.HighestResolution(Option<u32>): Pick the highestResolutionfor the given framerate (theOption<u32>). If itsNone, it will pick the highest possibleResolutionHighestFrameRate(Option<Resolution>): Pick the highest frame rate for the givenResolution(theOption<Resolution>). If it isNone, it will pick the highest possinle framerate.Exact: Pick the exactCameraFormatprovided.Closest: Pick the closestCameraFormatprovided in order ofFrameFormat,Resolution, and FPS. Note that if theFrameFormatdoes not exist, this will fail to resolve.None: Pick a randomCameraFormat
Variants§
AbsoluteHighestResolution
AbsoluteHighestFrameRate
HighestResolution(Resolution)
HighestFrameRate(u32)
Exact(CameraFormat)
Closest(CameraFormat)
None
Trait Implementations§
Source§impl Clone for RequestedFormatType
impl Clone for RequestedFormatType
Source§fn clone(&self) -> RequestedFormatType
fn clone(&self) -> RequestedFormatType
Returns a duplicate 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 Debug for RequestedFormatType
impl Debug for RequestedFormatType
Source§impl Default for RequestedFormatType
impl Default for RequestedFormatType
Source§fn default() -> RequestedFormatType
fn default() -> RequestedFormatType
Returns the “default value” for a type. Read more
Source§impl Display for RequestedFormatType
impl Display for RequestedFormatType
Source§impl Hash for RequestedFormatType
impl Hash for RequestedFormatType
Source§impl Ord for RequestedFormatType
impl Ord for RequestedFormatType
Source§fn cmp(&self, other: &RequestedFormatType) -> Ordering
fn cmp(&self, other: &RequestedFormatType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RequestedFormatType
impl PartialEq for RequestedFormatType
Source§impl PartialOrd for RequestedFormatType
impl PartialOrd for RequestedFormatType
impl Copy for RequestedFormatType
impl Eq for RequestedFormatType
impl StructuralPartialEq for RequestedFormatType
Auto Trait Implementations§
impl Freeze for RequestedFormatType
impl RefUnwindSafe for RequestedFormatType
impl Send for RequestedFormatType
impl Sync for RequestedFormatType
impl Unpin for RequestedFormatType
impl UnsafeUnpin for RequestedFormatType
impl UnwindSafe for RequestedFormatType
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