Changeset 1276 for trunk


Ignore:
Timestamp:
08/07/11 17:56:07 (23 months ago)
Author:
pixeldoc2000
Message:

CAM_DRAW_EXPOSITION moved to generic to remove redundant code

Location:
trunk
Files:
26 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/platform.h

    r1238 r1276  
    261261/******************************************************************/ 
    262262int shooting_get_user_tv_id(); 
     263#if defined(CAM_DRAW_EXPOSITION) 
    263264char* shooting_get_tv_str(); 
     265#endif 
    264266short shooting_get_tv96_from_shutter_speed(float t); 
    265267short shooting_get_tv96(); 
     
    283285short shooting_get_aperture_from_av96(short av96); 
    284286int shooting_get_user_av_id(); 
     287#if defined(CAM_DRAW_EXPOSITION) 
    285288char* shooting_get_av_str(); 
     289#endif 
    286290void shooting_set_user_av_by_id(int v); 
    287291short shooting_get_av96(); 
  • trunk/platform/a410/shooting.c

    r1240 r1276  
    129129 
    130130int circle_of_confusion = 5; //don't know 
    131  
    132 char* shooting_get_tv_str() 
    133 { 
    134     short int tvv; 
    135     long i; 
    136     _GetPropertyCase(PROPCASE_TV, &tvv, sizeof(tvv)); 
    137     for (i=0;i<SS_SIZE;i++){ 
    138       if (shutter_speeds_table[i].prop_id >= tvv) 
    139         return (char*)shutter_speeds_table[i].name; 
    140     } 
    141     return (void*)"?"; 
    142 } 
    143  
    144 char* shooting_get_av_str() 
    145 { 
    146     short int avv; 
    147     long i; 
    148     _GetPropertyCase(PROPCASE_AV, &avv, sizeof(avv)); 
    149     for (i=0;i<AS_SIZE;i++){ 
    150       if (aperture_sizes_table[i].prop_id == avv) 
    151         return (char*)aperture_sizes_table[i].name; 
    152     } 
    153     return (char*) "?"; 
    154 } 
    155  
  • trunk/platform/a430/shooting.c

    r925 r1276  
    134134 
    135135int circle_of_confusion = 5; 
    136  
    137 char* shooting_get_tv_str() 
    138 { 
    139     short int tvv; 
    140     long i; 
    141     _GetPropertyCase(PROPCASE_TV, &tvv, sizeof(tvv)); 
    142     for (i=0;i<SS_SIZE;i++){ 
    143       if (shutter_speeds_table[i].prop_id >= tvv) 
    144         return (char*)shutter_speeds_table[i].name; 
    145     } 
    146     return (void*)"?"; 
    147 } 
    148  
    149 char* shooting_get_av_str() 
    150 { 
    151     short int avv; 
    152     long i; 
    153     _GetPropertyCase(PROPCASE_AV, &avv, sizeof(avv)); 
    154     for (i=0;i<AS_SIZE;i++){ 
    155       if (aperture_sizes_table[i].prop_id == avv) 
    156         return (char*)aperture_sizes_table[i].name; 
    157     } 
    158     return (char*) "?"; 
    159 } 
    160  
  • trunk/platform/a450/shooting.c

    r880 r1276  
    130130 
    131131int circle_of_confusion = 4; 
    132  
    133 char* shooting_get_tv_str() 
    134 { 
    135     short int tvv; 
    136     long i; 
    137     _GetPropertyCase(PROPCASE_TV, &tvv, sizeof(tvv)); 
    138     for (i=0;i<SS_SIZE;i++){ 
    139       if (shutter_speeds_table[i].prop_id >= tvv) 
    140         return (char*)shutter_speeds_table[i].name; 
    141     } 
    142     return (void*)"?"; 
    143 } 
    144  
    145 char* shooting_get_av_str() 
    146 { 
    147     short int avv; 
    148     long i; 
    149     _GetPropertyCase(PROPCASE_AV, &avv, sizeof(avv)); 
    150     for (i=0;i<AS_SIZE;i++){ 
    151       if (aperture_sizes_table[i].prop_id == avv) 
    152         return (char*)aperture_sizes_table[i].name; 
    153     } 
    154     return (char*) "?"; 
    155 } 
    156  
  • trunk/platform/a460/shooting.c

    r880 r1276  
    133133 
    134134int circle_of_confusion = 4; 
    135  
    136 char* shooting_get_tv_str() 
    137 { 
    138     short int tvv; 
    139     long i; 
    140     _GetPropertyCase(PROPCASE_TV, &tvv, sizeof(tvv)); 
    141     for (i=0;i<SS_SIZE;i++){ 
    142       if (shutter_speeds_table[i].prop_id >= tvv) 
    143         return (char*)shutter_speeds_table[i].name; 
    144     } 
    145     return (void*)"?"; 
    146 } 
    147  
    148 char* shooting_get_av_str() 
    149 { 
    150     short int avv; 
    151     long i; 
    152     _GetPropertyCase(PROPCASE_AV, &avv, sizeof(avv)); 
    153     for (i=0;i<AS_SIZE;i++){ 
    154       if (aperture_sizes_table[i].prop_id == avv) 
    155         return (char*)aperture_sizes_table[i].name; 
    156     } 
    157     return (char*) "?"; 
    158 } 
    159  
  • trunk/platform/a530/shooting.c

    r860 r1276  
    143143 
    144144int circle_of_confusion = 5; 
    145  
    146 char* shooting_get_tv_str() 
    147 { 
    148     short int tvv; 
    149     long i; 
    150     _GetPropertyCase(PROPCASE_TV, &tvv, sizeof(tvv)); 
    151     for (i=0;i<SS_SIZE;i++){ 
    152         if (shutter_speeds_table[i].prop_id >= tvv) 
    153             return (char*)shutter_speeds_table[i].name; 
    154     } 
    155     return (void*)"?"; 
    156 } 
    157  
    158 char* shooting_get_av_str() 
    159 { 
    160     short int avv; 
    161     long i; 
    162     _GetPropertyCase(PROPCASE_AV, &avv, sizeof(avv)); 
    163     for (i=0;i<AS_SIZE;i++){ 
    164         if (aperture_sizes_table[i].prop_id == avv) 
    165             return (char*)aperture_sizes_table[i].name; 
    166     } 
    167     return (char*) "?"; 
    168 } 
  • trunk/platform/a540/shooting.c

    r860 r1276  
    144144 return v; 
    145145} 
    146  
    147 char* shooting_get_tv_str() 
    148 { 
    149     short int tvv; 
    150     long i; 
    151     _GetPropertyCase(PROPCASE_TV, &tvv, sizeof(tvv)); 
    152     for (i=0;i<SS_SIZE;i++){ 
    153         if (shutter_speeds_table[i].prop_id >= tvv) 
    154             return (char*)shutter_speeds_table[i].name; 
    155     } 
    156     return (void*)"?"; 
    157 } 
    158  
    159 char* shooting_get_av_str() 
    160 { 
    161     short int avv; 
    162     long i; 
    163     _GetPropertyCase(PROPCASE_AV, &avv, sizeof(avv)); 
    164     for (i=0;i<AS_SIZE;i++){ 
    165         if (aperture_sizes_table[i].prop_id == avv) 
    166             return (char*)aperture_sizes_table[i].name; 
    167     } 
    168     return (char*) "?"; 
    169 } 
  • trunk/platform/d10/shooting.c

    r1075 r1276  
    159159 
    160160// not used ? -> CAM_DRAW_EXPOSITION 
    161 /* 
    162 char* shooting_get_tv_str() 
    163 { 
    164     short int tvv; 
    165     long i; 
    166     _GetPropertyCase(PROPCASE_TV, &tvv, sizeof(tvv));   // 262 for DiGiC III 
    167     for (i=0;i<SS_SIZE;i++){ 
    168         if (shutter_speeds_table[i].prop_id >= tvv) 
    169             return (char*)shutter_speeds_table[i].name; 
    170     } 
    171     return (void*)"?"; 
    172 } 
    173  
    174 char* shooting_get_av_str() 
    175 { 
    176     short int avv; 
    177     long i; 
    178     _GetPropertyCase(PROPCASE_AV, &avv, sizeof(avv));   // 23 for DiGiC III 
    179     for (i=0;i<AS_SIZE;i++){ 
    180         if (aperture_sizes_table[i].prop_id == avv) 
    181             return (char*)aperture_sizes_table[i].name; 
    182     } 
    183     return (char*) "?"; 
    184 } 
    185 */ 
  • trunk/platform/generic/shooting.c

    r1243 r1276  
    14751475} 
    14761476 
     1477// Only needed on VxWorks 
     1478#if CAM_DRAW_EXPOSITION 
     1479 
     1480// compare PROPCASE_TV with shutter_speeds_table 
     1481char* shooting_get_tv_str() { 
     1482    short int tvv; 
     1483    long i; 
     1484    _GetPropertyCase(PROPCASE_TV, &tvv, sizeof(tvv)); 
     1485    for(i=0; i<SS_SIZE; i++) { 
     1486        if(shutter_speeds_table[i].prop_id >= tvv) 
     1487            return (char*)shutter_speeds_table[i].name; 
     1488    } 
     1489    return (void*)"?"; 
     1490} 
     1491 
     1492// compare PROPCASE_AV with aperture_sizes_table 
     1493char* shooting_get_av_str() { 
     1494    short int avv; 
     1495    long i; 
     1496    _GetPropertyCase(PROPCASE_AV, &avv, sizeof(avv)); 
     1497    for(i=0; i<AS_SIZE; i++) { 
     1498        if(aperture_sizes_table[i].prop_id == avv) 
     1499            return (char*)aperture_sizes_table[i].name; 
     1500    } 
     1501    return (char*) "?"; 
     1502} 
     1503 
     1504#endif 
     1505 
    14771506/* 
    14781507char* shooting_get_iso_str() { 
  • trunk/platform/ixus100_sd780/shooting.c

    r1075 r1276  
    154154 
    155155// not used ? -> CAM_DRAW_EXPOSITION 
    156 /* 
    157 char* shooting_get_tv_str() 
    158 { 
    159     short int tvv; 
    160     long i; 
    161     _GetPropertyCase(PROPCASE_TV, &tvv, sizeof(tvv));   // 262 for DiGiC III 
    162     for (i=0;i<SS_SIZE;i++){ 
    163         if (shutter_speeds_table[i].prop_id >= tvv) 
    164             return (char*)shutter_speeds_table[i].name; 
    165     } 
    166     return (void*)"?"; 
    167 } 
    168  
    169 char* shooting_get_av_str() 
    170 { 
    171     short int avv; 
    172     long i; 
    173     _GetPropertyCase(PROPCASE_AV, &avv, sizeof(avv));   // 23 for DiGiC III 
    174     for (i=0;i<AS_SIZE;i++){ 
    175         if (aperture_sizes_table[i].prop_id == avv) 
    176             return (char*)aperture_sizes_table[i].name; 
    177     } 
    178     return (char*) "?"; 
    179 } 
    180 */ 
  • trunk/platform/ixus50_sd400/shooting.c

    r880 r1276  
    132132 
    133133int circle_of_confusion = 5; 
    134  
    135 char* shooting_get_tv_str() 
    136 { 
    137     short int tvv; 
    138     long i; 
    139     _GetPropertyCase(PROPCASE_TV, &tvv, sizeof(tvv)); 
    140     for (i=0;i<SS_SIZE;i++){ 
    141         if (shutter_speeds_table[i].prop_id >= tvv) 
    142             return (char*)shutter_speeds_table[i].name; 
    143     } 
    144     return (void*)"?"; 
    145 } 
    146  
    147 char* shooting_get_av_str() 
    148 { 
    149     short int avv; 
    150     long i; 
    151     _GetPropertyCase(PROPCASE_AV, &avv, sizeof(avv)); 
    152     for (i=0;i<AS_SIZE;i++){ 
    153         if (aperture_sizes_table[i].prop_id == avv) 
    154             return (char*)aperture_sizes_table[i].name; 
    155     } 
    156     return (char*) "?"; 
    157 } 
    158  
  • trunk/platform/ixus55_sd450/shooting.c

    r860 r1276  
    129129 
    130130int circle_of_confusion = 5; 
    131  
    132  
    133 char* shooting_get_tv_str() 
    134 { 
    135     short int tvv; 
    136     long i; 
    137     _GetPropertyCase(PROPCASE_TV, &tvv, sizeof(tvv)); 
    138     for (i=0;i<SS_SIZE;i++){ 
    139         if (shutter_speeds_table[i].prop_id >= tvv) 
    140             return (char*)shutter_speeds_table[i].name; 
    141     } 
    142     return (void*)"?"; 
    143 } 
    144  
    145 char* shooting_get_av_str() 
    146 { 
    147     short int avv; 
    148     long i; 
    149     _GetPropertyCase(PROPCASE_AV, &avv, sizeof(avv)); 
    150     for (i=0;i<AS_SIZE;i++){ 
    151         if (aperture_sizes_table[i].prop_id == avv) 
    152             return (char*)aperture_sizes_table[i].name; 
    153     } 
    154     return (char*) "?"; 
    155 } 
    156  
  • trunk/platform/ixus60_sd600/shooting.c

    r880 r1276  
    144144{ 
    145145} 
    146  
    147 char* shooting_get_tv_str() 
    148 { 
    149     short int tvv; 
    150     long i; 
    151      
    152     _GetPropertyCase(PROPCASE_TV, &tvv, sizeof(tvv)); 
    153  
    154     for (i=0;i<SS_SIZE;i++) 
    155     { 
    156         if (shutter_speeds_table[i].prop_id >= tvv) 
    157           return (char*)shutter_speeds_table[i].name; 
    158     } 
    159     return (void*)"?"; 
    160 } 
    161  
    162 char* shooting_get_av_str() 
    163 { 
    164     short int avv; 
    165     long i; 
    166      
    167     _GetPropertyCase(PROPCASE_AV, &avv, sizeof(avv)); 
    168  
    169     for (i = 0; i < AS_SIZE-1; i++) 
    170     { 
    171         if (aperture_sizes_table[i].prop_id <= avv && aperture_sizes_table[i+1].prop_id > avv) 
    172           return (char*)aperture_sizes_table[i].name; 
    173     } 
    174     return (char*) "?"; 
    175 } 
  • trunk/platform/ixus65_sd630/shooting.c

    r880 r1276  
    147147{ 
    148148} 
    149  
    150 char* shooting_get_tv_str() 
    151 { 
    152     short int tvv; 
    153     long i; 
    154      
    155     _GetPropertyCase(PROPCASE_TV, &tvv, sizeof(tvv)); 
    156  
    157     for (i=0;i<SS_SIZE;i++) 
    158     { 
    159         if (shutter_speeds_table[i].prop_id >= tvv) 
    160           return (char*)shutter_speeds_table[i].name; 
    161     } 
    162     return (void*)"?"; 
    163 } 
    164  
    165 char* shooting_get_av_str() 
    166 { 
    167     short int avv; 
    168     long i; 
    169      
    170     _GetPropertyCase(PROPCASE_AV, &avv, sizeof(avv)); 
    171  
    172     for (i = 0; i < AS_SIZE-1; i++) 
    173     { 
    174         if (aperture_sizes_table[i].prop_id <= avv && aperture_sizes_table[i+1].prop_id > avv) 
    175           return (char*)aperture_sizes_table[i].name; 
    176     } 
    177     return (char*) "?"; 
    178 } 
  • trunk/platform/ixus700_sd500/shooting.c

    r860 r1276  
    137137 
    138138int circle_of_confusion = 6; 
    139  
    140 char* shooting_get_tv_str() 
    141 { 
    142     short int tvv; 
    143     long i; 
    144     _GetPropertyCase(PROPCASE_TV, &tvv, sizeof(tvv)); 
    145     for (i=0;i<SS_SIZE;i++){ 
    146         if (shutter_speeds_table[i].prop_id >= tvv) 
    147             return (char*)shutter_speeds_table[i].name; 
    148     } 
    149     return (void*)"?"; 
    150 } 
    151  
    152 char* shooting_get_av_str() 
    153 { 
    154     short int avv; 
    155     long i; 
    156     _GetPropertyCase(PROPCASE_AV, &avv, sizeof(avv)); 
    157     for (i=0;i<AS_SIZE;i++){ 
    158         if (aperture_sizes_table[i].prop_id == avv) 
    159             return (char*)aperture_sizes_table[i].name; 
    160     } 
    161     return (char*) "?"; 
    162 } 
    163  
  • trunk/platform/ixus70_sd1000/shooting.c

    r1075 r1276  
    144144 
    145145int circle_of_confusion = 5; 
    146  
    147 char* shooting_get_tv_str() 
    148 { 
    149     short int tvv; 
    150     long i; 
    151     _GetPropertyCase(PROPCASE_TV, &tvv, sizeof(tvv)); 
    152     for (i=0;i<SS_SIZE;i++){ 
    153    if (shutter_speeds_table[i].prop_id >= tvv) 
    154        return (char*)shutter_speeds_table[i].name; 
    155     } 
    156     return (void*)"?"; 
    157 } 
    158  
    159 char* shooting_get_av_str() 
    160 { 
    161     short int avv; 
    162     long i; 
    163     _GetPropertyCase(PROPCASE_AV, &avv, sizeof(avv)); 
    164     for (i=0;i<AS_SIZE;i++){ 
    165    if (aperture_sizes_table[i].prop_id == avv) 
    166        return (char*)aperture_sizes_table[i].name; 
    167     } 
    168     return (char*) "?"; 
    169 } 
    170  
  • trunk/platform/ixus750_sd550/shooting.c

    r860 r1276  
    135135 
    136136int circle_of_confusion = 6; 
    137  
    138 char* shooting_get_tv_str() 
    139 { 
    140     short int tvv; 
    141     long i; 
    142     _GetPropertyCase(PROPCASE_TV, &tvv, sizeof(tvv)); 
    143     for (i=0;i<SS_SIZE;i++){ 
    144         if (shutter_speeds_table[i].prop_id >= tvv) 
    145             return (char*)shutter_speeds_table[i].name; 
    146     } 
    147     return (void*)"?"; 
    148 } 
    149  
    150 char* shooting_get_av_str() 
    151 { 
    152     short int avv; 
    153     long i; 
    154     _GetPropertyCase(PROPCASE_AV, &avv, sizeof(avv)); 
    155     for (i=0;i<AS_SIZE;i++){ 
    156         if (aperture_sizes_table[i].prop_id == avv) 
    157             return (char*)aperture_sizes_table[i].name; 
    158     } 
    159     return (char*) "?"; 
    160 } 
    161  
  • trunk/platform/ixus75_sd750/shooting.c

    r1075 r1276  
    146146 
    147147int circle_of_confusion = 5; 
    148  
    149 char* shooting_get_tv_str() 
    150 { 
    151     short int tvv; 
    152     long i; 
    153     _GetPropertyCase(PROPCASE_TV, &tvv, sizeof(tvv)); 
    154     for (i=0;i<SS_SIZE;i++){ 
    155    if (shutter_speeds_table[i].prop_id >= tvv) 
    156        return (char*)shutter_speeds_table[i].name; 
    157     } 
    158     return (void*)"?"; 
    159 } 
    160  
    161 char* shooting_get_av_str() 
    162 { 
    163     short int avv; 
    164     long i; 
    165     _GetPropertyCase(PROPCASE_AV, &avv, sizeof(avv)); 
    166     for (i=0;i<AS_SIZE;i++){ 
    167    if (aperture_sizes_table[i].prop_id == avv) 
    168        return (char*)aperture_sizes_table[i].name; 
    169     } 
    170     return (char*) "?"; 
    171 } 
    172  
  • trunk/platform/ixus800_sd700/shooting.c

    r860 r1276  
    145145 
    146146int circle_of_confusion = 5; 
    147  
    148 char* shooting_get_tv_str() 
    149 { 
    150     short int tvv; 
    151     long i; 
    152     _GetPropertyCase(PROPCASE_TV, &tvv, sizeof(tvv)); 
    153     for (i=0;i<SS_SIZE;i++){ 
    154         if (shutter_speeds_table[i].prop_id >= tvv) 
    155             return (char*)shutter_speeds_table[i].name; 
    156     } 
    157     return (void*)"?"; 
    158 } 
    159  
    160 char* shooting_get_av_str() 
    161 { 
    162     short int avv; 
    163     long i; 
    164     _GetPropertyCase(PROPCASE_AV, &avv, sizeof(avv)); 
    165     for (i=0;i<AS_SIZE;i++){ 
    166         if (aperture_sizes_table[i].prop_id == avv) 
    167             return (char*)aperture_sizes_table[i].name; 
    168     } 
    169     return (char*) "?"; 
    170 } 
    171  
  • trunk/platform/ixus850_sd800/shooting.c

    r1075 r1276  
    147147 
    148148int circle_of_confusion = 5; 
    149  
    150 char* shooting_get_tv_str() 
    151 { 
    152     short int tvv; 
    153     long i; 
    154     _GetPropertyCase(PROPCASE_TV, &tvv, sizeof(tvv)); 
    155     for (i=0;i<SS_SIZE;i++){ 
    156         if (shutter_speeds_table[i].prop_id >= tvv) 
    157             return (char*)shutter_speeds_table[i].name; 
    158     } 
    159     return (void*)"?"; 
    160 } 
    161  
    162 char* shooting_get_av_str() 
    163 { 
    164     short int avv; 
    165     long i; 
    166     _GetPropertyCase(PROPCASE_AV, &avv, sizeof(avv)); 
    167     for (i=0;i<AS_SIZE;i++){ 
    168         if (aperture_sizes_table[i].prop_id == avv) 
    169             return (char*)aperture_sizes_table[i].name; 
    170     } 
    171     return (char*) "?"; 
    172 } 
    173  
  • trunk/platform/ixus900_sd900/shooting.c

    r1075 r1276  
    153153 
    154154int circle_of_confusion = 5;    // :-) 
    155  
    156 // compare PROPCASE_TV with shutter_speeds_table 
    157 char* shooting_get_tv_str() { 
    158     short int tvv; 
    159     long i; 
    160     _GetPropertyCase(PROPCASE_TV, &tvv, sizeof(tvv)); 
    161     for(i=0; i<SS_SIZE; i++) { 
    162         if(shutter_speeds_table[i].prop_id >= tvv) 
    163             return (char*)shutter_speeds_table[i].name; 
    164     } 
    165     return (void*)"?"; 
    166 } 
    167  
    168 // compare PROPCASE_AV with aperture_sizes_table 
    169 char* shooting_get_av_str() { 
    170     short int avv; 
    171     long i; 
    172     _GetPropertyCase(PROPCASE_AV, &avv, sizeof(avv)); 
    173     for(i=0; i<AS_SIZE; i++) { 
    174         if(aperture_sizes_table[i].prop_id == avv) 
    175             return (char*)aperture_sizes_table[i].name; 
    176     } 
    177     return (char*) "?"; 
    178 } 
    179  
  • trunk/platform/ixus950_sd850/shooting.c

    r1075 r1276  
    155155 
    156156int circle_of_confusion = 5; 
    157  
    158 char* shooting_get_tv_str() 
    159 { 
    160     short int tvv; 
    161     long i; 
    162 //    _GetPropertyCase(69, &tvv, sizeof(tvv)); 
    163 //    _GetPropertyCase(262, &tvv, sizeof(tvv)); 
    164     _GetPropertyCase(PROPCASE_TV, &tvv, sizeof(tvv));   // 262 for DiGiC III 
    165     for (i=0;i<SS_SIZE;i++){ 
    166         if (shutter_speeds_table[i].prop_id >= tvv) 
    167             return (char*)shutter_speeds_table[i].name; 
    168     } 
    169     return (void*)"?"; 
    170 } 
    171  
    172 char* shooting_get_av_str() 
    173 { 
    174     short int avv; 
    175     long i; 
    176 //    _GetPropertyCase(68, &avv, sizeof(avv)); 
    177 //    _GetPropertyCase(23, &avv, sizeof(avv)); 
    178     _GetPropertyCase(PROPCASE_AV, &avv, sizeof(avv));   // 23 for DiGiC III 
    179     for (i=0;i<AS_SIZE;i++){ 
    180         if (aperture_sizes_table[i].prop_id == avv) 
    181             return (char*)aperture_sizes_table[i].name; 
    182     } 
    183     return (char*) "?"; 
    184 } 
    185  
  • trunk/platform/ixus95_sd1200/shooting.c

    r1075 r1276  
    143143 
    144144// not used ? -> CAM_DRAW_EXPOSITION 
    145 /* 
    146 char* shooting_get_tv_str() 
    147 { 
    148     short int tvv; 
    149     long i; 
    150     _GetPropertyCase(PROPCASE_TV, &tvv, sizeof(tvv));   // 262 for DiGiC III 
    151     for (i=0;i<SS_SIZE;i++){ 
    152         if (shutter_speeds_table[i].prop_id >= tvv) 
    153             return (char*)shutter_speeds_table[i].name; 
    154     } 
    155     return (void*)"?"; 
    156 } 
    157  
    158 char* shooting_get_av_str() 
    159 { 
    160     short int avv; 
    161     long i; 
    162     _GetPropertyCase(PROPCASE_AV, &avv, sizeof(avv));   // 23 for DiGiC III 
    163     for (i=0;i<AS_SIZE;i++){ 
    164         if (aperture_sizes_table[i].prop_id == avv) 
    165             return (char*)aperture_sizes_table[i].name; 
    166     } 
    167     return (char*) "?"; 
    168 } 
    169 */ 
  • trunk/platform/ixus980_sd990/shooting.c

    r1075 r1276  
    157157 
    158158// not used ? -> CAM_DRAW_EXPOSITION 
    159 /* 
    160 char* shooting_get_tv_str() 
    161 { 
    162     short int tvv; 
    163     long i; 
    164     _GetPropertyCase(PROPCASE_TV, &tvv, sizeof(tvv));   // 262 for DiGiC III 
    165     for (i=0;i<SS_SIZE;i++){ 
    166         if (shutter_speeds_table[i].prop_id >= tvv) 
    167             return (char*)shutter_speeds_table[i].name; 
    168     } 
    169     return (void*)"?"; 
    170 } 
    171  
    172 char* shooting_get_av_str() 
    173 { 
    174     short int avv; 
    175     long i; 
    176     _GetPropertyCase(PROPCASE_AV, &avv, sizeof(avv));   // 23 for DiGiC III 
    177     for (i=0;i<AS_SIZE;i++){ 
    178         if (aperture_sizes_table[i].prop_id == avv) 
    179             return (char*)aperture_sizes_table[i].name; 
    180     } 
    181     return (char*) "?"; 
    182 } 
    183 */ 
  • trunk/platform/ixusizoom_sd30/shooting.c

    r880 r1276  
    134134 
    135135int circle_of_confusion = 5; 
    136  
    137 char* shooting_get_tv_str() 
    138 { 
    139     short int tvv; 
    140     long i; 
    141      
    142     _GetPropertyCase(PROPCASE_TV, &tvv, sizeof(tvv)); 
    143  
    144     for (i=0;i<SS_SIZE;i++) 
    145     { 
    146         if (shutter_speeds_table[i].prop_id >= tvv) 
    147           return (char*)shutter_speeds_table[i].name; 
    148     } 
    149     return (void*)"?"; 
    150 } 
    151  
    152 char* shooting_get_av_str() 
    153 { 
    154     short int avv; 
    155     long i; 
    156      
    157     _GetPropertyCase(PROPCASE_AV, &avv, sizeof(avv)); 
    158  
    159     for (i = 0; i < AS_SIZE-1; i++) 
    160     { 
    161         if (aperture_sizes_table[i].prop_id <= avv && aperture_sizes_table[i+1].prop_id > avv) 
    162           return (char*)aperture_sizes_table[i].name; 
    163     } 
    164     return (char*) "?"; 
    165 } 
  • trunk/platform/tx1/shooting.c

    r1075 r1276  
    145145 
    146146int circle_of_confusion = 5; 
    147  
    148  
    149 char* shooting_get_tv_str() 
    150 { 
    151     short int tvv; 
    152     long i; 
    153     _GetPropertyCase(PROPCASE_TV, &tvv, sizeof(tvv)); 
    154     for (i=0;i<SS_SIZE;i++){ 
    155         if (shutter_speeds_table[i].prop_id >= tvv) 
    156             return (char*)shutter_speeds_table[i].name; 
    157     } 
    158     return (void*)"?"; 
    159 } 
    160  
    161 char* shooting_get_av_str() 
    162 { 
    163     short int avv; 
    164     long i; 
    165     _GetPropertyCase(PROPCASE_AV, &avv, sizeof(avv)); 
    166     for (i=0;i<AS_SIZE;i++){ 
    167         if (aperture_sizes_table[i].prop_id == avv) 
    168             return (char*)aperture_sizes_table[i].name; 
    169     } 
    170     return (char*) "?"; 
    171 } 
    172  
Note: See TracChangeset for help on using the changeset viewer.