Luma curve display thingy in ML (looking for the)

Started by ItsMeLenny, May 31, 2015, 07:35:14 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ItsMeLenny

I remember using this luma curve kind of thing in ML where it would print out the curve of the light over exposure stops.
It would stop itself down using the shutter speed and print out a green curve on a graph to show how many stops the camera gets.
I think when I used it it was in the don't click me button at the time. It was back when ML iso was introduced, however I still see the graphs used by some of the devs.


ItsMeLenny

Ah sweet, thanks.
Is there a compiled version of this?

Is the latter only for raw, or can it be used for jpeg/mp4?


ItsMeLenny

oh yeah, the .mo is on that page, thanks.

I also just grabbed ML source and will compile if it doesn't work.

ItsMeLenny

Although compiling ML doesn't seem to be as simple as I once did it before.

Is there a list of libs needed on linux, I had a look through some tutorials in here but none of them seem to mention.

Audionut


ItsMeLenny

it wasn't looking in the right directory for my gcc arm, or for the right version for that matter
but from what you linked, and from the failed build just now, it looks like i have to grab a specific version
actually, no it doesn't they just grab a launchpad version, maybe i am having issues

gcc version 4.8.3 (Ubuntu 4.8.3-12ubuntu3)

long post just if you're curious, scroll to bottom for errors

~/Downloads/magic-lantern$ make 550D GCC_VERSION=-4.8 ARM_PATH=/usr

make -C  /home/cosmo/Downloads/magic-lantern/platform/550D.109
make[1]: Entering directory '/home/cosmo/Downloads/magic-lantern/platform/550D.109'
[ VERSION  ]   ../../platform/550D.109/version.bin
[ AS       ]   entry.o
[ AS       ]   ../../platform/550D.109/stubs.o
[ VERSION  ]   ../../platform/550D.109/version.c
[ CC       ]   version.o
[ CC       ]   boot-hack.o
[ CC       ]   fio-ml.o
[ CC       ]   mem.o
[ CC       ]   ico.o
[ CC       ]   edmac.o
[ CC       ]   menu.o
[ CC       ]   debug.o
[ CC       ]   rand.o
[ CC       ]   posix.o
[ CC       ]   util.o
[ CC       ]   imath.o
[ CC       ]   electronic_level.o
[ CC       ]   cfn.o
[ CC       ]   gui.o
[ CC       ]   picstyle-noauto.o
[ CC       ]   exmem.o
[ CC       ]   bmp.o
[ CC       ]   rbf_font.o
[ CC       ]   config.o
[ CC       ]   stdio.o
[ CC       ]   bitrate.o
[ CC       ]   lcdsensor.o
[ CC       ]   tweaks.o
[ CC       ]   tweaks-eyefi.o
[ CC       ]   lens.o
[ CC       ]   property.o
[ CC       ]   propvalues.o
[ CC       ]   gui-common.o
[ CC       ]   chdk-gui_draw.o
[ CC       ]   movtweaks.o
[ CC       ]   menuhelp.o
[ MENU IDX ]   ../../src/menuindexentries.h

No menuindex.txt! The "Complete user guide" menu is empty!
Run make docq to update menuindex.txt.

[ CC       ]   menuindex.o
[ CC       ]   af_patterns.o
[ CC       ]   focus.o
[ CC       ]   notify_box.o
[ CC       ]   bootflags.o
[ CC       ]   dialog_test.o
[ CC       ]   vram.o
[ CC       ]   greenscreen.o
[ CC       ]   fps-engio.o
../../src/fps-engio.c:294:12: warning: 'fps_timer_b_method' defined but not used [-Wunused-variable]
static int fps_timer_b_method = 0;
            ^
[ CC       ]   shoot.o
[ CC       ]   hdr.o
[ CC       ]   lv-img-engio.o
[ CC       ]   state-object.o
[ CC       ]   tasks.o
[ CC       ]   vsync-lite.o
[ CC       ]   tskmon.o
[ CC       ]   battery.o
[ CC       ]   imgconv.o
[ CC       ]   histogram.o
[ CC       ]   falsecolor.o
[ CC       ]   audio-ak.o
[ CC       ]   zebra.o
[ CC       ]   vectorscope.o
[ CC       ]   beep.o
[ CC       ]   crop-mode-hack.o
[ CC       ]   ph_info_disp.o
[ CC       ]   flexinfo.o
[ CC       ]   screenshot.o
[ CC       ]   fileprefix.o
[ CC       ]   lvinfo.o
[ CC       ]   builtin-enforcing.o
[ CC       ]   ml-cbr.o
[ CC       ]   raw.o
../../src/raw.c: In function 'raw_update_params_work':
../../src/raw.c:518:10: warning: #warning FIXME: are these values correct for 720p and crop modes? [-Wcpp]
         #warning FIXME: are these values correct for 720p and crop modes?
          ^
