Skip to main content

StockArgs

Struct StockArgs 

Source
pub struct StockArgs {
Show 15 fields pub film: String, pub film_file: Option<PathBuf>, pub paper: String, pub filters: String, pub heat_glass: Option<String>, pub dev_time: Option<f64>, pub temp: Option<f64>, pub spectral: bool, pub lut_size: usize, pub dictionary: Vec<PathBuf>, pub lut: Option<PathBuf>, pub allow_model_mismatch: bool, pub camera: Option<String>, pub spectral_print: bool, pub spectral_scan: bool,
}
Expand description

Options shared by every command that touches a film and a paper.

Fields§

§film: String

Film stock id (see kalo stocks).

Every built-in stock is digitised from a manufacturer’s data sheet; its file says field by field what was measured and what was borrowed. The default is the one stock with nothing borrowed at all.

§film_file: Option<PathBuf>

A .kalofilm file to render instead of a compiled stock.

The file carries the film’s curves, spectra and a field-by-field account of what was measured; data/films/ in the repository has twenty-four. Loading one needs no recompile, which is the point of the format.

§paper: String

Paper stock id (see kalo stocks).

§filters: String

The enlarger’s colour pack, in Kodak CC units: 30M, 20Y+10M.

Empty is the model without a filter pack. The dial settings are the film’s own convention — 1 CC is 0.01 of density — and the spectra behind them are KODAK’s tables, so a pack moves the print the way the filter it names would.

§heat_glass: Option<String>

A heat-absorbing glass in the light path, e.g. kg3.

§dev_time: Option<f64>

Development time in minutes. Defaults to the time the stock’s data sheet drew its curves at, which is not the same for every film.

§temp: Option<f64>

Developer temperature in degrees Celsius. Defaults to the sheet’s.

§spectral: bool

Expose through the spectral path instead of the per-channel scalar one.

§lut_size: usize

Bake the spectral exposure into a table of this size per axis. Requires –spectral. Zero disables the table.

§dictionary: Vec<PathBuf>

Reflectance CSV to use as the spectral dictionary prior. Repeat it to mix material families into one dictionary. Requires –spectral. Without it the polynomial prior is used alone.

§lut: Option<PathBuf>

Use a table baked by kalo bake instead of computing the exposure.

§allow_model_mismatch: bool

Load a table even if it was baked for a different camera or film.

§camera: Option<String>

Which sensor the input is assumed to have come from.

srgb (the input’s own definition, the default), observer (CIE 1931, for input that is already XYZ), generic (three broad Gaussians), or a path to a measured sensitivity CSV. Requires –spectral.

§spectral_print: bool

Print through spectral dye absorption and paper layer sensitivities.

§spectral_scan: bool

Scan through spectral reflectance, illuminant and observer.

Trait Implementations§

Source§

impl Args for StockArgs

Source§

fn group_id() -> Option<Id>

Report the ArgGroup::id for this set of arguments
Source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

impl Debug for StockArgs

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<&StockArgs> for StockChoice

Source§

fn from(stock: &StockArgs) -> Self

Converts to this type from the input type.
Source§

impl FromArgMatches for StockArgs

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>

Source§

impl<T> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSendSync for T

Source§

impl<T> WasmNotSync for T
where T: Sync,