Skip to main content

Crate kallo_core

Crate kallo_core 

Source
Expand description

§kallo-core

The reference implementation of the Kallo film model.

Phase 0 is deliberately small: a negative emulsion with a characteristic curve, a development-time dependency, and a paper that the negative is printed onto. Every quantity is in f64 and in physical units, so that the GPU implementation in kallo-gpu (later) can be checked against it.

§The model

linear RGB ──► log10 E ──► negative density ──► print density ──► linear RGB
                             (H&D curve,          (paper curve,
                              development)         auto-balanced)

§What is deliberately not here yet

  • Spectral quantities beyond the exposure step (dye absorption, illuminants).
  • Colour management: the phase-0 model carries no primaries.
  • Couplers, grain, halation.

Those land in later phases.

Re-exports§

pub use color::linear_to_srgb;
pub use color::srgb_to_linear;
pub use contact::print as contact_print;
pub use contact::Contact;
pub use contact::ContactSpec;
pub use contact::LADDER_MINUTES;
pub use contact::SheetGeometry;
pub use couplers::Couplers;
pub use couplers::fit_inhibition;
pub use curve::CharacteristicCurve;
pub use densitometer::Densitometer;
pub use development::DevelopmentParams;
pub use emulsion::FILM_STOCKS;
pub use emulsion::FilmProcess;
pub use emulsion::FilmStock;
pub use emulsion::PAPER_STOCKS;
pub use emulsion::PaperEmulsion;
pub use emulsion::PaperStock;
pub use emulsion::Provenance;
pub use emulsion::film_stock;
pub use emulsion::paper_stock;
pub use grain::GrainField;
pub use halation::Halation;
pub use halation::Halo;
pub use interimage::InterImage;
pub use lut::ExposureLut;
pub use meter::Metering;
pub use model::ExposureModel;
pub use model::PrintModel;
pub use model::ScanModel;
pub use model::SpectralModel;
pub use mtf::EmulsionBlur;
pub use pipeline::Finishing;
pub use pipeline::PreparedRender;
pub use pipeline::RenderParams;
pub use pipeline::ScalarModel;
pub use pipeline::render_pixels;
pub use pipeline::render_pixels_finished;
pub use pipeline::render_pixels_with_grain;
pub use print::Masking;
pub use print::PrintContext;
pub use scan::ScanContext;
pub use scanner::Scanner;
pub use spectral::CameraProfile;
pub use spectral::SpectralContext;

Modules§

color
Transfer functions.
contact
The contact proof: the film laid on paper, exposed once.
couplers
Couplers: the chemistry that makes a colour negative more than three layers.
curve
The characteristic curve — density as a function of log10 exposure.
densitometer
The densitometer: what an instrument reads off the developed strip.
development
Development kinetics.
dye
A dye formed by more than one emulsion — ADR 0017, first piece.
emulsion
Built-in film and paper stocks.
filters
The light between the lamp and the negative: heat glass and colour pack.
grain
Grain, as a particle process rather than as noise.
halation
Halation: the light that comes back.
interimage
The cyan-sensitive layer’s inhibitor, acting on the cyan dye — ADR 0018.
lut
A baked lookup table for the spectral exposure.
meter
Metering: where a frame’s exposure is, and how far it is from where the film expects it.
model
The spectral model, flattened into numbers another backend can replay.
mtf
The emulsion’s own blur: how much a real negative softens an image.
pipeline
The render: a negative is exposed, developed, and printed.
print
Spectral printing: dye densities to paper layer exposures.
psf
Point-spread helpers shared by the physics that moves light between pixels.
scan
Spectral scanning: print densities to output colour.
scanner
The scan: the optics and the noise between the print and the file.
spectral
Spectral exposure: linear RGB → spectrum → film layer responses.