root/platform/ixus110_sd960/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 // OK
   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 ND filter.
   7 // aperture_sizes_table[].id is just a serial number.
   8 const ApertureSize aperture_sizes_table[] = { // PROPCASE 23
   9     {  9, 290, "2.8" }, // wide angle
  10     { 10, 307, "3.2" },
  11     { 11, 325, "3.2" },
  12     { 12, 347, "3.5" },
  13     { 13, 367, "3.5" },
  14     { 14, 389, "4.0" },
  15     { 15, 413, "4.5" },
  16     { 16, 443, "5.0" },
  17     { 17, 470, "5.6" },
  18     { 18, 494, "5.8" }, // max. opt. zoom
  19 // The rest are the same physical apertures as above, but with ND:
  20     { 19, 481, "5.6" }, // wide angle
  21     { 20, 498, "6.3" },
  22     { 21, 516, "6.3" },
  23     { 22, 538, "7.1" },
  24     { 23, 558, "7.1" },
  25     { 24, 580, "8.0" },
  26     { 25, 604, "9.0" },
  27     { 26, 634, "10" },
  28     { 27, 661, "11" },
  29     { 28, 685, "11" }, // max. opt. zoom
  30 };
  31 
  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 const CapturemodeMap modemap[] = {
  93     { MODE_LONG_SHUTTER,       32774 },
  94     { MODE_P,                  32772 },
  95     { MODE_STITCH,             33290 }, // SCN, either direction
  96     { MODE_COLOR_ACCENT,       33307 },
  97     { MODE_COLOR_SWAP,         33308 },
  98     { MODE_ISO_3200,           32797 },
  99     { MODE_AUTO,               32768 }, 
 100     { MODE_FOLIAGE,            32787 },
 101     { MODE_SUNSET,             32786 },
 102     { MODE_PORTRAIT,           32781 },
 103     { MODE_NIGHT_SNAPSHOT,     32779 },
 104     { MODE_SNOW,               32788 },
 105     { MODE_BEACH,              32789 },
 106     { MODE_INDOOR,             32785 },
 107     { MODE_UNDERWATER,         32791 },
 108     { MODE_AQUARIUM,           32792 },
 109     { MODE_KIDS_PETS,          32784 },
 110     { MODE_FIREWORK,           32790 },
 111     { MODE_VIDEO_COLOR_ACCENT, 2599  },
 112     { MODE_VIDEO_STD,          2601  },
 113     { MODE_VIDEO_COLOR_SWAP,   2600  },
 114     { MODE_DIGITAL_MACRO,      33288 },
 115 };
 116 
 117 #include "../generic/shooting.c"
 118 
 119 long get_file_next_counter() {
 120     return get_file_counter();
 121 }
 122 
 123 long get_target_file_num() {
 124     long n;
 125     
 126     n = get_file_next_counter();
 127     n = (n>>4)&0x3FFF;
 128     return n;
 129 }
 130 
 131 long get_target_dir_num() {
 132     long n;
 133     
 134     n = get_file_next_counter();
 135     n = (n>>18)&0x3FF;
 136     return n;
 137 }
 138 
 139 // not used ? -> CAM_DRAW_EXPOSITION

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