root/platform/ixus95_sd1200/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     {  9, 295, "2.8" }, // zoom 1.0
  10     { 10, 318, "3.2" }, // zoom 1.2
  11     { 11, 342, "3.5" }, // etc.
  12     { 12, 368, "4.0" },
  13     { 13, 396, "4.0" },
  14     { 14, 427, "4.5" },
  15     { 15, 461, "5.0" },
  16     { 16, 493, "5.8" },
  17 // The rest are the same physical apertures as above, but with ND8:
  18     { 17, 576, "8.0" },
  19     { 18, 599, "9.0" },
  20     { 19, 623, "10.0" },
  21     { 20, 649, "11.0" },
  22     { 21, 677, "11.0" },
  23     { 22, 708, "13.0" },
  24     { 23, 742, "14.0" },
  25     { 24, 774, "16.0" },
  26 };
  27 
  28 // OLD copied comment!
  29 // TODO copied from 850
  30 // Another set of "mock" values, which can probably
  31 // be derived from the table found at FFB4E258 in FW.
  32 // At the moment, I see no reason to amend it.
  33 const ShutterSpeed shutter_speeds_table[] = {
  34     { -12, -384, "15", 15000000 },
  35     { -11, -352, "13", 13000000 },
  36     { -10, -320, "10", 10000000 },
  37     {  -9, -288, "8",   8000000 },
  38     {  -8, -256, "6",   6000000 },
  39     {  -7, -224, "5",   5000000 },
  40     {  -6, -192, "4",   4000000 },
  41     {  -5, -160, "3.2", 3200000 },
  42     {  -4, -128, "2.5", 2500000 },
  43     {  -3,  -96, "2",   2000000 },
  44     {  -2,  -64, "1.6", 1600000 },
  45     {  -1,  -32, "1.3", 1300000 },
  46     {   0,    0, "1",   1000000 },
  47     {   1,   32, "0.8",  800000 },
  48     {   2,   64, "0.6",  600000 },
  49     {   3,   96, "0.5",  500000 },
  50     {   4,  128, "0.4",  400000 },
  51     {   5,  160, "0.3",  300000 },
  52     {   6,  192, "1/4",  250000 },
  53     {   7,  224, "1/5",  200000 },
  54     {   8,  256, "1/6",  166667 },
  55     {   9,  288, "1/8",  125000 },
  56     {  10,  320, "1/10", 100000 },
  57     {  11,  352, "1/13",  76923 },
  58     {  12,  384, "1/15",  66667 },
  59     {  13,  416, "1/20",  50000 },
  60     {  14,  448, "1/25",  40000 },
  61     {  15,  480, "1/30",  33333 },
  62     {  16,  512, "1/40",  25000 },
  63     {  17,  544, "1/50",  20000 },
  64     {  18,  576, "1/60",  16667 },
  65     {  19,  608, "1/80",  12500 },
  66     {  20,  640, "1/100", 10000 },
  67     {  21,  672, "1/125",  8000 },
  68     {  22,  704, "1/160",  6250 },
  69     {  23,  736, "1/200",  5000 },
  70     {  24,  768, "1/250",  4000 },
  71     {  25,  800, "1/320",  3125 },
  72     {  26,  832, "1/400",  2500 },
  73     {  27,  864, "1/500",  2000 },
  74     {  28,  896, "1/640",  1563 },
  75     {  29,  928, "1/800",  1250 },
  76     {  30,  960, "1/1000", 1000 },
  77     {  31,  992, "1/1250",  800 },
  78     {  32, 1021, "1/1600",  625 },
  79 };
  80 
  81 const ISOTable iso_table[] = {
  82     { -1,     1,    "HI", -1},
  83     {  0,     0,  "Auto", -1},
  84     {  1,    80,    "80", -1},
  85     {  2,   100,   "100", -1},
  86     {  3,   200,   "200", -1},
  87     {  4,   400,   "400", -1},
  88     {  5,   800,   "800", -1},
  89     {  6,  1600,  "1600", -1},
  90 };          
  91 
  92 // PROPCACE 49
  93 const CapturemodeMap modemap[] = {
  94     { MODE_AUTO,               32768 },
  95     { MODE_P,                  32772 },
  96     { MODE_PORTRAIT,           0x800D },
  97     { MODE_NIGHT_SNAPSHOT,     0x800B },
  98     { MODE_KIDS_PETS,          0x8010 },
  99     { MODE_INDOOR,             0x8011 },
 100     { MODE_SUNSET,             0x4012 },
 101     { MODE_FOLIAGE,            0x4013 },
 102     { MODE_SNOW,               0x4014 },
 103     { MODE_BEACH,              0x4015 },
 104     { MODE_FIREWORK,           0x4016 },
 105     { MODE_NIGHT_SCENE,        0x4006 }, //AKA Long Shutter
 106     { MODE_UNDERWATER,         0x4017 },
 107     { MODE_AQUARIUM,           0x4018 },
 108     { MODE_ISO_3200,           0x401D },
 109     { MODE_DIGITAL_MACRO,      0x4208 },
 110 };
 111 
 112 #include "../generic/shooting.c"
 113 
 114 long get_file_next_counter() {
 115     return get_file_counter();
 116 }
 117 
 118 long get_target_file_num() {
 119     long n;
 120     
 121     n = get_file_next_counter();
 122     n = (n>>4)&0x3FFF;
 123     return n;
 124 }
 125 
 126 long get_target_dir_num() {
 127     long n;
 128     
 129     n = get_file_next_counter();
 130     n = (n>>18)&0x3FF;
 131     return n;
 132 }
 133 
 134 // not used ? -> CAM_DRAW_EXPOSITION

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