[ CC       ]   chdk-dng.o
[ CC       ]   edmac-memcpy.o
[ CC       ]   console.o
[ CC       ]   tcc-glue.o
make -C ../../tcc
make[2]: Entering directory '/home/cosmo/Downloads/magic-lantern/tcc'
/usr/bin/arm-none-eabi-gcc-4.8 -o libtcc.o -c libtcc.c -DTCC_TARGET_ARM -DWITHOUT_LIBTCC -I.  -Os -fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result
/usr/bin/arm-none-eabi-gcc-4.8 -o tccpp.o -c tccpp.c -DTCC_TARGET_ARM -DWITHOUT_LIBTCC -I.  -Os -fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result
/usr/bin/arm-none-eabi-gcc-4.8 -o tccgen.o -c tccgen.c -DTCC_TARGET_ARM -DWITHOUT_LIBTCC -I.  -Os -fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result
/usr/bin/arm-none-eabi-gcc-4.8 -o tccelf.o -c tccelf.c -DTCC_TARGET_ARM -DWITHOUT_LIBTCC -I.  -Os -fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result
/usr/bin/arm-none-eabi-gcc-4.8 -o tccasm.o -c tccasm.c -DTCC_TARGET_ARM -DWITHOUT_LIBTCC -I.  -Os -fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result
/usr/bin/arm-none-eabi-gcc-4.8 -o tccrun.o -c tccrun.c -DTCC_TARGET_ARM -DWITHOUT_LIBTCC -I.  -Os -fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result
tccrun.c: In function 'tcc_relocate_ex':
tccrun.c:190:18: warning: #warning FIXME: why does it overflow without this extra RAM when loading the big adtg_gui? [-Wcpp]
                 #warning FIXME: why does it overflow without this extra RAM when loading the big adtg_gui?
                  ^
/usr/bin/arm-none-eabi-gcc-4.8 -o arm-gen.o -c arm-gen.c -DTCC_TARGET_ARM -DWITHOUT_LIBTCC -I.  -Os -fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result
/usr/bin/arm-none-eabi-ld -r -o libtcctmp.o libtcc.o tccpp.o tccgen.o tccelf.o tccasm.o tccrun.o arm-gen.o
#~ /usr/bin/arm-none-eabi-objcopy libtcctmp.a libtcc.a --localize-symbols localsyms
/usr/bin/arm-none-eabi-objcopy libtcctmp.o libtccx.o --localize-symbols localsyms
make[2]: Leaving directory '/home/cosmo/Downloads/magic-lantern/tcc'
[ CC       ]   module.o
[ CC       ]   liveview.o
[ CC       ]   reloc.o
../../src/reloc.c: In function 'reloc':
../../src/reloc.c:203:22: warning: unused variable 'reg_dest' [-Wunused-variable]
             uint32_t reg_dest    = (instr >> 12) & 0xF;
                      ^
[ AR       ]   strrchr.o
[ AR       ]   dietlibc.a
[ AR       ]   lib_a-setjmp.o
[ AR       ]   newlib-libc.a
[ CP       ]   newlib-libm.a
[ CP       ]   gcc-libgcc.a
[ LD       ]   magiclantern
boot-hack.o: In function `my_task_dispatch_hook':
boot-hack.c:(.text+0x10c): undefined reference to `_task_overrides_start'
boot-hack.c:(.text+0x110): undefined reference to `_task_overrides_end'
boot-hack.o: In function `copy_and_restart':
boot-hack.c:(.text+0x2f4): undefined reference to `_bss_start'
boot-hack.c:(.text+0x2f8): undefined reference to `_bss_end'
boot-hack.o: In function `my_big_init_task':
boot-hack.c:(.text+0x40c): undefined reference to `_init_funcs_start'
boot-hack.c:(.text+0x410): undefined reference to `_init_funcs_end'
boot-hack.c:(.text+0x420): undefined reference to `_tasks_start'
boot-hack.c:(.text+0x424): undefined reference to `_tasks_end'
boot-hack.o: In function `my_init_task':
boot-hack.c:(.text+0x888): undefined reference to `_bss_end'
boot-hack.c:(.text+0x890): undefined reference to `_text_start'
config.o: In function `get_config_var_struct':
config.c:(.text+0x258): undefined reference to `_config_vars_start'
config.c:(.text+0x25c): undefined reference to `_config_vars_end'
config.o: In function `config_var_lookup':
config.c:(.text+0x290): undefined reference to `_config_vars_start'
config.c:(.text+0x294): undefined reference to `_config_vars_end'
config.o: In function `config_save_file':
config.c:(.text+0x8e4): undefined reference to `_config_vars_start'
config.c:(.text+0x8f8): undefined reference to `_config_vars_end'
config.o: In function `config_parse_file':
config.c:(.text+0xaa0): undefined reference to `_config_vars_start'
config.c:(.text+0xaa4): undefined reference to `_config_vars_end'
property.o: In function `prop_add_internal_handlers':
property.c:(.text+0x1a4): undefined reference to `_prop_handlers_start'
property.c:(.text+0x1a8): undefined reference to `_prop_handlers_end'
module.o: In function `_module_load_all':
module.c:(.text+0x19a8): undefined reference to `_module_symbols_start'
module.c:(.text+0x19ac): undefined reference to `_module_symbols_end'
../../src/Makefile.src:195: recipe for target 'magiclantern' failed
make[1]: *** [magiclantern] Error 1
make[1]: Leaving directory '/home/cosmo/Downloads/magic-lantern/platform/550D.109'
Makefile:18: recipe for target '550D' failed
make: *** [550D] Error 2

