Ignore:
Timestamp:
12/04/09 06:34:48 (3 years ago)
Author:
reyalp
Message:
  • attempt to fix broken mode maps in a630, a640, ixus65_sd630. Untested, but definitely closer than what was there before. checked against canon mode list and known correct cameras.
  • tweak some others: remove some invalid modes from a700, try to guess better values, add guessed MODE_MYCOLORS to ixus60_sd600, comments on g7, a540
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/platform/a630/shooting.c

    r847 r855  
    7676};           
    7777 
     78/*  
     79 valid modes from 100c dump @FFD682D0, names guessed from a540, g7,  
     80from 
     81http://www.usa.canon.com/consumer/controller?act=ModelInfoAct&tabact=ModelTechSpecsTabAct&fcategoryid=221&modelid=14108 
     82Shooting Modes 
     83    Auto; Creative: P, Av, Tv, M, C; Image: Portrait, Landscape, Night Scene,  
     84    Special Scene 
     85        Foliage, Snow, Beach, Fireworks, Underwater, Indoor, Kids & Pets, 
     86        Night Snapshot, Color Accent, Color Swap, 
     87    Stitch Assist, Movie 
     88Video resolutions 
     89    640 x 480 / 320 x 240 (30 fps/15 fps) available up to 1GB or 1 hour for each file size, 
     90    160 x 120 (3 min. at 15 fps) 
     91*/ 
    7892static const CapturemodeMap modemap[] = { 
    79     { MODE_AUTO,               6  }, 
    80     { MODE_P,                  1  }, 
    81     { MODE_TV,                 3  }, 
    82     { MODE_AV,                 2  }, 
    83     { MODE_M,                  0  }, 
    84     { MODE_PORTRAIT,           9  }, 
    85     { MODE_NIGHT,              8  }, 
    86     { MODE_LANDSCAPE,          7  }, 
    87     { MODE_VIDEO_STD,          18 }, 
    88     { MODE_STITCH,             5  }, 
    89     { MODE_MY_COLORS,          4  }, 
    90     { MODE_SCN_WATER,          13 }, 
    91     { MODE_SCN_NIGHT,          15 }, 
    92     { MODE_SCN_CHILD,          16 }, 
    93     { MODE_SCN_PARTY,          14 }, 
    94     { MODE_SCN_GRASS,          10 }, 
    95     { MODE_SCN_SNOW,           11 }, 
    96     { MODE_SCN_BEACH,          12 }, 
    97     { MODE_SCN_FIREWORK,       17 } 
     93    // above are common on most cameras except very old vxworks that use 0-n, should be OK 
     94    { MODE_M,                  32769 }, 
     95    { MODE_AV,                 32770 }, 
     96    { MODE_TV,                 32771 }, 
     97    { MODE_P,                  32772 }, 
     98    { MODE_AUTO,               32768 }, 
     99    { MODE_PORTRAIT,           32781 }, 
     100    { MODE_LANDSCAPE,          32780 }, 
     101    { MODE_STITCH,             33290 }, 
     102    { MODE_NIGHT,              32782 }, // s3is a540 "night scene" on dial, different from "night snapshot" under "scene" below 
     103    // the following are suspect, but probably fairly similar scene modes 
     104    { MODE_SCN_NIGHT,          16395 }, // a540 "night snapshot" g7 SCN_NIGHT 
     105    { MODE_SCN_KIDS_PETS,      16399 }, // a540 "kids and pets" g7 SCN_CHILD 
     106    { MODE_SCN_INDOOR,         16400 }, // a540 "indoor" g7 SCN_PARTY 
     107    { MODE_SCN_FOLIAGE,        16401 }, // a540 "foliage" g7 SCN_GRASS 
     108    { MODE_SCN_SNOW,           16402 }, // a540, g7 "snow"  
     109    { MODE_SCN_BEACH,          16403 }, // a540, g7 "beach" 
     110    { MODE_SCN_FIREWORK,       16404 }, // a540, g7 "fireworks" 
     111    { MODE_SCN_UNDERWATER,     16405 }, // a540 "under water" 
     112    // the following are very suspect 
     113    { MODE_MY_COLORS,          16922 }, // g7 MODE_MY_COLORS 
     114    { MODE_SCN_COLOR_ACCENT,   16921 }, // a540 MODE_SCN_COLOR_SWAP, g7 MODE_SCN_COLOR_ACCENT 
     115    { MODE_VIDEO_COLOR_ACCENT,  2594 }, // a540 MODE_VIDEO_SPEED, g7 MODE_VIDEO_COLOR_ACCENT 
     116    { MODE_VIDEO_MY_COLORS,     2595 }, // a540 MODE_VIDEO_COMPACT, g7 MODE_VIDEO_MY_COLORS 
     117    { MODE_VIDEO_STD,           2596 }, // g7 MODE_VIDEO_STD 
     118    { MODE_VIDEO_COMPACT,       2598 }, // g7 MODE_VIDEO_COMPACT 
     119//    { ???,      8221  }, // in canon list, C maybe ? 
    98120}; 
    99121 
Note: See TracChangeset for help on using the changeset viewer.