root/platform/ixus150_elph140/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 // Tested by iterating over values
   4 const CapturemodeMap modemap[] = {
   5     { MODE_P,                   32772 },
   6     { MODE_AUTO,                32768 },
   7     { MODE_PORTRAIT,            32788 },
   8     { MODE_LONG_SHUTTER,        32774 },
   9     { MODE_LOWLIGHT,            32808 },
  10     { MODE_FACE_SELF_TIMER,     33327 },
  11     { MODE_FISHEYE,             33330 },
  12     { MODE_TOY_CAMERA,          33334 },
  13     { MODE_MONOCHROME,          33338 },
  14     { MODE_LIVE,                33340 },
  15     { MODE_SUPER_VIVID,         33325 },
  16     { MODE_POSTER_EFFECT,       33326 },
  17     { MODE_MINIATURE,           33331 },
  18     { MODE_SNOW,                32796 },
  19     { MODE_FIREWORK,            32798 },
  20 } ;
  21 
  22 //To do
  23 // http://chdk.setepontos.com/index.php?topic=2031.msg27692#msg27692
  24 // PROPCASE_AV (68)
  25 const ApertureSize aperture_sizes_table[] = {
  26     {  9, 293, "2.8" },
  27     { 10, 307, "3.2" },
  28     { 11, 344, "3.5" },
  29     { 12, 388, "4.0" },
  30     { 13, 413, "4.5" },
  31     { 14, 443, "5.0" },
  32     { 15, 476, "5.6" },
  33     { 16, 500, "5.9" },
  34     { 17, 1410, "14.1" },
  35     { 18, 1600, "16.0" },
  36     { 19, 1800, "18.0" },
  37     { 20, 2000, "20.1" },
  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 };
  87 
  88 const ISOTable iso_table[] = {
  89     {  0,    0, "Auto", -1},
  90     {  1,  100,  "100", -1},
  91     {  2,  200,  "200", -1},
  92     {  3,  400,  "400", -1},
  93     {  4,  800,  "800", -1},
  94     {  5, 1600,  "1600", -1},
  95 };
  96 
  97 #include "../generic/shooting.c"
  98 
  99 long get_file_next_counter() {
 100     return get_file_counter();
 101 }
 102 
 103 long get_target_file_num() {
 104     return get_exposure_counter();
 105 }
 106 
 107 void get_target_dir_name(char *out) {
 108     extern void _GetImageFolder(char*,int,int);
 109     _GetImageFolder(out, get_file_next_counter(), CAM_DATE_FOLDER_NAMING);

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