Changeset 735


Ignore:
Timestamp:
04/16/09 06:54:38 (4 years ago)
Author:
phyrephox
Message:
  • long exposure: now possible to use them in "ev step" shutterspeed enum type mode (still possible in factor mode). approximately by powers of 2 (longest duration: 2048 seconds, should be sufficient for all purposes :D) - coded by PlasmaHH
  • version 0.9.7 -> 0.9.8 (should have been done a long time ago :D)
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/gui.c

    r725 r735  
    114114//------------------------------------------------------------------- 
    115115extern void dump_memory(); 
     116// both from platform/generic/shooting.c 
     117extern const char* tv_override[]; 
     118extern const int tv_override_amount; 
     119extern const int tv_override_zero_shift; 
     120              
    116121 
    117122static void gui_draw_osd(); 
     
    15901595 
    15911596const char* gui_tv_override_value_enum(int change, int arg) { 
    1592     static const char* modes[]={"64","50.8", "40.3", "32", "25.4","20","16", "12.7", "10","8", "6.3","5","4","3.2", "2.5","2", "1.6", "1.3", "1", "0.8", "0.6", "0.5", "0.4", "0.3", "1/4", "1/5", "1/6", "1/8", "1/10", "1/13", "1/15", "1/20", "1/25", "1/30", "1/40", "1/50", "1/60", "1/80", "1/100", "1/125", "1/160", "1/200", "1/250", "1/320", "1/400", "1/500", "1/640","1/800", "1/1000", "1/1250", "1/1600","1/2000","1/2500","1/3200","1/4000", "1/5000", "1/6400", "1/8000", "1/10000", "1/12500", "1/16000", "1/20000", "1/25000", "1/32000", "1/40000", "1/50000", "1/64000","1/80000", "1/100k"}; 
     1597        /* 
     1598    static const char* modes[]={ 
     1599    // add very long time exposures as approximately powers of 2, adding 15 exposures 
     1600    "2048","1625","1290","1024","812","645","512","406","322","256","203","161","128","101","80", 
     1601                "64","50.8", "40.3", "32", "25.4","20","16", "12.7", "10","8", "6.3","5","4","3.2", "2.5","2", "1.6", "1.3", "1", "0.8", "0.6", "0.5", "0.4", "0.3", "1/4", "1/5", "1/6", "1/8", "1/10", "1/13", "1/15", "1/20", "1/25", "1/30", "1/40", "1/50", "1/60", "1/80", "1/100", "1/125", "1/160", "1/200", "1/250", "1/320", "1/400", "1/500", "1/640","1/800", "1/1000", "1/1250", "1/1600","1/2000","1/2500","1/3200","1/4000", "1/5000", "1/6400", "1/8000", "1/10000", "1/12500", "1/16000", "1/20000", "1/25000", "1/32000", "1/40000", "1/50000", "1/64000","1/80000", "1/100k"}; 
     1602                */ 
    15931603    static char *buf; 
    15941604 
     1605        // XXX This array above is redundant with platform/generic/shooting.c, this should be avoided! 
    15951606    conf.tv_override_value+=change; 
    15961607    if (conf.tv_enum_type) { 
    15971608       if (conf.tv_override_value<0) { 
    1598           conf.tv_override_value=sizeof(modes)/sizeof(modes[0])-1; 
     1609          conf.tv_override_value=tv_override_amount-1; 
    15991610        } 
    1600        else if (conf.tv_override_value>=(sizeof(modes)/sizeof(modes[0]))) 
     1611       else if ((unsigned)conf.tv_override_value>=(tv_override_amount)) 
    16011612         conf.tv_override_value=0; 
    1602        return modes[conf.tv_override_value];  
     1613       return tv_override[conf.tv_override_value];  
    16031614     } 
    16041615     else  
     
    16261637      conf.tv_override_koef=6;   
    16271638          if (conf.tv_enum_type)   
    1628              conf.tv_override_value=18;  
     1639             conf.tv_override_value=tv_override_zero_shift; 
    16291640          else conf.tv_override_value=1;  
    16301641      } 
  • trunk/platform/generic/shooting.c

    r698 r735  
    3838static const float shutter_koef[] = {0, 0.00001, 0.0001,0.001,0.01,0.1,1,10,100,1000}; 
    3939static const char * expo_shift[] = { "Off", "1/3Ev","2/3Ev", "1Ev", "1 1/3Ev", "1 2/3Ev", "2Ev", "2 1/3Ev", "2 2/3Ev", "3Ev", "3 1/3Ev", "3 2/3Ev", "4Ev"}; 
    40 static const char* tv_override[]={"64","50.8", "40.3", "32", "25.4","20","16", "12.7", "10","8", "6.3","5","4","3.2", "2.5","2", "1.6", "1.3", "1", "0.8", "0.6", "0.5", "0.4", "0.3", "1/4", "1/5", "1/6", "1/8", "1/10", "1/13", "1/15", "1/20", "1/25", "1/30", "1/40", "1/50", "1/60", "1/80", "1/100", "1/125", "1/160", "1/200", "1/250", "1/320", "1/400", "1/500", "1/640","1/800", "1/1000", "1/1250", "1/1600","1/2000","1/2500","1/3200","1/4000", "1/5000", "1/6400", "1/8000", "1/10000", "1/12500", "1/16000", "1/20000", "1/25000", "1/32000", "1/40000", "1/50000", "1/64000","1/80000", "1/100k"}; 
     40const char* tv_override[]={ 
     41#ifdef CAM_EXT_TV_RANGE 
     42    // add very long time exposures as approximately powers of 2, adding 15 exposures 
     43    "2048","1625","1290","1024","812","645","512","406","322","256","203","161","128","101","80", 
     44#endif 
     45    "64","50.8", "40.3", "32", "25.4","20","16", "12.7", "10","8", "6.3","5","4","3.2", "2.5","2", "1.6", "1.3", "1", "0.8", "0.6", "0.5", "0.4", "0.3", "1/4", "1/5", "1/6", "1/8", "1/10", "1/13", "1/15", "1/20", "1/25", "1/30", "1/40", "1/50", "1/60", "1/80", "1/100", "1/125", "1/160", "1/200", "1/250", "1/320", "1/400", "1/500", "1/640","1/800", "1/1000", "1/1250", "1/1600","1/2000","1/2500","1/3200","1/4000", "1/5000", "1/6400", "1/8000", "1/10000", "1/12500", "1/16000", "1/20000", "1/25000", "1/32000", "1/40000", "1/50000", "1/64000","1/80000", "1/100k"}; 
     46const int tv_override_amount = sizeof(tv_override)/sizeof(tv_override[0]); 
     47 
     48#if CAM_EXT_TV_RANGE 
     49const int tv_override_zero_shift = 18+15; 
     50#else 
     51const int tv_override_zero_shift = 18; 
     52#endif 
    4153static const char * expo_type[] = { "+/-", "-","+"}; 
    4254 
     
    12211233   {  
    12221234   if (conf.tv_enum_type)  
    1223      shooting_set_tv96_direct(32*(conf.tv_override_value-18),SET_NOW); 
     1235//     shooting_set_tv96_direct(32*(conf.tv_override_value-18),SET_NOW); 
     1236     shooting_set_tv96_direct(32*(conf.tv_override_value-(tv_override_zero_shift)),SET_NOW); 
    12241237   else    
    12251238    shooting_set_tv96_direct(shooting_get_tv96_from_shutter_speed(shooting_get_shutter_speed_override_value()), SET_NOW);  
  • trunk/version.inc

    r719 r735  
    1 BUILD_NUMBER := 0.9.7 
     1BUILD_NUMBER := 0.9.8 
Note: See TracChangeset for help on using the changeset viewer.