pub struct LutFile {
pub title: String,
pub size: usize,
pub data: Vec<f32>,
pub domain_min: [f32; 3],
pub domain_max: [f32; 3],
}Expand description
A parsed 3D LUT.
Fields§
§title: String§size: usize§data: Vec<f32>size³ × 3 values, red fastest.
domain_min: [f32; 3]The input domain the table expects (.cube DOMAIN_MIN/DOMAIN_MAX,
LUT_3D_INPUT_RANGE): an input c samples the table at (c - min) / (max - min),
saturating outside. [0, 1] is the identity default; applying a table with any other
domain is rejected upstream until Color Lookup carries it through.
domain_max: [f32; 3]Implementations§
Trait Implementations§
impl StructuralPartialEq for LutFile
Auto Trait Implementations§
impl Forget for LutFile
impl Freeze for LutFile
impl Move for LutFile
impl RefUnwindSafe for LutFile
impl Send for LutFile
impl Sync for LutFile
impl Unpin for LutFile
impl UnsafeUnpin for LutFile
impl UnwindSafe for LutFile
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