Changeset 1088
- Timestamp:
- 03/14/11 00:00:05 (2 years ago)
- File:
-
- 1 edited
-
trunk/core/motion_detector.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/motion_detector.c
r1087 r1088 65 65 66 66 67 68 69 //#define MD_XY2IDX(x,y) ((y)*motion_detector->columns+x)70 67 71 68 … … 388 385 motion_detector->prev=tmp; 389 386 390 // memset(motion_detector->points,0, sizeof(motion_detector->points));391 // WARNING. maybe not optimized392 //for(i=0 ; i<motion_detector->rows*motion_detector->columns ; i++ ){393 // motion_detector->points[i]=0;394 // motion_detector->curr[i]=0;395 //}396 397 398 // >> fill "curr" array399 400 // if (strcmp(PLATFORM,"a610")==0 || strcmp(PLATFORM,"a710")==0) {401 387 img = vid_get_viewport_live_fb(); 402 388 if(img==NULL){ 403 389 img = vid_get_viewport_fb(); 404 390 } 405 /* the following is commented because of a bugreport: http://chdk.kernreaktor.org/mantis/view.php?id=70406 #if defined (CAMERA_s5is)407 long bufoff = *((long *) 0x218C);408 if(bufoff == 0) {409 bufoff = 2;410 } else {411 bufoff--;412 }413 img += bufoff * 0x7E900;414 #endif415 */416 391 417 392 #ifdef OPT_MD_DEBUG … … 432 407 for (col=0; col < motion_detector->columns; col++, idx++) 433 408 { 409 // clear cur and points, previously down in it's own loop 410 // might be able to avoid clearing all, since some are overwritten below 434 411 motion_detector->points[idx] = 0; 435 412 motion_detector->curr[idx] = 0; … … 538 515 if( ( motion_detector->parameters&MD_DO_IMMEDIATE_SHOOT ) !=0){ 539 516 //make shoot 540 //kbd_sched_shoot();541 517 md_kbd_sched_immediate_shoot(motion_detector->parameters&MD_NO_SHUTTER_RELEASE_ON_SHOOT); 542 518 }
Note: See TracChangeset
for help on using the changeset viewer.