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

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