Magic Lantern Forum

Using Magic Lantern => General Help Q&A => Topic started by: ItsMeLenny on July 05, 2019, 03:14:57 AM

Title: Saving into two picture styles?
Post by: ItsMeLenny on July 05, 2019, 03:14:57 AM
Is there a way I can have the picture save on the camera into two different picture styles?
And in particular; two custom picture styles?
(inb4 "just use raw")

edit & explanation:
I want to take the photo in jpeg, and instead of it saving one photo in "neutral" or what not,
I want it to process and save 2 jpegs of the same picture, one in neutral and one in say standard (or custom picture profile).
Title: Re: Saving into two picture styles?
Post by: scrax on July 05, 2019, 05:53:17 AM
I don't understand the question, probably.
Because you can apply any pic style to raw files with DPP
https://global.canon/en/imaging/picturestyle/file/dpp.html
Title: Re: Saving into two picture styles?
Post by: ItsMeLenny on July 05, 2019, 06:24:19 AM
Quote from: scrax on July 05, 2019, 05:53:17 AM
I don't understand the question, probably.
Because you can apply any pic style to raw files with DPP
https://global.canon/en/imaging/picturestyle/file/dpp.html
Thanks for answering with exactly what I said not to answer with.
Title: Re: Saving into two picture styles?
Post by: a1ex on July 05, 2019, 09:43:28 AM
Might be doable, but only if there is a very good reason to do so ;)

The captured image arrives into main RAM first, as 14-bit Bayer (raw) data; from there, it is:
- compressed to LJ92 (for saving as CR2)
- rendered to 8-bit YUV422 (picture style is applied here)
- compressed to plain JPEG (different settings, depending on the destination - standalone JPG output, embedded preview in CR2, low-res thumbnails)

It might be possible to re-render the Bayer image with different settings, but the exact process is not trivial to figure out. Some relevant threads:
https://www.magiclantern.fm/forum/index.php?topic=1915.0
https://www.magiclantern.fm/forum/index.php?topic=18315.0
https://www.magiclantern.fm/forum/index.php?topic=2388.0

Estimated difficulty:
- for me: between a few weeks and a few years of working full time on this topic (90% research, 10% implementation)
- for a Canon engineer: a couple of days or maybe even less.

Good luck!
Title: Re: Saving into two picture styles?
Post by: ItsMeLenny on July 07, 2019, 06:04:18 AM
Ah thanks very much, I had a slight feeling that it already existed so I just wanted to check, but I guess it doesn't then, I'll check out the links you've posted.