#[non_exhaustive]pub struct FrameGeometry {
pub coded_width: u32,
pub coded_height: u32,
pub crop: Crop,
pub render: Option<(u32, u32)>,
}Expand description
The shape of a decoded picture.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.coded_width: u32Coded (stored) width.
coded_height: u32Coded (stored) height.
crop: CropVisible region in coded coordinates. Odd origins are kept, so the chroma phase of a cropped 4:2:0 picture stays known.
render: Option<(u32, u32)>Intended display size, when the stream says so; pixels are not resized.
Implementations§
Source§impl FrameGeometry
impl FrameGeometry
Sourcepub const fn full(width: u32, height: u32) -> FrameGeometry
pub const fn full(width: u32, height: u32) -> FrameGeometry
A width x height picture, all of it visible.
Trait Implementations§
Source§impl Clone for FrameGeometry
impl Clone for FrameGeometry
Source§fn clone(&self) -> FrameGeometry
fn clone(&self) -> FrameGeometry
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 FrameGeometry
Source§impl Debug for FrameGeometry
impl Debug for FrameGeometry
impl Eq for FrameGeometry
Source§impl Hash for FrameGeometry
impl Hash for FrameGeometry
Source§impl PartialEq for FrameGeometry
impl PartialEq for FrameGeometry
impl StructuralPartialEq for FrameGeometry
Auto Trait Implementations§
impl Freeze for FrameGeometry
impl RefUnwindSafe for FrameGeometry
impl Send for FrameGeometry
impl Sync for FrameGeometry
impl Unpin for FrameGeometry
impl UnsafeUnpin for FrameGeometry
impl UnwindSafe for FrameGeometry
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