pub struct FrameState<T: Pixel> {
pub input: Arc<Frame<T>>,
pub input_hres: Arc<Plane<T>>,
pub input_qres: Arc<Plane<T>>,
pub frame_me_stats: Arc<RwLock<[FrameMEStats; 8]>>,
}Fields§
§input: Arc<Frame<T>>§input_hres: Arc<Plane<T>>§input_qres: Arc<Plane<T>>§frame_me_stats: Arc<RwLock<[FrameMEStats; 8]>>Implementations§
Source§impl<T: Pixel> FrameState<T>
impl<T: Pixel> FrameState<T>
Sourcepub fn new_with_frame_and_me_stats_and_rec(
frame: Arc<Frame<T>>,
me_stats: Arc<RwLock<[FrameMEStats; 8]>>,
) -> Self
pub fn new_with_frame_and_me_stats_and_rec( frame: Arc<Frame<T>>, me_stats: Arc<RwLock<[FrameMEStats; 8]>>, ) -> Self
Similar to [FrameState::new_with_frame], but takes an me_stats
and rec to enable reusing the same underlying allocations to create
a FrameState
This function primarily exists for [estimate_inter_costs], and so
it does not create hres or qres versions of frame as downscaling is
somewhat expensive and are not needed for [estimate_inter_costs].
Trait Implementations§
Source§impl<T: Clone + Pixel> Clone for FrameState<T>
impl<T: Clone + Pixel> Clone for FrameState<T>
Source§fn clone(&self) -> FrameState<T>
fn clone(&self) -> FrameState<T>
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 moreAuto Trait Implementations§
impl<T> Freeze for FrameState<T>
impl<T> RefUnwindSafe for FrameState<T>where
T: RefUnwindSafe,
impl<T> Send for FrameState<T>
impl<T> Sync for FrameState<T>
impl<T> Unpin for FrameState<T>
impl<T> UnsafeUnpin for FrameState<T>
impl<T> UnwindSafe for FrameState<T>where
T: RefUnwindSafe,
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