root/platform/a450/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      0x37
   2 
   3 #include "platform.h"
   4 
   5 const ApertureSize aperture_sizes_table[] = {
   6     {  9, 292, "2.8" },
   7     { 10, 303, "3.2" },
   8     { 11, 320, "3.5" },
   9     { 12, 342, "3.5" },
  10     { 13, 367, "4.0" },
  11     { 14, 395, "4.5" },
  12     { 15, 427, "5.1" },
  13     { 16, 571, "8.0 ND" },
  14     { 17, 590, "9.0 ND" },
  15     { 18, 610, "10.0 ND" },
  16     { 19, 633, "10.0 ND" },
  17     { 20, 660, "11.0 ND" },
  18     { 21, 688, "13.0 ND" },
  19     { 22, 722, "16.0 ND" },
  20 };
  21 
  22 const ShutterSpeed shutter_speeds_table[] = {
  23     { -12, -384, "15", 15000000 },
  24     { -11, -352, "13", 13000000 },
  25     { -10, -320, "10", 10000000 },
  26     {  -9, -288, "8",   8000000 },
  27     {  -8, -256, "6",   6000000 },
  28     {  -7, -224, "5",   5000000 },
  29     {  -6, -192, "4",   4000000 },
  30     {  -5, -160, "3.2", 3200000 },
  31     {  -4, -128, "2.5", 2500000 },
  32     {  -3,  -96, "2",   2000000 },
  33     {  -2,  -64, "1.6", 1600000 },
  34     {  -1,  -32, "1.3", 1300000 },
  35     {   0,    0, "1",   1000000 },
  36     {   1,   32, "0.8",  800000 },
  37     {   2,   64, "0.6",  600000 },
  38     {   3,   96, "0.5",  500000 },
  39     {   4,  128, "0.4",  400000 },
  40     {   5,  160, "0.3",  300000 },
  41     {   6,  192, "1/4",  250000 },
  42     {   7,  224, "1/5",  200000 },
  43     {   8,  256, "1/6",  166667 },
  44     {   9,  288, "1/8",  125000 },
  45     {  10,  320, "1/10", 100000 },
  46     {  11,  352, "1/13",  76923 },
  47     {  12,  384, "1/15",  66667 },
  48     {  13,  416, "1/20",  50000 },
  49     {  14,  448, "1/25",  40000 },
  50     {  15,  480, "1/30",  33333 },
  51     {  16,  512, "1/40",  25000 },
  52     {  17,  544, "1/50",  20000 },
  53     {  18,  576, "1/60",  16667 },
  54     {  19,  608, "1/80",  12500 },
  55     {  20,  640, "1/100", 10000 },
  56     {  21,  672, "1/125",  8000 },
  57     {  22,  704, "1/160",  6250 },
  58     {  23,  736, "1/200",  5000 },
  59     {  24,  768, "1/250",  4000 },
  60     {  25,  800, "1/320",  3125 },
  61     {  26,  832, "1/400",  2500 },
  62     {  27,  864, "1/500",  2000 },
  63     {  28,  896, "1/640",  1563 },
  64     {  29,  928, "1/800",  1250 },
  65     {  30,  960, "1/1000", 1000 },
  66     {  31,  992, "1/1250",  800 },
  67     {  32, 1021, "1/1600",  625 },
  68     {  33, 1053, "1/2000",  500 },
  69 };
  70 
  71 const ISOTable iso_table[] = {
  72     {  0,    0, "Auto", -1},
  73     {  1,   80,   "80", -1},
  74     {  2,  100,  "100", -1},
  75     {  3,  200,  "200", -1},
  76     {  4,  400,  "400", -1},
  77 };          
  78 
  79 /*
  80 from a460, no page for a450, manual indicates same modes
  81 Shooting Modes
  82     Auto, Camera M,
  83     Special Scene
  84         (Portrait, Foliage, Snow, Beach, Fireworks, Indoor, Kids & Pets,
  85         Night Snapshot),
  86     Super Macro, Movie
  87 Movie: 640 x 480 (10 fps) / 320 x 240 (30 fps) available up to 1GB or 1 hour for each file size,
  88 160 x 120 (3 min. at 15 fps) 
  89 
  90 canon mode list FFEAB878 in 100d
  91 */
  92 const CapturemodeMap modemap[] = {
  93     { MODE_LONG_SHUTTER,       32774 }, // confirmed on a460
  94     { MODE_AUTO,               32768 },
  95     { MODE_P,                  32772 },
  96     { MODE_SUPER_MACRO,        33289 }, // in canon list, confirmed on a460
  97 //    { MODE_STITCH,               33290 }, // reported as functional stitch assist in forum, not in official specs
  98     { MODE_PORTRAIT,           16397 },
  99     { MODE_VIDEO_STD,          2597  },
 100     { MODE_VIDEO_COMPACT,      2599  },
 101     { MODE_NIGHT_SNAPSHOT,     16395 },
 102     { MODE_KIDS_PETS,          16400 },
 103     { MODE_INDOOR,             16401 },
 104     { MODE_FOLIAGE,            16402 },
 105     { MODE_SNOW,               16403 },
 106     { MODE_BEACH,              16404 },
 107     { MODE_FIREWORK,           16405 },
 108 };
 109 #include "../generic/shooting.c"
 110 
 111 long get_file_next_counter() {
 112     return get_file_counter();
 113 }
 114 
 115 long get_target_file_num() {
 116     long n;
 117     
 118     n = get_file_next_counter();
 119     n = (n>>4)&0x3FFF;
 120     return n;
 121 }
 122 
 123 long get_target_dir_num() {
 124     long n;
 125     
 126     n = get_file_next_counter();
 127     n = (n>>18)&0x3FF;
 128     return n;
 129 }

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