pub struct FrameContext {
pub decode_order: u64,
pub display_order: u64,
pub width: u32,
pub height: u32,
pub bit_depth: u8,
pub is_keyframe: bool,
pub show_frame: bool,
pub ref_frame_indices: [Option<usize>; 8],
pub super_res_scale: f32,
pub has_film_grain: bool,
}Expand description
Context for processing a single frame.
Fields§
§decode_order: u64Frame number in decode order.
display_order: u64Frame number in display order.
width: u32Frame width (may differ from config for super-res).
height: u32Frame height.
bit_depth: u8Bit depth for this frame.
is_keyframe: boolIs this a keyframe?
show_frame: boolIs this a show frame?
ref_frame_indices: [Option<usize>; 8]Reference frame indices.
super_res_scale: f32Super-resolution scale factor (1.0 = no scaling).
has_film_grain: boolFilm grain parameters present.
Implementations§
Source§impl FrameContext
impl FrameContext
Trait Implementations§
Source§impl Clone for FrameContext
impl Clone for FrameContext
Source§fn clone(&self) -> FrameContext
fn clone(&self) -> FrameContext
Returns a duplicate 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 moreSource§impl Debug for FrameContext
impl Debug for FrameContext
Auto Trait Implementations§
impl Freeze for FrameContext
impl RefUnwindSafe for FrameContext
impl Send for FrameContext
impl Sync for FrameContext
impl Unpin for FrameContext
impl UnsafeUnpin for FrameContext
impl UnwindSafe for FrameContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more