Skip to content

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.

0.1.3: the plate's meter the right way round; Canon's screen back only after a moment

Claude731ebdfb7123
diff --git a/VERSION b/VERSION
index d917d3e..b1e80bb 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.1.2
+0.1.3
diff --git a/ml-dev/cameras.txt b/ml-dev/cameras.txt
index be8eb52..f87af52 100644
--- a/ml-dev/cameras.txt
+++ b/ml-dev/cameras.txt
@@ -16,19 +16,19 @@
# 100D, 70D, 550D, 600D, 1100D: the fixed reservation of Magic Lantern's boot code, MEMORY.md)
EOSM.202 working 727072 Canon EOS M
100D.101 memory 605952 Canon EOS 100D / Rebel SL1 / Kiss X7
-650D.104 nodark 689664 Canon EOS 650D / Rebel T4i / Kiss X6i | The full build gives a black screen (#34); a tester's 650D starts without the darkroom. Comes that way in the next update. | build เต็มจอดำ (#34) ผู้ทดสอบลองแบบไม่มีห้องมืดแล้วเปิดได้ อัปเดตหน้าจะออกแบบนั้น
-700D.115 nodark - Canon EOS 700D / Rebel T5i / Kiss X7i | The full build gives a black screen (#19). Comes without the darkroom in the next update, as for the 650D. | build เต็มจอดำ (#19) อัปเดตหน้าจะออกแบบไม่มีห้องมืด เหมือน 650D
+650D.104 nodark 689664 Canon EOS 650D / Rebel T4i / Kiss X6i | The full build gives a black screen (#34); a tester's 650D starts without the darkroom. Released that way since 0.1.3: develop on a computer. | build เต็มจอดำ (#34) ผู้ทดสอบลองแบบไม่มีห้องมืดแล้วเปิดได้ ตั้งแต่ 0.1.3 ออกแบบนั้น ล้างบนคอม
+700D.115 nodark - Canon EOS 700D / Rebel T5i / Kiss X7i | The full build gives a black screen (#19). Released without the darkroom since 0.1.3, as for the 650D: waiting for a tester. | build เต็มจอดำ (#19) ตั้งแต่ 0.1.3 ออกแบบไม่มีห้องมืด เหมือน 650D รอคนลอง
6D.116 working 868096 Canon EOS 6D | Works since 0.1.2 (#17, #22). | ใช้ได้ตั้งแต่ 0.1.2 (#17, #22)
70D.112 memory 605952 Canon EOS 70D
-5D3.113 issues - Canon EOS 5D Mark III (firmware 1.1.3) | Starts and shoots; the in-camera darkroom can't find the RAWs (#31). Fixed in the next update. | เปิดและถ่ายได้ แต่ห้องมืดในกล้องหาไฟล์ RAW ไม่เจอ (#31) แก้แล้วในอัปเดตหน้า
-5D3.123 issues - Canon EOS 5D Mark III (firmware 1.2.3) | Starts and shoots; the in-camera darkroom can't find the RAWs (#16, #37). Fixed in the next update. | เปิดและถ่ายได้ แต่ห้องมืดในกล้องหาไฟล์ RAW ไม่เจอ (#16, #37) แก้แล้วในอัปเดตหน้า
+5D3.113 issues - Canon EOS 5D Mark III (firmware 1.1.3) | Starts and shoots; the in-camera darkroom couldn't find the RAWs (#31): fixed in 0.1.3. | เปิดและถ่ายได้ ห้องมืดในกล้องหาไฟล์ RAW ไม่เจอ (#31) แก้แล้วใน 0.1.3
+5D3.123 issues - Canon EOS 5D Mark III (firmware 1.2.3) | Starts and shoots; the in-camera darkroom couldn't find the RAWs (#16, #37): fixed in 0.1.3. | เปิดและถ่ายได้ ห้องมืดในกล้องหาไฟล์ RAW ไม่เจอ (#16, #37) แก้แล้วใน 0.1.3
550D.109 memory 589568 Canon EOS 550D / Rebel T2i / Kiss X4
600D.102 memory 589824 Canon EOS 600D / Rebel T3i / Kiss X5
-60D.111 issues - Canon EOS 60D | Starts, shoots and develops; the prints come out magenta (#25). Fixed in the next update. | เปิด ถ่าย และล้างได้ แต่รูปออกสีม่วงอมชมพู (#25) แก้แล้วในอัปเดตหน้า
+60D.111 issues - Canon EOS 60D | Starts, shoots and develops; the prints came out magenta (#25): fixed in 0.1.3. | เปิด ถ่าย และล้างได้ รูปออกสีม่วงอมชมพู (#25) แก้แล้วใน 0.1.3
1100D.105 memory 524032 Canon EOS 1100D / Rebel T3 / Kiss X50
500D.111 testing - Canon EOS 500D / Rebel T1i / Kiss X3
50D.109 testing - Canon EOS 50D
-5D2.212 issues - Canon EOS 5D Mark II | Most hang at power on: the build is too big at start-up (#18). The next update has a smaller one (some Magic Lantern features left out, the darkroom kept) and fixes the pink prints. | ส่วนใหญ่ค้างตอนเปิด เพราะ build ใหญ่เกินหน่วยความจำตอนบูต (#18) อัปเดตหน้าจะมี build ที่เล็กลง (ตัดบางฟีเจอร์ของ Magic Lantern ออก แต่ห้องมืดยังอยู่) และแก้รูปสีชมพู
+5D2.212 issues - Canon EOS 5D Mark II | Most hang at power on: the build is too big at start-up (#18). 0.1.3 has a smaller one (some Magic Lantern features left out, the darkroom kept) and fixes the pink prints: waiting for testers. | ส่วนใหญ่ค้างตอนเปิด เพราะ build ใหญ่เกินหน่วยความจำตอนบูต (#18) 0.1.3 มี build ที่เล็กลง (ตัดบางฟีเจอร์ของ Magic Lantern ออก แต่ห้องมืดยังอยู่) และแก้รูปสีชมพู รอคนลอง
7D.203 no - Canon EOS 7D (Magic Lantern's current source doesn't build it)
200D.101 no - Canon EOS 200D / Rebel SL2
750D.110 no - Canon EOS 750D / Rebel T6i
diff --git a/ml-dev/filmos/fos_hud.c b/ml-dev/filmos/fos_hud.c
index 315a92e..3d897a8 100644
--- a/ml-dev/filmos/fos_hud.c
+++ b/ml-dev/filmos/fos_hud.c
@@ -337,7 +337,7 @@ void fos_hud_plate(uint8_t *vram, int pitch, const struct fos_hud *h, const stru
text_gray(&fos_font_xs, mx1 + 16, my + 5, "OVER", 30, 24);
if (h->lit && h->meter)
{
- int thirds = h->fstop - h->want; /* + : more light than the aperture set wants */
+ int thirds = h->want - h->fstop; /* + : brighter than the aperture set wants (over) */
int out = thirds > 6 || thirds < -6;
thirds = thirds > 6 ? 6 : thirds < -6 ? -6 : thirds;
if (!out || h->blink)
diff --git a/ml-dev/filmos/sim/hudtest.c b/ml-dev/filmos/sim/hudtest.c
index e5738f8..c00c5e4 100644
--- a/ml-dev/filmos/sim/hudtest.c
+++ b/ml-dev/filmos/sim/hudtest.c
@@ -26,7 +26,7 @@ int main(int argc, char **argv)
h.iso = 400;
fos_gfx_init();
sim_fonts();
- if (argc > 1 && argv[1][0] == 'p') { h.want = h.fstop - 2; fos_hud_plate(ov, 960, &h, &p); }
+ if (argc > 1 && argv[1][0] == 'p') { h.want = h.fstop + 2; fos_hud_plate(ov, 960, &h, &p); }
else fos_hud_draw(ov, 960, &h, &p);
static uint8_t lv[480 * 720 * 3];
diff --git a/ml-dev/fork/src/filmroll.c b/ml-dev/fork/src/filmroll.c
index c0415b9..642db01 100644
--- a/ml-dev/fork/src/filmroll.c
+++ b/ml-dev/fork/src/filmroll.c
@@ -1085,20 +1085,35 @@ static void hud_step()
* 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's screen comes back only once ours has been gone a moment: the
+ * display isn't idle for a blink while a frame is taken, and giving the
+ * screen back then (and taking it again) flashed Canon's screen, and its
+ * picture of the frame, over ours (#17). The film OS's pages take the
+ * screen at once, and so does anything that isn't a blink. */
+ static int canon_held = 0, gone_since = 0;
+ if (visible)
{
- canon_gui_disable_front_buffer();
- clrscr();
- canon_held = 1;
- hud_dirty = 1;
- dbg("hud: Canon's screen held");
+ gone_since = 0;
+ if (!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)
+ else if (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)" : "");
+ int now = get_ms_clock();
+ if (!gone_since) gone_since = now ? now : 1;
+ if (ui_running || now - gone_since > 700)
+ {
+ canon_held = 0;
+ gone_since = 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