Ignore:
Timestamp:
07/04/11 22:08:33 (23 months ago)
Author:
reyalp
Message:

g12 modemap correction, + convert MODE_IS_VIDEO to function from philmoz in http://chdk.setepontos.com/index.php?topic=650.msg69647#msg69647

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/platform.h

    r1187 r1222  
    1616#include "modelist.h" 
    1717 
    18 // this is nasty, but not as nasty as checking each of the flags all over the place 
    19 #define MODE_IS_VIDEO(m)   (((m)&MODE_SHOOTING_MASK)==MODE_VIDEO_STD || \ 
    20                             ((m)&MODE_SHOOTING_MASK)==MODE_VIDEO_SPEED ||  \ 
    21                             ((m)&MODE_SHOOTING_MASK)==MODE_VIDEO_COMPACT || \ 
    22                             ((m)&MODE_SHOOTING_MASK)==MODE_VIDEO_MY_COLORS || \ 
    23                             ((m)&MODE_SHOOTING_MASK)==MODE_VIDEO_COLOR_ACCENT || \ 
    24                             ((m)&MODE_SHOOTING_MASK)==MODE_VIDEO_COLOR_SWAP || \ 
    25                             ((m)&MODE_SHOOTING_MASK)==MODE_VIDEO_TIME_LAPSE || \ 
    26                             ((m)&MODE_SHOOTING_MASK)==MODE_VIDEO_PORTRAIT || \ 
    27                             ((m)&MODE_SHOOTING_MASK)==MODE_VIDEO_NIGHT || \ 
    28                             ((m)&MODE_SHOOTING_MASK)==MODE_VIDEO_INDOOR || \ 
    29                             ((m)&MODE_SHOOTING_MASK)==MODE_VIDEO_FOLIAGE || \ 
    30                             ((m)&MODE_SHOOTING_MASK)==MODE_VIDEO_SNOW  || \ 
    31                             ((m)&MODE_SHOOTING_MASK)==MODE_VIDEO_BEACH || \ 
    32                             ((m)&MODE_SHOOTING_MASK)==MODE_VIDEO_AQUARIUM || \ 
    33                             ((m)&MODE_SHOOTING_MASK)==MODE_VIDEO_SUPER_MACRO || \ 
    34                             ((m)&MODE_SHOOTING_MASK)==MODE_VIDEO_STITCH || \ 
    35                             ((m)&MODE_SHOOTING_MASK)==MODE_VIDEO_MANUAL) 
     18// converted large macro to function in platform/generic/shooting.c (philmoz July 2011) 
     19extern int mode_is_video(int); 
     20#define MODE_IS_VIDEO(m)    mode_is_video(m) 
    3621 
    3722/* propcase ID constants. These are in their own header files for easier sed processing */ 
Note: See TracChangeset for help on using the changeset viewer.