Changeset 735
- Timestamp:
- 04/16/09 06:54:38 (4 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
core/gui.c (modified) (3 diffs)
-
platform/generic/shooting.c (modified) (2 diffs)
-
version.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/gui.c
r725 r735 114 114 //------------------------------------------------------------------- 115 115 extern void dump_memory(); 116 // both from platform/generic/shooting.c 117 extern const char* tv_override[]; 118 extern const int tv_override_amount; 119 extern const int tv_override_zero_shift; 120 116 121 117 122 static void gui_draw_osd(); … … 1590 1595 1591 1596 const 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 */ 1593 1603 static char *buf; 1594 1604 1605 // XXX This array above is redundant with platform/generic/shooting.c, this should be avoided! 1595 1606 conf.tv_override_value+=change; 1596 1607 if (conf.tv_enum_type) { 1597 1608 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; 1599 1610 } 1600 else if ( conf.tv_override_value>=(sizeof(modes)/sizeof(modes[0])))1611 else if ((unsigned)conf.tv_override_value>=(tv_override_amount)) 1601 1612 conf.tv_override_value=0; 1602 return modes[conf.tv_override_value];1613 return tv_override[conf.tv_override_value]; 1603 1614 } 1604 1615 else … … 1626 1637 conf.tv_override_koef=6; 1627 1638 if (conf.tv_enum_type) 1628 conf.tv_override_value= 18;1639 conf.tv_override_value=tv_override_zero_shift; 1629 1640 else conf.tv_override_value=1; 1630 1641 } -
trunk/platform/generic/shooting.c
r698 r735 38 38 static const float shutter_koef[] = {0, 0.00001, 0.0001,0.001,0.01,0.1,1,10,100,1000}; 39 39 static 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"}; 40 const 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"}; 46 const int tv_override_amount = sizeof(tv_override)/sizeof(tv_override[0]); 47 48 #if CAM_EXT_TV_RANGE 49 const int tv_override_zero_shift = 18+15; 50 #else 51 const int tv_override_zero_shift = 18; 52 #endif 41 53 static const char * expo_type[] = { "+/-", "-","+"}; 42 54 … … 1221 1233 { 1222 1234 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); 1224 1237 else 1225 1238 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. 71 BUILD_NUMBER := 0.9.8
Note: See TracChangeset
for help on using the changeset viewer.