pub struct CameraFormat {
pub size: Size,
pub min_frame_rate: f64,
pub max_frame_rate: f64,
pub photo_sizes: Vec<Size>,
}Expand description
One way a camera runs, with all its outputs.
Fields§
§size: SizeThe size of its frames and its preview, in the camera’s own pixels.
min_frame_rate: f64The slowest frame rate it keeps at that size, in frames a second.
max_frame_rate: f64The fastest frame rate it keeps at that size, in frames a second.
photo_sizes: Vec<Size>The sizes it takes photos at while it runs so, in pixels.
Trait Implementations§
Source§impl Clone for CameraFormat
impl Clone for CameraFormat
Source§impl Debug for CameraFormat
impl Debug for CameraFormat
Source§impl PartialEq for CameraFormat
impl PartialEq for CameraFormat
impl StructuralPartialEq for CameraFormat
Auto Trait Implementations§
impl Freeze for CameraFormat
impl RefUnwindSafe for CameraFormat
impl Send for CameraFormat
impl Sync for CameraFormat
impl Unpin for CameraFormat
impl UnsafeUnpin for CameraFormat
impl UnwindSafe for CameraFormat
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