3c6afc2: 7878 ldrb r0, [r7, #1]
val = img[y + x + 1]
R6 0xB2D6FE98R7 0xB2D6FE98
3c6ae46: 4bc2 ldr r3, [pc, #776] ; (3c6b150 <md_detect_motion+0x350>) ; vid_get_viewport_live_fb 3c6ae48: f000 fa59 bl 3c6b2fe <action_stack_AS_MOTION_DETECTOR+0xc2> ; long call 3c6ae4c: 1e04 subs r4, r0, #0 3c6ae4e: d103 bne.n 3c6ae58 <md_detect_motion+0x58> 3c6ae50: 4bc0 ldr r3, [pc, #768] ; (3c6b154 <md_detect_motion+0x354>) ; vid_get_viewport_fb 3c6ae52: f000 fa54 bl 3c6b2fe <action_stack_AS_MOTION_DETECTOR+0xc2> ; long call 3c6ae56: 1c04 adds r4, r0, #0 3c6ae58: 4bbf ldr r3, [pc, #764] ; (3c6b158 <md_detect_motion+0x358>) ; vid_get_viewport_image_offset 3c6ae5a: f000 fa50 bl 3c6b2fe <action_stack_AS_MOTION_DETECTOR+0xc2> ; long call 3c6ae5e: 4bbf ldr r3, [pc, #764] ; (3c6b15c <md_detect_motion+0x35c>) ; vid_get_viewport_height 3c6ae60: 1826 adds r6, r4, r0
return viewport_buffers[(active_viewport_buffer-1)&3];viewport_buffersROM:FFB2F90C DCD 0x40566B80ROM:FFB2F910 DCD 0x405A6000ROM:FFB2F914 DCD 0x405E5480ROM:FFB2F918 DCD 0x40624900
int vid_get_viewport_image_offset() { return (vid_get_viewport_yoffset() * vid_get_viewport_byte_width() * vid_get_viewport_yscale()) + (vid_get_viewport_xoffset() * 3);}
int vid_get_viewport_xoffset() { // viewport width offset table for each image size // 0 = 4:3, 1 = 16:9, 2 = 3:2, 3 = 1:1 static long vp_w[4] = { 0, 0, 0, 0 }; // should all be even values for edge overlay return vp_w[shooting_get_prop(PROPCASE_ASPECT_RATIO)];}int vid_get_viewport_yoffset() { // viewport height offset table for each image size // 0 = 4:3, 1 = 16:9, 2 = 3:2, 3 = 1:1 static long vp_h[4] = { 0, 0, 0, 0 }; return vp_h[shooting_get_prop(PROPCASE_ASPECT_RATIO)];}
R6 0x405E5480R7 0xD78653C1
Hello, thanks for discussing the problem. Right now I am out of my house. I will come back and continue my study after May 20.
Hello reyalp!I just completed a few tests with a following optimistic results:the compiled application CHDK-a3400-101a-1.2.0-2772-reyalp-1.zip has been working for 40 hours and still working without crash
What did you change there? you said that "It should create a files called MD1.DMP and / or MD2.DMP"did you do any changes along with the output files printing?
what subversion number did you use for the compilation?
Anyway, I will try to compile this version on my computer and investigate it. Something definitely has been changed and we have a chance to know what.
static int md_detect_motion(void){ int idx, tick, rv; int val, cy, cv, cu; register int col, row, x, y; if(!md_running()) { return 0; } tick = get_tick_count(); rv = 1;#ifdef OPT_MD_DEBUG if(motion_detector.comp_calls_cnt < MD_REC_CALLS_CNT) { motion_detector.comp_calls[motion_detector.comp_calls_cnt]=tick; } motion_detector.comp_calls_cnt++;#endif if(motion_detector.start_time + motion_detector.timeout < tick ) { md_save_calls_history(); motion_detector.running = 0; motion_detector.return_value = 1; return 0; } if(motion_detector.last_measure_time + motion_detector.measure_interval > tick) { // wait for the next time return 1; } motion_detector.last_measure_time = tick; return 1;}
Started by moyix General Help and Assistance on using CHDK stable releases
Started by evershade Script Writing
Started by Gun Jam General Help and Assistance on using CHDK stable releases
Started by TimeScience Hotwire! Hardware Mods, Accessories and Insights
Started by ant_thomas General Discussion and Assistance