root/platform/a430/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      0x34
   2 #define PARAM_EXPOSURE_COUNTER  0x01
   3 
   4 #include "platform.h"
   5 
   6 const ApertureSize aperture_sizes_table[] = {
   7     {  9, 288, "2.8" },
   8     { 10, 302, "3.2" },
   9     { 11, 318, "3.5" },
  10     { 12, 339, "3.5" },
  11     { 13, 363, "4.0" },
  12     { 14, 390, "4.5" },
  13     { 15, 420, "5.0" },
  14     { 16, 449, "5.6 *" },
  15     { 17, 457, "5.8" },
  16     { 18, 466, "6.3 *" },
  17     { 19, 485, "6.3 *" },
  18     { 20, 510, "7.1 *" },
  19     { 21, 536, "8.0 *" },
  20     { 22, 565, "9.0 *" },
  21     { 23, 597, "10.0 *" },
  22     { 24, 635, "11.0 *" },
  23 }; // * denotes values with the small circular aperture swung in
  24 
  25 const ShutterSpeed shutter_speeds_table[] = {
  26     { -12, -384, "15", 15000000 },
  27     { -11, -352, "13", 13000000 },
  28     { -10, -320, "10", 10000000 },
  29     {  -9, -288, "8",   8000000 },
  30     {  -8, -256, "6",   6000000 },
  31     {  -7, -224, "5",   5000000 },
  32     {  -6, -192, "4",   4000000 },
  33     {  -5, -160, "3.2", 3200000 },
  34     {  -4, -128, "2.5", 2500000 },
  35     {  -3,  -96, "2",   2000000 },
  36     {  -2,  -64, "1.6", 1600000 },
  37     {  -1,  -32, "1.3", 1300000 },
  38     {   0,    0, "1",   1000000 },
  39     {   1,   32, "0.8",  800000 },
  40     {   2,   64, "0.6",  600000 },
  41     {   3,   96, "0.5",  500000 },
  42     {   4,  128, "0.4",  400000 },
  43     {   5,  160, "0.3",  300000 },
  44     {   6,  192, "1/4",  250000 },
  45     {   7,  224, "1/5",  200000 },
  46     {   8,  256, "1/6",  166667 },
  47     {   9,  288, "1/8",  125000 },
  48     {  10,  320, "1/10", 100000 },
  49     {  11,  352, "1/13",  76923 },
  50     {  12,  384, "1/15",  66667 },
  51     {  13,  416, "1/20",  50000 },
  52     {  14,  448, "1/25",  40000 },
  53     {  15,  480, "1/30",  33333 },
  54     {  16,  512, "1/40",  25000 },
  55     {  17,  544, "1/50",  20000 },
  56     {  18,  576, "1/60",  16667 },
  57     {  19,  608, "1/80",  12500 },
  58     {  20,  640, "1/100", 10000 },
  59     {  21,  672, "1/125",  8000 },
  60     {  22,  704, "1/160",  6250 },
  61     {  23,  736, "1/200",  5000 },
  62     {  24,  768, "1/250",  4000 },
  63     {  25,  800, "1/320",  3125 },
  64     {  26,  832, "1/400",  2500 },
  65     {  27,  864, "1/500",  2000 },
  66     {  28,  896, "1/640",  1563 },
  67     {  29,  928, "1/800",  1250 },
  68     {  30,  960, "1/1000", 1000 },
  69     {  31,  992, "1/1250",  800 },
  70     {  32, 1021, "1/1600",  625 },
  71     {  33, 1053, "1/2000",  500 },
  72 };
  73 
  74 const ISOTable iso_table[] = {
  75     {  0,    0, "Auto", -1},
  76     {  1,   64,   "64", -1},
  77     {  2,  100,  "100", -1},
  78     {  3,  200,  "200", -1},
  79     {  4,  400,  "400", -1},
  80 };
  81 
  82 /*
  83 http://www.usa.canon.com/cusa/support/consumer/digital_cameras/powershot_a_series/powershot_a430#Specifications
  84 canon mode list FFD588D4 in 100b
  85 */          
  86 const CapturemodeMap modemap[] = {
  87 //    { MODE_M,                  32769 },
  88     { MODE_P,                  32772 },
  89     { MODE_AUTO,               32768 },
  90     { MODE_PORTRAIT,           16396 },
  91 //    { MODE_NIGHT_SCENE,        32782 }, // "night scene" on dial, different from "night snapshot" under "scene" below
  92     { MODE_STITCH,             33289 }, //
  93     { MODE_NIGHT_SNAPSHOT,     16394 }, // "night snapshot"
  94     { MODE_KIDS_PETS,          16398 }, // "kids and pets"
  95     { MODE_INDOOR,             16399 }, // "indoor"
  96     { MODE_FOLIAGE,            16400 }, // "foliage"
  97     { MODE_SNOW,               16401 }, // "snow"
  98     { MODE_BEACH,              16402 }, // "beach"
  99     { MODE_FIREWORK,           16403 }, // "fireworks"
 100     { MODE_COLOR_ACCENT,       33303 }, // "color accent"
 101     { MODE_COLOR_SWAP,         33304 }, // "color swap"
 102     { MODE_SUPER_MACRO,        33288 }, // 
 103     { MODE_VIDEO_STD,          3613  }, //
 104 /*    { MODE_VIDEO_SPEED,        2594  }, // "fast frame rate"
 105     { MODE_VIDEO_COMPACT,      2595  }, // "compact"
 106     { MODE_VIDEO_COLOR_ACCENT, 2591  }, // "color accent"
 107     { MODE_VIDEO_COLOR_SWAP,   2592  }, // "color swap"
 108 */
 109 };
 110 #include "../generic/shooting.c"
 111 
 112 long get_file_next_counter() { //looks like this hack is needed for old vxworks
 113     return ((get_file_counter()>>4)+1)<<4;
 114 }
 115 
 116 long get_target_file_num() {
 117     long n;
 118     
 119     n = get_file_next_counter();
 120     n = (n>>4)&0x3FFF;
 121     return n;
 122 }
 123 
 124 long get_target_dir_num() {
 125     long n;
 126     
 127     n = get_file_next_counter();
 128     n = (n>>18)&0x3FF;
 129     return n;
 130 }

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