root/platform/sx610hs/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_name

   1 #include "platform.h"
   2 
   3 // sx610hs_prop53_OK
   4 const CapturemodeMap modemap[] = {
   5     { MODE_P,                   32773 }, //
   6     { MODE_AUTO,                32768 }, //
   7     { MODE_PORTRAIT,            32790 }, //
   8 //    { MODE_FACE_DETECTION_SMILE,33333 }, //
   9 //    { MODE_FACE_DETECTION_WINK,33334 }, //
  10 //    { MODE_FACE_DETECTION_NEW_FACE,33332 }, //
  11     { MODE_HIGHSPEED_BURST,            32778 }, //
  12 //    { MODE_LOWLIGHT_HANDHELD,  33337 }, //
  13     { MODE_LOWLIGHT,           32813 }, //
  14     { MODE_FISHEYE,             33335 }, //
  15     { MODE_MINIATURE,           33336 }, //
  16     { MODE_TOY_CAMERA,          33339 }, //
  17     { MODE_MONOCHROME,          33343 }, //
  18     { MODE_SUPER_VIVID,         33330 }, //
  19     { MODE_POSTER_EFFECT,        33331 }, //
  20     { MODE_SNOW,                 32798 }, //
  21     { MODE_FIREWORK,            32800 }, //
  22     { MODE_LONG_SHUTTER,           32775 }, //
  23     { MODE_HYBRID_AUTO,         33298 },
  24     { MODE_CREATIVE_EFFECT,     33299 },
  25 } ;
  26 
  27 
  28 const ApertureSize aperture_sizes_table[] = {
  29     {  9, 305, "3.0" },
  30     { 10, 314, "3.2" }, 
  31     { 11, 350, "3.5" }, 
  32     { 12, 382, "4.0" },
  33     { 13, 411, "4.5" },
  34     { 14, 439, "5.0" },
  35     { 15, 472, "5.6" },
  36     { 16, 514, "6.3" },
  37     { 17, 543, "6.9" },
  38 };
  39 
  40 const ShutterSpeed shutter_speeds_table[] = {
  41     { -12, -384, "15", 15000000 },
  42     { -11, -352, "13", 13000000 },
  43     { -10, -320, "10", 10000000 },
  44     {  -9, -288, "8",   8000000 },
  45     {  -8, -256, "6",   6000000 },
  46     {  -7, -224, "5",   5000000 },
  47     {  -6, -192, "4",   4000000 },
  48     {  -5, -160, "3.2", 3200000 },
  49     {  -4, -128, "2.5", 2500000 },
  50     {  -3,  -96, "2",   2000000 },
  51     {  -2,  -64, "1.6", 1600000 },
  52     {  -1,  -32, "1.3", 1300000 },
  53     {   0,    0, "1",   1000000 },
  54     {   1,   32, "0.8",  800000 },
  55     {   2,   64, "0.6",  600000 },
  56     {   3,   96, "0.5",  500000 },
  57     {   4,  128, "0.4",  400000 },
  58     {   5,  160, "0.3",  300000 },
  59     {   6,  192, "1/4",  250000 },
  60     {   7,  224, "1/5",  200000 },
  61     {   8,  256, "1/6",  166667 },
  62     {   9,  288, "1/8",  125000 },
  63     {  10,  320, "1/10", 100000 },
  64     {  11,  352, "1/13",  76923 },
  65     {  12,  384, "1/15",  66667 },
  66     {  13,  416, "1/20",  50000 },
  67     {  14,  448, "1/25",  40000 },
  68     {  15,  480, "1/30",  33333 },
  69     {  16,  512, "1/40",  25000 },
  70     {  17,  544, "1/50",  20000 },
  71     {  18,  576, "1/60",  16667 },
  72     {  19,  608, "1/80",  12500 },
  73     {  20,  640, "1/100", 10000 },
  74     {  21,  672, "1/125",  8000 },
  75     {  22,  704, "1/160",  6250 },
  76     {  23,  736, "1/200",  5000 },
  77     {  24,  768, "1/250",  4000 },
  78     {  25,  800, "1/320",  3125 },
  79     {  26,  832, "1/400",  2500 },
  80     {  27,  864, "1/500",  2000 },
  81     {  28,  896, "1/640",  1563 },
  82     {  29,  928, "1/800",  1250 },
  83     {  30,  960, "1/1000", 1000 },
  84     {  31,  992, "1/1250",  800 },
  85     {  32, 1024, "1/1600",  625 },
  86         {  33, 1056, "1/2000",  500 },
  87 };
  88 
  89 const ISOTable iso_table[] = {
  90     {  0,    0, "Auto", -1},
  91     {  1,    80,    "80", -1},
  92     {  2,   100,   "100", -1},
  93     {  3,   200,   "200", -1},
  94     {  4,   400,   "400", -1},
  95     {  5,   800,   "800", -1},
  96     {  6,  1600,  "1600", -1},
  97     {  7,  3200,  "3200", -1},
  98 };
  99 
 100 #include "../generic/shooting.c"
 101 
 102 long get_file_next_counter() {
 103     return get_file_counter();
 104 }
 105 
 106 long get_target_file_num() {
 107     return get_exposure_counter();
 108 }
 109 
 110 void get_target_dir_name(char *out) {
 111     extern void _GetImageFolder(char*,int,int);
 112     _GetImageFolder(out, get_file_next_counter(), CAM_DATE_FOLDER_NAMING);
 113 }
 114 

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