Changeset 1088


Ignore:
Timestamp:
03/14/11 00:00:05 (2 years ago)
Author:
reyalP
Message:

clean up some obsolete comments in md code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/motion_detector.c

    r1087 r1088  
    6565 
    6666 
    67  
    68  
    69 //#define MD_XY2IDX(x,y) ((y)*motion_detector->columns+x) 
    7067 
    7168 
     
    388385        motion_detector->prev=tmp; 
    389386 
    390 //      memset(motion_detector->points,0, sizeof(motion_detector->points)); 
    391 // WARNING. maybe not optimized 
    392         //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" array 
    399  
    400 //  if (strcmp(PLATFORM,"a610")==0 || strcmp(PLATFORM,"a710")==0) { 
    401387         img = vid_get_viewport_live_fb(); 
    402388                if(img==NULL){ 
    403389                        img = vid_get_viewport_fb(); 
    404390        } 
    405 /* the following is commented because of a bugreport: http://chdk.kernreaktor.org/mantis/view.php?id=70 
    406 #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 #endif 
    415 */ 
    416391 
    417392#ifdef OPT_MD_DEBUG 
     
    432407                for (col=0; col < motion_detector->columns; col++, idx++) 
    433408                { 
     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 
    434411                        motion_detector->points[idx] = 0; 
    435412                        motion_detector->curr[idx] = 0; 
     
    538515                        if( ( motion_detector->parameters&MD_DO_IMMEDIATE_SHOOT ) !=0){ 
    539516                                //make shoot 
    540                                 //kbd_sched_shoot(); 
    541517                                md_kbd_sched_immediate_shoot(motion_detector->parameters&MD_NO_SHUTTER_RELEASE_ON_SHOOT); 
    542518                        } 
Note: See TracChangeset for help on using the changeset viewer.