root/platform/a1100/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        //--not suer
   2 #define PARAM_EXPOSURE_COUNTER  0x02         //--not suer
   3 
   4 #include "platform.h"
   5 
   6 const ApertureSize aperture_sizes_table[] = {
   7     {  9, 274, "2.7" },
   8     { 10, 297, "2.8" },
   9     { 11, 321, "3.2" },
  10     { 12, 349, "3.5" },
  11     { 13, 379, "4.0" },
  12     { 14, 413, "4.5" },
  13     { 15, 447, "5.0" },
  14     { 16, 483, "5.6" },
  15     { 17, 574, "8.0" },//---->with ND filter
  16     { 18, 598, "9.0" },
  17     { 19, 626, "10.0" },
  18     { 20, 656, "11.0" },
  19     { 21, 690, "13.0" },
  20     { 22, 724, "14.0" },
  21     { 23, 760, "16.0" },
  22 };
  23 
  24 const ShutterSpeed shutter_speeds_table[] = {
  25     { -12, -384, "15", 15000000 },
  26     { -11, -352, "13", 13000000 },
  27     { -10, -320, "10", 10000000 },
  28     {  -9, -288, "8",   8000000 },
  29     {  -8, -256, "6",   6000000 },
  30     {  -7, -224, "5",   5000000 },
  31     {  -6, -192, "4",   4000000 },
  32     {  -5, -160, "3.2", 3200000 },
  33     {  -4, -128, "2.5", 2500000 },
  34     {  -3,  -96, "2",   2000000 },
  35     {  -2,  -64, "1.6", 1600000 },
  36     {  -1,  -32, "1.3", 1300000 },
  37     {   0,    0, "1",   1000000 },
  38     {   1,   32, "0.8",  800000 },
  39     {   2,   64, "0.6",  600000 },
  40     {   3,   96, "0.5",  500000 },
  41     {   4,  128, "0.4",  400000 },
  42     {   5,  160, "0.3",  300000 },
  43     {   6,  192, "1/4",  250000 },
  44     {   7,  224, "1/5",  200000 },
  45     {   8,  256, "1/6",  166667 },
  46     {   9,  288, "1/8",  125000 },
  47     {  10,  320, "1/10", 100000 },
  48     {  11,  352, "1/13",  76923 },
  49     {  12,  384, "1/15",  66667 },
  50     {  13,  416, "1/20",  50000 },
  51     {  14,  448, "1/25",  40000 },
  52     {  15,  480, "1/30",  33333 },
  53     {  16,  512, "1/40",  25000 },
  54     {  17,  544, "1/50",  20000 },
  55     {  18,  576, "1/60",  16667 },
  56     {  19,  608, "1/80",  12500 },
  57     {  20,  640, "1/100", 10000 },
  58     {  21,  672, "1/125",  8000 },
  59     {  22,  704, "1/160",  6250 },
  60     {  23,  736, "1/200",  5000 },
  61     {  24,  768, "1/250",  4000 },
  62     {  25,  800, "1/320",  3125 },
  63     {  26,  832, "1/400",  2500 },
  64     {  27,  864, "1/500",  2000 },
  65     {  28,  896, "1/640",  1563 },
  66     {  29,  928, "1/800",  1250 },
  67     {  30,  960, "1/1000", 1000 },
  68     {  31,  992, "1/1250",  800 },
  69     {  32, 1024, "1/1600",  625 },
  70 };
  71 
  72 const ISOTable iso_table[] = {
  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     {  7, 3200, "3200", -1},
  81 };          
  82 
  83 const CapturemodeMap modemap[] = {
  84     { MODE_AUTO,               32768 },
  85     { MODE_P,                  32772 },
  86     { MODE_VIDEO_STD,          2598  }, 
  87     { MODE_PORTRAIT,           32781 },
  88     { MODE_NIGHT_SCENE,        32779 },
  89     { MODE_KIDS_PETS,          32784 },
  90     { MODE_INDOOR,             32785 },
  91     { MODE_SUNSET,             16402 },
  92     { MODE_FIREWORK,           16406 },
  93     { MODE_LONG_SHUTTER,       16390 },
  94     { MODE_BEACH,              16405 },
  95     { MODE_AQUARIUM,           16408 },
  96     { MODE_FOLIAGE,            16403 },
  97     { MODE_SNOW,               16404 },
  98     { MODE_ISO_3200,           16413 },
  99     { MODE_LANDSCAPE,          32780 },
 100     { MODE_EASY,               33311 } 
 101  };
 102 
 103 #include "../generic/shooting.c"
 104 
 105 const int dof_tbl[] = {6200, 7780, 9410, 11370, 13790, 16770, 20180, 24800};
 106 const int dof_tbl_size = sizeof(dof_tbl)/sizeof(dof_tbl[0]);
 107 
 108 long get_file_next_counter() {
 109     return get_file_counter();
 110 }
 111 
 112 long get_target_file_num() {
 113     long n;
 114 
 115     n = get_file_next_counter();
 116     n = (n>>4)&0x3FFF;
 117     return n;
 118 }
 119 
 120 long get_target_dir_num() {
 121     long n;
 122 
 123     n = get_file_next_counter();
 124     n = (n>>18)&0x3FF;
 125     return n;
 126 }

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