Ignore:
Timestamp:
12/02/09 09:31:02 (4 years ago)
Author:
reyalp
Message:

Mode override support. See http://chdk.kernreaktor.org/mantis/view.php?id=64
All cameras except ixus40_sd400 should be supported

rec_mode_active (checks play_rec_mode, weak, can be overriden on cameras that need it)
screen_opened, screen_rotated: only defined on swivel screen cams, check phsw_ bits for screen pos

  • move old play/rec checking code to rec_switch_state. #ifdef'd out for now
  • move mode enum into it's own header file: modelist.h to allow easy lua generation.
  • use playrec_mode on tx1

+ add new generated lua file LUALIB/GEN/modelist.lua
+ add lua library LUALIB/capmode.lua see http://chdk.wikia.com/wiki/LUA/Scripts:Standard/Lualib/Capmode
+ add test scripts see

http://chdk.wikia.com/wiki/UBASIC/Scripts:Standard/Test/Setmode
http://chdk.wikia.com/wiki/LUA/Scripts:Standard/Test/Setmode

File:
1 edited

Legend:

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

    r515 r847  
    7676};           
    7777 
     78static const CapturemodeMap modemap[] = { 
     79    { MODE_P,                  32772 }, // note, this is called Manual, but eqivalent to P on cameras with real manual 
     80    { MODE_AUTO,               32768 }, 
     81    { MODE_DIGITAL_MACRO,      33288 }, 
     82    { MODE_PORTRAIT,           32781 }, 
     83    { MODE_NIGHT_SNAPSHOT,     32779 }, // "night scene" on dial, different from "night snapshot" under "scene" below 
     84    { MODE_SCN_COLOR_ACCENT,   16920 }, // "color accent" 
     85    { MODE_SCN_COLOR_SWAP,     16921 }, // "color swap" 
     86    { MODE_SCN_KIDS_PETS,      16399 }, // "kids and pets" 
     87    { MODE_SCN_INDOOR,         16400 }, // "indoor" 
     88    { MODE_SCN_FOLIAGE,        16401 }, // "foliage" 
     89    { MODE_SCN_SNOW,           16402 }, // "snow" 
     90    { MODE_SCN_BEACH,          16403 }, // "beach" 
     91    { MODE_STITCH,             33290 }, 
     92    { MODE_SCN_FIREWORK,       16404 }, // "fireworks" 
     93    { MODE_SCN_UNDERWATER,     16405 }, // "under water" 
     94    { MODE_VIDEO_STD,          2593  }, 
     95    { MODE_VIDEO_SPEED,        2594  }, // "fast frame rate" 
     96    { MODE_VIDEO_COMPACT,      2595  }, // "compact" 
     97    { MODE_VIDEO_COLOR_ACCENT, 2591  }, // "color accent" 
     98    { MODE_VIDEO_COLOR_SWAP,   2592  }, // "color swap" 
     99}; 
     100 
    78101#include "../generic/shooting.c" 
    79102 
Note: See TracChangeset for help on using the changeset viewer.