pub struct Scene {
pub start_frame: u64,
pub end_frame: u64,
pub content_type: SceneContentType,
pub avg_spatial: f32,
pub avg_temporal: f32,
}Expand description
A contiguous run of frames that share the same scene.
Fields§
§start_frame: u64Index of the first frame in this scene.
end_frame: u64Index of the last frame in this scene (inclusive).
content_type: SceneContentTypeDominant content classification for this scene.
avg_spatial: f32Average spatial complexity across the scene.
avg_temporal: f32Average temporal complexity across the scene.
Implementations§
Source§impl Scene
impl Scene
Sourcepub fn frame_count(&self) -> u64
pub fn frame_count(&self) -> u64
Number of frames in the scene.
Sourcepub fn bit_multiplier(&self) -> f32
pub fn bit_multiplier(&self) -> f32
Bit-allocation multiplier for this scene.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Scene
impl RefUnwindSafe for Scene
impl Send for Scene
impl Sync for Scene
impl Unpin for Scene
impl UnsafeUnpin for Scene
impl UnwindSafe for Scene
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