Magic Lantern Forum

Developing Magic Lantern => Reverse Engineering => Topic started by: nikfreak on May 31, 2015, 11:09:29 AM

Title: lv_unpack_raw?? Any idea what that does?
Post by: nikfreak on May 31, 2015, 11:09:29 AM
See attached picture (click to resize). Ever seen this on any other rom / camera? Tried to call it like lv_save_raw but maybe I was incapable of understanding how and what to do with lv_unpack_raw. There's also this DAF (0x7ADC8). It is seems to be a state object (there's string DafState.c in ROM or it might be a property) related to EVF and get's logged in dm.log's but I can't seem to find it in a1ex's bitbucket state object diagram pages for 70D. I think DAF could be related to 70D's DualAutofocus but it's just a guess. Anyways I tried to search for lv_unpack_raw but couldn't find any infos on that. Searching for it in another ROM didn't yield to a result...

DAF:ff0d8648:be:03: [DAF] dafProperty break 5
DAF:ff68aefc:be:03: GetDafKParam 0112
DAF:ff0d7f64:be:03: [BP] lens BP
DAF:ff0d961c:be:03: [DAF] PROP_DAF_DATA_REQUEST
.
.
.
Evf:ff68c314:be:03: [DAF] IFE 6-4 -> 6-6


(http://i57.tinypic.com/mkjgnm.jpg) (http://i57.tinypic.com/mkjgnm.jpg)
Title: Re: lv_unpack_raw?? Any idea what that does?
Post by: nikfreak on May 31, 2015, 12:46:37 PM
And here is another screenshot. Please see red markings (click to resize). Are these abort messages in my dm.log anything to worry about in conjunction with lv_unpack_raw?? I just got the feeling I have to call it somehow in code but it's just a guess...

(http://i58.tinypic.com/160wqpt.jpg) (http://i58.tinypic.com/160wqpt.jpg)
Title: Re: lv_unpack_raw?? Any idea what that does?
Post by: a1ex on May 31, 2015, 02:14:51 PM
Probably 16-bit (unpacked) raw data. You could check the value at 0x978c0.

This is also present in 7D2, but I couldn't find it in any other camera.

It seems similar to lv_af_raw.
Title: Re: lv_unpack_raw?? Any idea what that does?
Post by: nikfreak on May 31, 2015, 03:27:35 PM
MEM(0x978C0) returns 0
MEM(0x978B4) returns 34 so should be raw_type