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

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