pub enum ResolutionMode {
FullHD60,
FullHD30,
FullHD25,
HD60,
HD30,
HD25,
Unknown(u8),
}Expand description
Common video resolution modes for Ptz cameras.
Note: These mappings are based on common PtzOptics camera patterns. Actual mappings may vary by camera model and firmware version.
Variants§
FullHD60
1920x1080 @ 60fps
FullHD30
1920x1080 @ 30fps
FullHD25
1920x1080 @ 25fps
HD60
1280x720 @ 60fps
HD30
1280x720 @ 30fps
HD25
1280x720 @ 25fps
Unknown(u8)
Unknown or camera-specific mode
Implementations§
Source§impl ResolutionMode
impl ResolutionMode
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Get a human-readable description of the resolution mode.
Sourcepub fn frame_rate(&self) -> Option<f32>
pub fn frame_rate(&self) -> Option<f32>
Get the frame rate for this resolution mode.
Trait Implementations§
Source§impl Clone for ResolutionMode
impl Clone for ResolutionMode
Source§fn clone(&self) -> ResolutionMode
fn clone(&self) -> ResolutionMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ResolutionMode
Source§impl Debug for ResolutionMode
impl Debug for ResolutionMode
impl Eq for ResolutionMode
Source§impl PartialEq for ResolutionMode
impl PartialEq for ResolutionMode
Source§fn eq(&self, other: &ResolutionMode) -> bool
fn eq(&self, other: &ResolutionMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResolutionMode
Auto Trait Implementations§
impl Freeze for ResolutionMode
impl RefUnwindSafe for ResolutionMode
impl Send for ResolutionMode
impl Sync for ResolutionMode
impl Unpin for ResolutionMode
impl UnsafeUnpin for ResolutionMode
impl UnwindSafe for ResolutionMode
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