Hi baldand,
first of all, thank you for this great tool!
I have a few questions regarding the default exposure of the log curve.
I'm usually very careful about my exposures and just checked, with RawDigger, where 18 % grey falls in the linear space. It seems Canon places it in the area around 1024, which is at -4 stops.
The sRGB curve that you use for example, seems to use 2048 for it's grey value.
I've checked the code as you suggested, fired up good old Derive and plotted a chart, normalized to 10 bit output (0-1023).
This is what I got:

According to this, the 18 % grey, exposed with a light meter, should fall at 60 % or 614.
I tried checking the code for any default exposure correction value, but could not find it so far.
Could you maybe explain why the log curve is a bit darker?
Or did I overlook something?
Arri is putting grey at 40 % IRE for example, Sony with S-Log around 38 %:
http://blog.abelcine.com/wp-content/uploads/2009/12/SRW_ITG_S-Log_001_IO_EN.pdfMy goal is to expose correctly, set WB, switch to the log curve and batch convert to ProRes.
In my NLE I would then apply a log2r709 curve, with an S to avoid clipping.
Just my thoughts/2c,
BR,
Michael