pub struct StreamInfo {
pub format: DecodedFormat,
pub coded_resolution: Resolution,
pub display_resolution: Resolution,
pub min_num_frames: usize,
}
Expand description
Information about the current stream.
This is static information obtained from the stream itself about its requirements. It does not reflect the current settings of the decoder.
Fields§
§format: DecodedFormat
Pixel format for the output frames expected by the decoder.
coded_resolution: Resolution
Coded resolution of the stream, i.e. minimum size of the frames to be decoded into.
display_resolution: Resolution
Display resolution of the stream, i.e. the part of the decoded frames we want to display.
min_num_frames: usize
Minimum number of output frames per layer required for decoding to proceed.
Codecs keep some frames as references and cannot decode immediately into them again after they are returned. Allocating at least this number of frames guarantees that the decoder won’t starve from output frames.
Trait Implementations§
Source§impl Clone for StreamInfo
impl Clone for StreamInfo
Source§fn clone(&self) -> StreamInfo
fn clone(&self) -> StreamInfo
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for StreamInfo
impl RefUnwindSafe for StreamInfo
impl Send for StreamInfo
impl Sync for StreamInfo
impl Unpin 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