ItsMeLenny

eh, never mind, I managed to compile it for 550D, and compile the default modules, but I can't seem to compile modules that arn't the defaults.

Audionut

Did you add them to the makefile in the module directory?

ItsMeLenny

I ran:
/magic-lantern/modules$ make all GCC_VERSION=-4.8 ARM_PATH=/usr ML_MODULES_DYNAMIC?=iso_test
which resulted in:
Building module iso_test...
Updated HGVERSION
[ README   ]   module_strings.h
[ CC       ]   iso_test.o
iso_test.c: In function 'find_response_curve':
iso_test.c:13:5: error: implicit declaration of function 'ensure_movie_mode' [-Werror=implicit-function-declaration]
     ensure_movie_mode();
     ^
iso_test.c:15:5: error: implicit declaration of function 'set_lv_zoom' [-Werror=implicit-function-declaration]
     set_lv_zoom(5);
     ^
iso_test.c:38:9: error: implicit declaration of function 'get_spot_yuv' [-Werror=implicit-function-declaration]
         get_spot_yuv(180, &Y, &U, &V);
         ^
iso_test.c:39:9: error: implicit declaration of function 'dot' [-Werror=implicit-function-declaration]
         dot( i*5 + 40 - 16,  380 - Y*380/255 - 16, COLOR_BLUE, 3); // dot has an offset of 16px
         ^
iso_test.c:43:5: error: implicit declaration of function 'beep' [-Werror=implicit-function-declaration]
     beep();
     ^
iso_test.c: In function 'find_response_curve_ex':
iso_test.c:54:5: error: implicit declaration of function 'lens_set_iso' [-Werror=implicit-function-declaration]
     lens_set_iso(iso);
     ^
iso_test.c:55:5: error: implicit declaration of function 'set_display_gain_equiv' [-Werror=implicit-function-declaration]
     set_display_gain_equiv(dgain);
     ^
iso_test.c: In function 'iso_response_curve_current':
iso_test.c:68:5: error: implicit declaration of function 'get_digic_iso_gain_movie' [-Werror=implicit-function-declaration]
     int digic_iso_gain = is_movie_mode() ? get_digic_iso_gain_movie() : get_digic_iso_gain_photo();
     ^
iso_test.c:68:5: error: implicit declaration of function 'get_digic_iso_gain_photo' [-Werror=implicit-function-declaration]
iso_test.c: In function 'iso_movie_change_setting':
iso_test.c:160:5: error: implicit declaration of function 'take_fast_pictures' [-Werror=implicit-function-declaration]
     take_fast_pictures(1);
     ^
iso_test.c: In function 'iso_movie_test':
iso_test.c:179:5: error: implicit declaration of function 'movie_start' [-Werror=implicit-function-declaration]
     movie_start();
     ^
iso_test.c:193:5: error: implicit declaration of function 'movie_end' [-Werror=implicit-function-declaration]
     movie_end();
     ^
cc1: some warnings being treated as errors
../../Makefile.filerules:35: recipe for target 'iso_test.o' failed
make[3]: *** [iso_test.o] Error 1

********************************************************
WARNING: module iso_test failed to build, deleting
********************************************************

[ RM ]  iso_test.o iso_test.mo iso_test.sym iso_test.dep module_strings.h *.o *.d *.dep *.sym hgstamp


which was said to may not work (also had to change a letter in a piece of code as the name was too long)
but when I try raw_diag for example... oh wait, no I wasn't trying raw_diag I was trying adtg_log for some reason...
but it doesn't work either
ok but I tried lua and it compiled fiine, so it must just be some broken modules, never mind me :P



on a side note:
could something like that raw_diag or iso_test be scripted in lua, or does lua only work for automating camera funtions?