Ignore:
Timestamp:
12/02/09 09:31:02 (3 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/ixus960_sd950/shooting.c

    r515 r847  
    7171{  6, 1600, "1600", -1}, 
    7272};           
     73 
     74static const CapturemodeMap modemap[] = { 
     75        { MODE_AUTO,               32768 },  
     76        { MODE_P,                  32772 }, 
     77        { MODE_DIGITAL_MACRO,      33288 }, 
     78        { MODE_PORTRAIT,           16397 }, 
     79        { MODE_NIGHT_SNAPSHOT,     16395 }, 
     80        { MODE_COLOR_ACCENT,       33306 },  
     81        { MODE_MY_COLORS,          33307 }, 
     82        { MODE_SCN_KIDS_PETS,      16400 },  
     83        { MODE_SCN_INDOOR,         16401 },  
     84        { MODE_SCN_FOLIAGE,        16402 },  
     85        { MODE_SCN_SNOW,           16403 }, 
     86        { MODE_SCN_BEACH,          16404 }, 
     87        { MODE_SCN_FIREWORK,       16405 }, 
     88        { MODE_SCN_AQUARIUM,       16407 }, 
     89        { MODE_SCN_WATER,          16406 }, 
     90        { MODE_VIDEO_STD,          2597  }, 
     91        { MODE_VIDEO_COMPACT,      2599  }, 
     92        { MODE_VIDEO_COLOR_ACCENT, 2595  }, 
     93        { MODE_VIDEO_MY_COLORS,    2596  }, 
     94        { MODE_VIDEO_TIME_LAPSE,   2601  }, 
     95        { MODE_STITCH,             33290 }, 
     96}; 
     97 
    7398#include "../generic/shooting.c" 
    7499long get_file_next_counter() { 
Note: See TracChangeset for help on using the changeset viewer.