Nanomad, what's the procedure I should follow to get the silent_pic_get_name function to be defined?
I decided to do some raw test using the don't click me option (which is what you guys use for debugging I think).
static void run_raw_test()
{
/* Run RAW test to determine the best RAW_TYPE on 650D */
for (int type = 0; type < 100; type++)
{
/* from lv_af_raw -> lv_set_raw_type(arg0 ? 4 : 7) -> MEM(0x2D168) = a bunch of values, default 34 */
/* RAW value address for 650D is 0x350B4 */
MEM(0x350B4) = type;
/* this enables a LiveView debug flag that gives us 14-bit RAW data. Cool! */
raw_lv_request();
msleep(50);
/* after filling one frame, disable the flag so we can dump the data without tearing */
raw_lv_release();
msleep(50);
/* update raw geometry, autodetect black/white levels etc */
raw_update_params();
/* save it to card */
char* fn = silent_pic_get_name();
bmp_printf(FONT_MED, 0, 60, "Saving raw type %d", type);
save_dng(fn);
}
}
I got the code from a post by a1ex.
This is what I did until now:
1. In the src/debug.c I wrote my custom function which does the test (captures dngs and saves to sd using the silent_pic_get_name function).
2. I changed the function that the Don't Click Me option calls to the custom function I wrote.
3. In the features.h file in the 650D, I defined two options: #define FEATURE_SILENT_PIC and #define FEATURE_SILENT_PIC_RAW which is what I think causes the function to be defined....
But until now, all I get is this when compiling:
debug.o: In function `run_raw_test':
debug.c:(.text+0xb90): undefined reference to `silent_pic_get_name'
state-object.o: In function `stateobj_lv_spy':
state-object.c:(.text+0x150): undefined reference to `silent_pic_preview'
state-object.c:(.text+0x1d0): undefined reference to `silent_pic_raw_vsync'
Got any ideas?