pub enum FrameFormat {
MJPEG,
YUYV,
NV12,
GRAY,
RAWRGB,
RAWBGR,
}Expand description
Describes a frame format (i.e. how the bytes themselves are encoded). Often called FourCC.
- YUYV is a mathematical color space. You can read more here.
- NV12 is same as above. Note that a partial compression (e.g. [16, 235] may be coerced to [0, 255].
- MJPEG is a motion-jpeg compressed frame, it allows for high frame rates.
- GRAY is a grayscale image format, usually for specialized cameras such as IR Cameras.
- RAWRGB is a Raw RGB888 format.
Variants§
Trait Implementations§
Source§impl Clone for FrameFormat
impl Clone for FrameFormat
Source§fn clone(&self) -> FrameFormat
fn clone(&self) -> FrameFormat
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 FrameFormat
impl Debug for FrameFormat
Source§impl Display for FrameFormat
impl Display for FrameFormat
Source§impl FromStr for FrameFormat
impl FromStr for FrameFormat
Source§type Err = NokhwaError
type Err = NokhwaError
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<FrameFormat, <FrameFormat as FromStr>::Err>
fn from_str(s: &str) -> Result<FrameFormat, <FrameFormat as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for FrameFormat
impl Hash for FrameFormat
Source§impl Ord for FrameFormat
impl Ord for FrameFormat
Source§fn cmp(&self, other: &FrameFormat) -> Ordering
fn cmp(&self, other: &FrameFormat) -> 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 FrameFormat
impl PartialEq for FrameFormat
Source§impl PartialOrd for FrameFormat
impl PartialOrd for FrameFormat
impl Copy for FrameFormat
impl Eq for FrameFormat
impl StructuralPartialEq for FrameFormat
Auto Trait Implementations§
impl Freeze for FrameFormat
impl RefUnwindSafe for FrameFormat
impl Send for FrameFormat
impl Sync for FrameFormat
impl Unpin for FrameFormat
impl UnsafeUnpin for FrameFormat
impl UnwindSafe for FrameFormat
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