M-Film: film simulation for Canon EOS cameras with Magic Lantern. 72 film stocks (Portra, Velvia, Tri-X, CineStill…), a film-camera interface and an in-camera darkroom that develops your RAWs. 5D Mark III, 6D, 600D, 650D, 700D, EOS M and more.
C analog-photographycamera-firmwarecanoncanon-5d-mark-ivcanon-5dmark2canon-6dcanon-eoscr2darkroomeos-mfilm-emulationfilm-lookfilm-photographyfilm-simulationfujifilm-recipeskodak-portralutmagic-lanternphotographyraw
Darkroom: print size settable at build time; devtest writes the JPEG too
Claude79a139967338
diff --git a/ml-dev/filmos/fos_dev.h b/ml-dev/filmos/fos_dev.hindex 9403bf9..e524183 100644--- a/ml-dev/filmos/fos_dev.h+++ b/ml-dev/filmos/fos_dev.h@@ -42,8 +42,11 @@ void fos_film_color(const struct fos_look *f, const float lin[3], float out[3]);/* ---------------------------------------------------------------- prints */+/* the camera's screen; the web darkroom builds bigger prints with -D */+#ifndef FOS_PRINT_W#define FOS_PRINT_W 720#define FOS_PRINT_H 480+#endif#define FOS_PRINT_COLOURS 240 /* palette indices 1..240 */#define FOS_FIXED_BASE 241 /* 241..254: the same in every palette */#define FOS_FIXED_N 14 /* 241..254 */diff --git a/ml-dev/filmos/sim/devtest.c b/ml-dev/filmos/sim/devtest.cindex d5715bb..c1d1045 100644--- a/ml-dev/filmos/sim/devtest.c+++ b/ml-dev/filmos/sim/devtest.c@@ -121,6 +121,8 @@ int main(int argc, char **argv)if (getenv("FOS_LUT_DIR")) fos_dev_cache(getenv("FOS_LUT_DIR"));int t0 = fos_port_ms(), steps = 0, p = 0;struct fos_dev *d = fos_dev_start(argv[a], argv[a + 1], film, 1, "2026-10-22 17:45", "2.8");+ /* FOS_JPEG: the full-colour frame as a JPEG too, as the camera writes it to DCIM */+ if (getenv("FOS_JPEG")) fos_dev_jpeg(d, getenv("FOS_JPEG"));while ((p = fos_dev_step(d, 40)) >= 0 && p < 1000) steps++;if (p < 0) { fprintf(stderr, "%s: %s\n", argv[a], fos_dev_error(d)); fos_dev_free(d); return 1; }printf("%s: %d ms, %d steps\n", argv[a], fos_port_ms() - t0, steps);