root/platform/ixus60_sd600/main.c

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

DEFINITIONS

This source file includes following definitions.
  1. movie_record_task
  2. get_vbatt_min
  3. get_vbatt_max
  4. get_effective_focal_length
  5. get_focal_length
  6. get_zoom_x
  7. rec_switch_state

   1 
   2 #include "../generic/main.c"
   3 
   4 void movie_record_task()
   5 {
   6 }
   7 
   8 long get_vbatt_min()
   9 {
  10     return 3550;
  11 }
  12 
  13 long get_vbatt_max()
  14 {
  15     return 4110;
  16 }
  17 
  18 static const int fl_tbl[] = {5800, 7109, 8462, 10093, 12120, 14421, 17400};
  19 #define NUM_FL (int)(sizeof(fl_tbl)/sizeof(fl_tbl[0]))
  20 #define CF_EFL 60345
  21 
  22 const int zoom_points = NUM_FL;
  23 
  24 int get_effective_focal_length(int zp) {
  25     return (CF_EFL*get_focal_length(zp))/10000;
  26 }
  27 
  28 int get_focal_length(int zp) {
  29     if (zp<0) return fl_tbl[0];
  30     else if (zp>NUM_FL-1) return fl_tbl[NUM_FL-1];
  31     else return fl_tbl[zp];
  32 }
  33 
  34 int get_zoom_x(int zp) {
  35     if (zp<1) return 10;
  36     else if (zp>NUM_FL-1) return fl_tbl[NUM_FL-1]*10/fl_tbl[0];
  37     else return fl_tbl[zp]*10/fl_tbl[0];
  38 }
  39 
  40 #if 0
  41 int rec_switch_state(void) {
  42 //    mode  = (physw_status[2] & 0x00002000)?MODE_REC:MODE_PLAY;
  43         return (physw_status[2] & 0x00002000);
  44 }
  45 #endif

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