CHDK_DE Vorschauversion  Trunk Rev. 6014
 Alle Datenstrukturen Dateien Funktionen Variablen Typdefinitionen Aufzählungen Aufzählungswerte Makrodefinitionen
shooting.c-Dateireferenz
#include "lolevel.h"
#include "platform.h"
#include "core.h"
#include "conf.h"
#include "keyboard.h"
#include "../generic/shooting.c"
+ Include-Abhängigkeitsdiagramm für shooting.c:

gehe zum Quellcode dieser Datei

Makrodefinitionen

#define PARAM_FILE_COUNTER   0x3A
 
#define PARAM_EXPOSURE_COUNTER   0x02
 

Funktionen

long get_file_next_counter ()
 
long get_target_file_num ()
 
long get_target_dir_num ()
 
void get_target_dir_name (char *out)
 

Variablen

const ApertureSize aperture_sizes_table []
 
const ShutterSpeed shutter_speeds_table []
 
const ISOTable iso_table []
 
const CapturemodeMap modemap []
 

Makro-Dokumentation

#define PARAM_EXPOSURE_COUNTER   0x02

Definiert in Zeile 10 der Datei shooting.c.

#define PARAM_FILE_COUNTER   0x3A

Definiert in Zeile 8 der Datei shooting.c.

Dokumentation der Funktionen

long get_file_next_counter ( )

Definiert in Zeile 134 der Datei shooting.c.

134  {
135  return get_file_counter();
136 }
void get_target_dir_name ( char *  out)

Definiert in Zeile 174 der Datei shooting.c.

175 {
176  //Dosnt seem to work in SX210 Dont know why?
177 /* extern void _GetImageFolder(char*,int,int,int);
178  out[0] = 'A';
179  _GetImageFolder(out+1,get_file_next_counter(),CAM_DATE_FOLDER_NAMING,time(NULL));*/
180  int month;
181  struct tm *ttm;
182  unsigned long t;
183  t = time(NULL);
184  ttm = localtime(&t);
185  month = ttm->tm_mon + 1;
186  sprintf(out, "A/DCIM/%03d___%02d", get_target_dir_num(), month);
187 
188 
189 }
long get_target_dir_num ( )

Definiert in Zeile 165 der Datei shooting.c.

165  {
166  long n;
167 
168  n = get_file_next_counter();
169  n = (n>>18)&0x3FF;
170  return n;
171 }
long get_target_file_num ( )

Definiert in Zeile 138 der Datei shooting.c.

138  {
139  long n;
140 
141 
142  n = get_file_next_counter();
143 
144  n = (n>>4)&0x3FFF;
145 
146  //n+=22;
147  return n;
148 }

Variablen-Dokumentation

const ApertureSize aperture_sizes_table[]
Initialisierung:
= {
{ 9, 322, "3.1" },
{ 10, 352, "3.5" },
{ 11, 384, "4.0" },
{ 12, 416, "4.5" },
{ 13, 448, "5.0" },
{ 14, 480, "5.6" },
{ 15, 512, "6.3" },
{ 16, 544, "7.1" },
{ 17, 576, "8.0" }
}

Definiert in Zeile 15 der Datei shooting.c.

const ISOTable iso_table[]
Initialisierung:
= {
{ -1, 1, "HI", -1},
{ 0, 0, "Auto", -1},
{ 1, 80, "80", -1},
{ 2, 100, "100", -1},
{ 3, 200, "200", -1},
{ 4, 400, "400", -1},
{ 5, 800, "800", -1},
{ 6, 1600, "1600", -1},
{ 7, 3200, "3200", -1},
}

Definiert in Zeile 78 der Datei shooting.c.

const CapturemodeMap modemap[]
Initialisierung:
= {
{ MODE_AUTO, 32768 },
{ MODE_P, 32772 },
{ MODE_TV, 32771 },
{ MODE_AV, 32770 },
{ MODE_M, 32769 },
{ MODE_EASY, 33314 },
{ MODE_PORTRAIT, 32783 },
{ MODE_NIGHT_SNAPSHOT, 32781 },
{ MODE_LANDSCAPE, 32782 },
{ MODE_VIDEO_STD, 2612 },
{ MODE_KIDS_PETS, 32786 },
{ MODE_INDOOR, 32787 },
{ MODE_MINIATURE, 16940 },
{ MODE_FISHEYE, 16939 },
{ MODE_LOWLIGHT, 16417 },
{ MODE_SMART_SHUTTER, 33320 },
{ MODE_FIREWORK, 16408 },
{ MODE_BEACH, 16407 },
{ MODE_FOLIAGE, 16405 },
{ MODE_SNOW, 16406 },
{ MODE_COLOR_ACCENT, 16925 },
{ MODE_COLOR_SWAP, 16926 },
{ MODE_STITCH, 16908 }
}

Definiert in Zeile 102 der Datei shooting.c.

const ShutterSpeed shutter_speeds_table[]

Definiert in Zeile 27 der Datei shooting.c.