From the patch from http://www.magiclantern.fm/forum/index.php?topic=3085.0 :
The 550D doesn't support FIO_RenameFile, but from the above code, it seems like it's possible to customize the file prefix of captured images before capture.
Can the replacement of IMG_ and _MG_ with arbitrary 4-character strings be added as a feature?
This is a feature only found in the high end Canon cameras and makes file management much easier (in case of multiple non-1D / 5D3 cameras).
Not sure how this would affect movies (MVI_) or whatever else is implemented in the firmware.
Code Select
+static char file_prefix[8] = "IMG_";
+PROP_HANDLER(PROP_FILE_PREFIX)
+{
+ snprintf(file_prefix, sizeof(file_prefix), "%s", (const char *)buf);
+}
+
+int hdr_increment_file_prefix()
+{
+ if (hdr_counter < 0) return 0; // you have poured alcohol into the CPU?
+ hdr_counter++;
+ if (hdr_counter >= 1000) return 0; // you took 1000 bracketed shots?!
+
+ if (hdr_counter < 100) snprintf(hdr_prefix, 8, "B%02d_", hdr_counter);
+ else snprintf(hdr_prefix, 8, "B%03d", hdr_counter);
+
+ while (lens_info.job_state) msleep(100);
[b]+ prop_request_change(PROP_FILE_PREFIX, hdr_prefix, 8);[/b]
+ hdr_file_prefix_dirty = 1;
+}
The 550D doesn't support FIO_RenameFile, but from the above code, it seems like it's possible to customize the file prefix of captured images before capture.
Can the replacement of IMG_ and _MG_ with arbitrary 4-character strings be added as a feature?
This is a feature only found in the high end Canon cameras and makes file management much easier (in case of multiple non-1D / 5D3 cameras).
Not sure how this would affect movies (MVI_) or whatever else is implemented in the firmware.