root/platform/g15/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
  4. get_target_dir_num

   1 #define PARAM_FILE_COUNTER      0x3a
   2 #define PARAM_EXPOSURE_COUNTER  0x02
   3 
   4 #include "platform.h"
   5 
   6 const ApertureSize aperture_sizes_table[] = {
   7         {  5, 171,  "1.8" },
   8         {  6, 192,  "2.0" },
   9         {  7, 224,  "2.2" },
  10         {  8, 256,  "2.5" },
  11         {  9, 288,  "2.8" },
  12         { 10, 320,  "3.2" },
  13         { 11, 352,  "3.5" },
  14         { 12, 384,  "4.0" },
  15         { 13, 416,  "4.5" },
  16         { 14, 448,  "5.0" },
  17         { 15, 480,  "5.6" },
  18         { 16, 512,  "6.3" },
  19         { 17, 544,  "7.1" },
  20         { 18, 576,  "8.0" },
  21 };
  22 
  23 const ShutterSpeed shutter_speeds_table[] = {
  24         {  -7, -224, "5",   5000000 },
  25         {  -6, -192, "4",   4000000 },
  26         {  -5, -160, "3.2", 3200000 },
  27         {  -4, -128, "2.5", 2500000 },
  28         {  -3,  -96, "2",   2000000 },
  29         {  -2,  -64, "1.6", 1600000 },
  30         {  -1,  -32, "1.3", 1300000 },
  31         {   0,    0, "1",   1000000 },
  32         {   1,   32, "0.8",  800000 },
  33         {   2,   64, "0.6",  600000 },
  34         {   3,   96, "0.5",  500000 },
  35         {   4,  128, "0.4",  400000 },
  36         {   5,  160, "0.3",  300000 },
  37         {   6,  192, "1/4",  250000 },
  38 };
  39 
  40 const ISOTable iso_table[] = {
  41         {  0,    0,  "Auto", -1},
  42         {  1,   80,    "80", -1},
  43         {  2,  100,   "100", -1},
  44         {  3,  125,   "125", -1},
  45         {  4,  160,   "160", -1},
  46         {  5,  200,   "200", -1},
  47         {  6,  250,   "250", -1},
  48         {  7,  320,   "320", -1},
  49         {  8,  400,   "400", -1},
  50         {  9,  500,   "500", -1},
  51         { 10,  640,   "640", -1},
  52         { 11,  800,   "800", -1},
  53         { 12, 1000,  "1000", -1},
  54         { 13, 1250,  "1250", -1},
  55         { 14, 1600,  "1600", -1},
  56         { 15, 2000,  "2000", -1},
  57         { 16, 2500,  "2500", -1},
  58         { 17, 3200,  "3200", -1},
  59         { 18, 4000,  "4000", -1},
  60         { 19, 5000,  "5000", -1},
  61         { 20, 6400,  "6400", -1},
  62         { 21, 8000,  "8000", -1},
  63         { 22,10000, "10000", -1},
  64         { 23,12800, "12800", -1},
  65 };          
  66 
  67 /*
  68 http://www.usa.canon.com/cusa/consumer/products/cameras/digital_cameras/powershot_g15#Specifications
  69 
  70 Shooting Modes:
  71     C1, C2, M, Av, Tv, P, Auto, Movie Digest, SCN, Creative Filters, Movie
  72 
  73 SCN Scene Modes:
  74     Portrait, Smooth Skin, Smart Shutter, High-Speed Burst HQ, Handheld NightScene, Underwater, Snow, Fireworks, Stitch Assist
  75 
  76 Creative Filters:
  77     High Dynamic Range, Nostalgic, Fish-eye Effect, Miniature Effect, Toy Camera Effect, Soft Focus, Monochrome, Super Vivid, Poster Effect, Color Accent, Color Swap
  78 
  79 Movie Modes:
  80     Standard, iFrame Movie, Super Slow Motion Movie
  81 
  82 Smart Shutter Modes:
  83     Smile, Wink Self-timer, Face Self-timer
  84 
  85 */
  86 
  87 const CapturemodeMap modemap[] = {
  88         { MODE_VIDEO_STD,           2626  },
  89     { MODE_VIDEO_SUPER_SLOW,    2631  },
  90     { MODE_VIDEO_IFRAME_MOVIE,  2633  },
  91         { MODE_COLOR_ACCENT,        8737  },
  92         { MODE_COLOR_SWAP,          8738  },
  93     //{ MODE_???,                 8745  },
  94         { MODE_SUPER_VIVID,         8746  },
  95         { MODE_POSTER_EFFECT,       8747  },
  96         { MODE_FISHEYE,             8751  },
  97         { MODE_MINIATURE,           8752  },
  98         { MODE_HDR,                 8754  },
  99     { MODE_TOY_CAMERA,          8755  },
 100     { MODE_SOFTFOCUS,           8756  },
 101         { MODE_MONOCHROME,          8758  },
 102         { MODE_HIGHSPEED_BURST,    16393  },
 103     { MODE_PORTRAIT,           16401  },
 104         { MODE_SNOW,               16409  },
 105         { MODE_FIREWORK,           16411  },
 106         { MODE_STITCH,             16909  },
 107         { MODE_SMOOTH_SKIN,        16914  },
 108     //{ MODE_COLOR_SWAP,         16924  },
 109     { MODE_FACE_SELF_TIMER,    16940  },
 110         { MODE_SMART_SHUTTER,      16941  },
 111     { MODE_WINK_SELF_TIMER,    16942  },
 112         { MODE_NIGHT_SCENE,        16945  },
 113         { MODE_AUTO,               32768  },
 114         { MODE_M,                  32769  },
 115         { MODE_AV,                 32770  },
 116         { MODE_TV,                 32771  },
 117         { MODE_P,                  32772  },
 118     { MODE_LOWLIGHT,            32805 },
 119     //{ MODE_FACE_SELF_TIMER,    33295  },
 120     { MODE_VIDEO_MOVIE_DIGEST, 33337  },
 121 };
 122 
 123 #include "../generic/shooting.c"
 124 
 125 long get_file_next_counter() {
 126         return get_file_counter();
 127 }
 128 
 129 long get_target_file_num() {
 130         long n;
 131         
 132         n = get_file_next_counter();
 133         n = (n>>4)&0x3FFF;
 134         return n;
 135 }
 136 
 137 #if defined(CAM_DATE_FOLDER_NAMING)
 138 void get_target_dir_name(char *out)
 139 {
 140         extern void _GetImageFolder(char*,int,int,int);
 141         _GetImageFolder(out,get_file_next_counter(),CAM_DATE_FOLDER_NAMING,time(NULL));
 142 }
 143 #else
 144 long get_target_dir_num() {
 145         long n;
 146         
 147         n = get_file_next_counter();
 148         n = (n>>18)&0x3FF;
 149         return n;
 150 }
 151 #endif

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