#[non_exhaustive]pub struct StreamInfo {
pub width: usize,
pub height: usize,
pub crop: Region,
pub coded_width: usize,
pub coded_height: usize,
pub format: PixelFormat,
pub colorimetry: Option<Colorimetry>,
pub buffers: usize,
pub memory: OutputMemory,
}Expand description
Geometry and format of the decoded pictures, known once the decoder has parsed the stream’s headers.
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.width: usizeWidth of the visible picture in pixels.
height: usizeHeight of the visible picture in pixels.
crop: RegionThe visible picture within the coded one.
coded_width: usizeWidth of the coded picture, a whole number of macroblocks.
coded_height: usizeHeight of the coded picture, a whole number of macroblocks.
format: PixelFormatPixel format of the decoded frames.
colorimetry: Option<Colorimetry>Colorimetry the device reports, when it reports one.
buffers: usizeBuffers in the output pool.
memory: OutputMemoryWhose memory the pictures are decoded into.
Trait Implementations§
Source§impl Clone for StreamInfo
impl Clone for StreamInfo
Source§impl Debug for StreamInfo
impl Debug for StreamInfo
Source§impl PartialEq for StreamInfo
impl PartialEq for StreamInfo
impl StructuralPartialEq for StreamInfo
Auto Trait Implementations§
impl Freeze for StreamInfo
impl RefUnwindSafe for StreamInfo
impl Send for StreamInfo
impl Sync for StreamInfo
impl Unpin for StreamInfo
impl UnsafeUnpin for StreamInfo
impl UnwindSafe for StreamInfo
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