pub struct Limits {
pub min_width: Option<u32>,
pub min_height: Option<u32>,
pub max_width: Option<u32>,
pub max_height: Option<u32>,
/* private fields */
}Expand description
The frame sizes a driver encodes a codec at, as probe reports them.
Each bound is None where the driver names none, which leaves it unknown
rather than zero. The driver holds the size the frame is coded at to them,
which for H.265 is the frame rounded up to whole minimum coding blocks and
to the surface alignment, so compare a frame with Limits::check.
Fields§
§min_width: Option<u32>§min_height: Option<u32>§max_width: Option<u32>§max_height: Option<u32>Implementations§
Trait Implementations§
impl Copy for Limits
impl Eq for Limits
impl StructuralPartialEq for Limits
Auto Trait Implementations§
impl Forget for Limits
impl Freeze for Limits
impl Move for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin for Limits
impl UnwindSafe for Limits
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