root/platform/ixus75_sd750/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      0x37
   2 
   3 #include "platform.h"
   4 
   5 const ApertureSize aperture_sizes_table[] = {
   6     {  9, 290, "2.8" }, // PROPCASE 23
   7     { 10, 312, "3.2" },
   8     { 11, 329, "3.2" },
   9     { 12, 336, "3.5" },
  10     { 13, 362, "3.5" },
  11     { 14, 391, "4.0" },
  12     { 15, 420, "4.5" },
  13     { 16, 448, "4.9" },
  14     { 17, 577, "8.0" },
  15     { 18, 599, "9.0" },
  16     { 19, 623, "10.0" },
  17     { 20, 649, "10.0" },
  18     { 21, 678, "11.0" },
  19     { 22, 707, "13.0" },
  20     { 23, 735, "14.0" },
  21 };
  22 
  23 const ShutterSpeed shutter_speeds_table[] = {
  24     { -12, -384, "15", 15000000 }, // PROPCASE 262
  25     { -11, -352, "13", 13000000 },
  26     { -10, -320, "10", 10000000 },
  27     {  -9, -288, "8",   8000000 },
  28     {  -8, -256, "6",   6000000 },
  29     {  -7, -224, "5",   5000000 },
  30     {  -6, -192, "4",   4000000 },
  31     {  -5, -160, "3.2", 3200000 },
  32     {  -4, -128, "2.5", 2500000 },
  33     {  -3,  -96, "2",   2000000 },
  34     {  -2,  -64, "1.6", 1600000 },
  35     {  -1,  -32, "1.3", 1300000 },
  36     {   0,    0, "1",   1000000 },
  37     {   1,   32, "0.8",  800000 },
  38     {   2,   64, "0.6",  600000 },
  39     {   3,   96, "0.5",  500000 },
  40     {   4,  128, "0.4",  400000 },
  41     {   5,  160, "0.3",  300000 },
  42     {   6,  192, "1/4",  250000 },
  43     {   7,  224, "1/5",  200000 },
  44     {   8,  256, "1/6",  166667 },
  45     {   9,  288, "1/8",  125000 },
  46     {  10,  320, "1/10", 100000 },
  47     {  11,  352, "1/13",  76923 },
  48     {  12,  384, "1/15",  66667 },
  49     {  13,  416, "1/20",  50000 },
  50     {  14,  448, "1/25",  40000 },
  51     {  15,  480, "1/30",  33333 },
  52     {  16,  512, "1/40",  25000 },
  53     {  17,  544, "1/50",  20000 },
  54     {  18,  576, "1/60",  16667 },
  55     {  19,  608, "1/80",  12500 },
  56     {  20,  640, "1/100", 10000 },
  57     {  21,  672, "1/125",  8000 },
  58     {  22,  704, "1/160",  6250 },
  59     {  23,  736, "1/200",  5000 },
  60     {  24,  768, "1/250",  4000 },
  61     {  25,  800, "1/320",  3125 },
  62     {  26,  832, "1/400",  2500 },
  63     {  27,  864, "1/500",  2000 },
  64     {  28,  896, "1/640",  1563 },
  65     {  29,  928, "1/800",  1250 },
  66     {  30,  960, "1/1000", 1000 },
  67     {  31,  992, "1/1250",  800 },
  68     {  32, 1008, "1/1500",  667 },
  69 };
  70 
  71 const ISOTable iso_table[] = {
  72     { -1,     1,    "HI", -1}, // PROPCASE 149
  73     {  0,     0,  "Auto", -1},
  74     {  1,    80,    "80", -1},
  75     {  2,   100,   "100", -1},
  76     {  3,   200,   "200", -1},
  77     {  4,   400,   "400", -1},
  78     {  5,   800,   "800", -1},
  79     {  6,  1600,  "1600", -1},
  80 };          
  81 
  82 /*
  83 http://www.usa.canon.com/consumer/controller?act=ModelInfoAct&fcategoryid=224&modelid=14919#ModelTechSpecsAct
  84 hooting Modes
  85     Auto, Camera M,
  86     Special Scene
  87         (Portrait, Foliage, Snow, Beach, Fireworks, Aquarium, Underwater,
  88         Indoor, Kids & Pets, Night Snapshot),
  89     Color Accent, Color Swap, Digital Macro, Stitch Assist, Movie
  90 Movie: 640 x 480/320 x 240 (30 fps/15 fps) available up to 4GB or 1 hour for each file size,
  91     320 x 240 (1 min. at 60 fps), 160 x 120 (3 min. at 15 fps), 
  92     640 x 480 (2 hrs. at 0.5 fps/1 fps. Playback at 15 fps)
  93 
  94 canon mode list FFB479F8 in 100b
  95 */
  96 // PROPCACE 49
  97 const CapturemodeMap modemap[] = {
  98     { MODE_LONG_SHUTTER,       32774 }, // guessed!
  99     { MODE_AUTO,               32768 },
 100     { MODE_P,                  32772 },
 101     { MODE_DIGITAL_MACRO,      33288 },
 102 //    { MODE_PORTRAIT,           32781 }, // not in canon lists, SCN
 103 //    { MODE_NIGHT_SNAPSHOT,     32779 }, // not in canon lists, SCN
 104     { MODE_COLOR_ACCENT,       33306 },
 105     { MODE_COLOR_SWAP,         33307 }, // was MY_COLORS
 106     { MODE_KIDS_PETS,          16400 },
 107     { MODE_INDOOR,             16401 },
 108     { MODE_FOLIAGE,            16402 },
 109     { MODE_SNOW,               16403 },
 110     { MODE_BEACH,              16404 },
 111     { MODE_FIREWORK,           16405 },
 112     { MODE_AQUARIUM,           16407 },
 113     { MODE_UNDERWATER,         16406 },
 114     { MODE_PORTRAIT,           16397 },
 115     { MODE_NIGHT_SNAPSHOT,     16395 },
 116     { MODE_VIDEO_STD,          2597  },
 117     { MODE_VIDEO_SPEED,        2598  },
 118     { MODE_VIDEO_COMPACT,      2599  },
 119     { MODE_VIDEO_COLOR_ACCENT, 2595  },
 120     { MODE_VIDEO_COLOR_SWAP,   2596  }, // was MY_COLORS
 121     { MODE_VIDEO_TIME_LAPSE,   2601  },
 122     { MODE_STITCH,             33290 },
 123 };
 124 
 125 #include "../generic/shooting.c"
 126 
 127 long get_file_next_counter() {
 128     return get_file_counter();
 129 }
 130 
 131 long get_target_file_num() {
 132     long n;
 133     
 134     n = get_file_next_counter();
 135     n = (n>>4)&0x3FFF;
 136     return n;
 137 }
 138 
 139 long get_target_dir_num() {
 140     long n;
 141     
 142     n = get_file_next_counter();
 143     n = (n>>18)&0x3FF;
 144     return n;
 145 }

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