root/platform/ixus100_sd780/shooting.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. get_file_next_counter
  2. get_target_file_num
  3. get_target_dir_num

   1 #define PARAM_FILE_COUNTER      0x38
   2 
   3 #include "platform.h"
   4 
   5 // These F-numbers are the "mock" values shown by the cam.
   6 // They're linked to FL (zoom) and ND8 filter.
   7 // aperture_sizes_table[].id is just a serial number.
   8 const ApertureSize aperture_sizes_table[] = { // PROPCASE 26
   9 //VERIFY_SD780 - These are correct for SD780
  10     {  9, 329, "3.2" }, // zoom 1.0
  11     { 10, 350, "3.5" }, // zoom 1.2
  12     { 11, 376, "4.0" }, // etc.
  13     { 12, 404, "4.5" },
  14     { 13, 431, "4.5" },
  15     { 14, 460, "5.0" },
  16     { 15, 490, "5.8" },
  17 // The rest are the same physical apertures as above, but with ND8:
  18     { 16, 605, "9.0" },
  19     { 17, 626, "10.0" },
  20     { 18, 652, "11.0" },
  21     { 19, 680, "13.0" },
  22     { 20, 707, "13.0" },
  23     { 21, 736, "14.0" },
  24     { 22, 766, "16.0" },
  25 };
  26 
  27 // OLD copied comment!
  28 // TODO copied from 850
  29 // Another set of "mock" values, which can probably
  30 // be derived from the table found at FFB4E258 in FW.
  31 // At the moment, I see no reason to amend it.
  32 const ShutterSpeed shutter_speeds_table[] = {
  33     { -12, -384, "15", 15000000 },
  34     { -11, -352, "13", 13000000 },
  35     { -10, -320, "10", 10000000 },
  36     {  -9, -288, "8",   8000000 },
  37     {  -8, -256, "6",   6000000 },
  38     {  -7, -224, "5",   5000000 },
  39     {  -6, -192, "4",   4000000 },
  40     {  -5, -160, "3.2", 3200000 },
  41     {  -4, -128, "2.5", 2500000 },
  42     {  -3,  -96, "2",   2000000 },
  43     {  -2,  -64, "1.6", 1600000 },
  44     {  -1,  -32, "1.3", 1300000 },
  45     {   0,    0, "1",   1000000 },
  46     {   1,   32, "0.8",  800000 },
  47     {   2,   64, "0.6",  600000 },
  48     {   3,   96, "0.5",  500000 },
  49     {   4,  128, "0.4",  400000 },
  50     {   5,  160, "0.3",  300000 },
  51     {   6,  192, "1/4",  250000 },
  52     {   7,  224, "1/5",  200000 },
  53     {   8,  256, "1/6",  166667 },
  54     {   9,  288, "1/8",  125000 },
  55     {  10,  320, "1/10", 100000 },
  56     {  11,  352, "1/13",  76923 },
  57     {  12,  384, "1/15",  66667 },
  58     {  13,  416, "1/20",  50000 },
  59     {  14,  448, "1/25",  40000 },
  60     {  15,  480, "1/30",  33333 },
  61     {  16,  512, "1/40",  25000 },
  62     {  17,  544, "1/50",  20000 },
  63     {  18,  576, "1/60",  16667 },
  64     {  19,  608, "1/80",  12500 },
  65     {  20,  640, "1/100", 10000 },
  66     {  21,  672, "1/125",  8000 },
  67     {  22,  704, "1/160",  6250 },
  68     {  23,  736, "1/200",  5000 },
  69     {  24,  768, "1/250",  4000 },
  70     {  25,  800, "1/320",  3125 },
  71     {  26,  832, "1/400",  2500 },
  72     {  27,  864, "1/500",  2000 },
  73     {  28,  896, "1/640",  1563 },
  74     {  29,  928, "1/800",  1250 },
  75     {  30,  960, "1/1000", 1000 },
  76     {  31,  992, "1/1250",  800 },
  77     {  32, 1021, "1/1600",  625 },
  78 };
  79 
  80 const ISOTable iso_table[] = {
  81     { -1,     1,    "HI", -1},
  82     {  0,     0,  "Auto", -1},
  83     {  1,    80,    "80", -1},
  84     {  2,   100,   "100", -1},
  85     {  3,   200,   "200", -1},
  86     {  4,   400,   "400", -1},
  87     {  5,   800,   "800", -1},
  88     {  6,  1600,  "1600", -1},
  89 };          
  90 
  91 /*
  92 http://www.usa.canon.com/consumer/controller?act=ModelInfoAct&tabact=ModelTechSpecsTabAct&fcategoryid=145&modelid=18183#ModelTechSpecsAct
  93 
  94  My Colors
  95 Vivid, Vivid Blue, Vivid Green, Vivid Red, Neutral, Sepia, Black & White, Positive Film, Lighter Skin Tone, Darker Skin Tone, Custom
  96 
  97 
  98 Image Compression
  99  Normal, Fine
 100 
 101 Shooting Modes
 102     Auto, P,
 103     Special Scene
 104         (Portrait, Foliage, Snow, Beach, Sunset, Fireworks, Aquarium,
 105         Underwater, ISO 3200, Indoor, Kids & Pets, Night Snapshot,
 106         Color Accent, Color Swap, Digital Macro, Stitch Assist),
 107     Movie
 108 Movie: H.264 - 1280 x 720 (30 fps), 640 x 480 (30 fps), 320 x 240 (30 fps) available up to 4GB or 29/60 minutes per clip
 109 
 110 canon mode list FFB2D2EC in 100e
 111 */
 112 const CapturemodeMap modemap[] = {
 113     { MODE_VIDEO_STD,           2601 },
 114     { MODE_VIDEO_COLOR_ACCENT,  2599 },
 115     { MODE_VIDEO_COLOR_SWAP,    2600 },
 116     { MODE_LONG_SHUTTER,       16390 },
 117     { MODE_SUNSET,             16402 },
 118     { MODE_FOLIAGE,            16403 },
 119     { MODE_SNOW,               16404 },
 120     { MODE_BEACH,              16405 },
 121     { MODE_FIREWORK,           16406 },
 122     { MODE_UNDERWATER,         16407 },
 123     { MODE_AQUARIUM,           16408 },
 124     { MODE_ISO_3200,           16413 },
 125     { MODE_DIGITAL_MACRO,      16904 },
 126     { MODE_STITCH,             16906 },
 127     { MODE_COLOR_ACCENT,       16923 },
 128     { MODE_COLOR_SWAP,         16924 },
 129     { MODE_AUTO,               32768 },
 130     { MODE_P,                  32772 },
 131     { MODE_NIGHT_SNAPSHOT,     32779 },
 132     { MODE_PORTRAIT,           32781 },
 133     { MODE_KIDS_PETS,          32784 },
 134     { MODE_INDOOR,             32785 },
 135 };
 136 
 137 #include "../generic/shooting.c"
 138 
 139 long get_file_next_counter() {
 140     return get_file_counter();
 141 }
 142 
 143 long get_target_file_num() {
 144     long n;
 145     
 146     n = get_file_next_counter();
 147     n = (n>>4)&0x3FFF;
 148     return n;
 149 }
 150 
 151 long get_target_dir_num() {
 152     long n;
 153     
 154     n = get_file_next_counter();
 155     n = (n>>18)&0x3FF;
 156     return n;
 157 }
 158 
 159 // not used ? -> CAM_DRAW_EXPOSITION

/* [<][>][^][v][top][bottom][index][help] */