pub struct VideoLimits {
pub height: Option<u32>,
pub frame_rate: Option<u32>,
pub bit_depth: Option<u32>,
pub hdr: Option<BTreeSet<HdrFormat>>,
}Expand description
The most video a client can show. Each limit that is None is no
limit.
Fields§
§height: Option<u32>Lines, e.g. 1080. At Hello, what the decoders take: the screen’s
mode goes with each plan (DisplayCapabilities::height).
frame_rate: Option<u32>Frames per second. At Hello, what the decoders take, as height.
bit_depth: Option<u32>Bits per sample, e.g. 8 for a client without 10-bit decoding.
hdr: Option<BTreeSet<HdrFormat>>The HDR formats it shows as HDR; anything else is tone-mapped to
SDR. None: all of them.
Trait Implementations§
Source§impl Clone for VideoLimits
impl Clone for VideoLimits
Source§impl Debug for VideoLimits
impl Debug for VideoLimits
Source§impl Default for VideoLimits
impl Default for VideoLimits
Source§impl<'de> Deserialize<'de> for VideoLimits
impl<'de> Deserialize<'de> for VideoLimits
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for VideoLimits
Source§impl PartialEq for VideoLimits
impl PartialEq for VideoLimits
Source§impl Serialize for VideoLimits
impl Serialize for VideoLimits
impl StructuralPartialEq for VideoLimits
Auto Trait Implementations§
impl Freeze for VideoLimits
impl RefUnwindSafe for VideoLimits
impl Send for VideoLimits
impl Sync for VideoLimits
impl Unpin for VideoLimits
impl UnsafeUnpin for VideoLimits
impl UnwindSafe for VideoLimits
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