pub struct Selection {Show 13 fields
pub development: DevelopmentParams,
pub film: &'static FilmStock,
pub paper: &'static PaperStock,
pub spectral: bool,
pub camera: CameraProfile,
pub lut_size: usize,
pub dictionary: Vec<PathBuf>,
pub lut: Option<PathBuf>,
pub allow_model_mismatch: bool,
pub spectral_print: bool,
pub filters: FilterPack,
pub heat_glass: Option<HeatGlass>,
pub spectral_scan: bool,
}Expand description
A stock selection resolved against the model and this build.
Fields§
§development: DevelopmentParamsHow the negative was developed.
film: &'static FilmStockThe negative.
paper: &'static PaperStockThe paper.
spectral: boolWhether to expose through the spectral path.
camera: CameraProfileWhich sensor the input is assumed to have come from.
lut_size: usizeSide of the baked exposure table, or 0 for no table.
dictionary: Vec<PathBuf>Reflectance CSVs for the dictionary prior.
lut: Option<PathBuf>A table baked by kalo bake.
allow_model_mismatch: boolWhether a model mismatch in the table is tolerated.
spectral_print: boolWhether to print through the spectral model.
filters: FilterPackThe enlarger’s colour pack, in Kodak CC units.
heat_glass: Option<HeatGlass>A heat-absorbing glass in the light path.
spectral_scan: boolWhether to scan through the spectral model.
Implementations§
Source§impl Selection
impl Selection
Sourcepub fn render_params(
&self,
exposure_ev: f64,
print_ev: f64,
interimage: bool,
film: &'static FilmStock,
) -> RenderParams
pub fn render_params( &self, exposure_ev: f64, print_ev: f64, interimage: bool, film: &'static FilmStock, ) -> RenderParams
Bundle the selection into the core’s render parameters.
Sourcepub fn prepare(
&self,
exposure_ev: f64,
interimage: bool,
) -> Result<PreparedRender, Error>
pub fn prepare( &self, exposure_ev: f64, interimage: bool, ) -> Result<PreparedRender, Error>
Load the table or dictionary, if requested, and prepare the render.
Sourcepub fn prepare_with_film(
&self,
exposure_ev: f64,
print_ev: f64,
interimage: bool,
film: &'static FilmStock,
) -> Result<PreparedRender, Error>
pub fn prepare_with_film( &self, exposure_ev: f64, print_ev: f64, interimage: bool, film: &'static FilmStock, ) -> Result<PreparedRender, Error>
Prepare a render whose film came from somewhere other than the compiled
table — a .kalofilm file, in practice.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Selection
impl Freeze for Selection
impl Move for Selection
impl RefUnwindSafe for Selection
impl Send for Selection
impl Sync for Selection
impl Unpin for Selection
impl UnsafeUnpin for Selection
impl UnwindSafe for Selection
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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> ⓘ
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