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
WIP: find RAWs named _MG_ (Adobe RGB); hold Canon's screen under the DSLR HUD and plate
Claude4f24a5c358cb
diff --git a/ml-dev/filmos/fos_dark.c b/ml-dev/filmos/fos_dark.cindex 2556a6e..6d753e3 100644--- a/ml-dev/filmos/fos_dark.c+++ b/ml-dev/filmos/fos_dark.c@@ -523,7 +523,14 @@ static void next_job()char msg[120];snprintf(msg, sizeof(msg), "darkroom: roll %03d frame %d: no RAW file %s", cur_roll, f->no, f->cr2);fos_port_log(msg);- snprintf(last_error, sizeof(last_error), "No RAW file " T_MDASH " shoot with Image quality RAW");+ {+ const char *base = strrchr(f->cr2, '/');+ if (f->cr2[0])+ snprintf(last_error, sizeof(last_error), "%s isn't on the card " T_MDASH " was it shot in RAW?",+ base ? base + 1 : f->cr2);+ else+ snprintf(last_error, sizeof(last_error), "No RAW file " T_MDASH " shoot with Image quality RAW");+ }failed_frames++;done_frames++;continue;diff --git a/ml-dev/filmos/fos_lab.c b/ml-dev/filmos/fos_lab.cindex 7ce3a18..bee53ac 100644--- a/ml-dev/filmos/fos_lab.c+++ b/ml-dev/filmos/fos_lab.c@@ -357,6 +357,21 @@ int fos_lab_frames(int roll, struct fos_lab_frame *frames, int max){if (!frames[i].cr2[0]) { frames[i].missing = 1; continue; }void *f = fos_port_open(frames[i].cr2, 0);+ if (!f)+ {+ /* in Adobe RGB, Canon names the file _MG_0012.CR2, while the log+ * (Magic Lantern's file prefix) says IMG_0012.CR2: the name's first+ * letter becomes '_' */+ char *base = strrchr(frames[i].cr2, '/');+ base = base ? base + 1 : frames[i].cr2;+ if (*base && *base != '_')+ {+ char was = *base;+ *base = '_';+ f = fos_port_open(frames[i].cr2, 0);+ if (!f) *base = was;+ }+ }if (f) fos_port_close(f);else frames[i].missing = 1;}diff --git a/ml-dev/fork/src/filmroll.c b/ml-dev/fork/src/filmroll.cindex f9ad8b8..c0415b9 100644--- a/ml-dev/fork/src/filmroll.c+++ b/ml-dev/fork/src/filmroll.c@@ -1077,6 +1077,31 @@ static void hud_step()}hud_showing = visible;+#if !FOS_LV_ONLY+ /* On a DSLR Canon keeps drawing its own screen (the settings display, or+ * its LiveView overlays) and flipping it over ours: the two flicker in+ * turn, and a change of aperture or shutter brings Canon's back. While the+ * HUD or the plate is up, stop Canon flipping its buffer, as the ML menu+ * does, and wipe what it left. Canon gets the screen back as soon as ours+ * goes (a Canon menu, playback, the display off). The film OS's own pages+ * take the buffer themselves (film_ui_open). */+ static int canon_held = 0;+ if (visible && !canon_held)+ {+ canon_gui_disable_front_buffer();+ clrscr();+ canon_held = 1;+ hud_dirty = 1;+ dbg("hud: Canon's screen held");+ }+ else if (!visible && canon_held)+ {+ canon_held = 0;+ if (!ui_running) canon_gui_enable_front_buffer(1);+ dbg("hud: Canon's screen given back%s", ui_running ? " (to the film OS)" : "");+ }+#endif+/* the plate off (LiveView on, or a Canon menu over it): hand the screen back */if (plate_drawn && !plate){