root/platform/sx150is/sub/capt_seq_hdr.c

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

DEFINITIONS

This source file includes following definitions.
  1. capt_seq_hook_set_nr_my

   1 #include "lolevel.h"
   2 #include "platform.h"
   3 #include "core.h"
   4 #include "conf.h"
   5 
   6 //static long *nrflag = (long*)0xC910; // FFAB026C
   7 
   8 static long *nrflag = (long*)0x5CB4;
   9 
  10 #define PAUSE_FOR_FILE_COUNTER 150
  11 
  12 #include "../../../generic/capt_seq.c"
  13 
  14 
  15 int capt_seq_hook_set_nr_my(int orig)
  16 {
  17  
  18         camera_info.state.shutter_open_time = _time((void*)0); 
  19     camera_info.state.shutter_open_tick_count = get_tick_count();
  20 
  21         // Firmware also tests for 3 and 7, meaning unknown, so we don't touch them
  22         if (orig!=NR_ON && orig!=NR_OFF)
  23                 return orig;
  24 
  25         switch (conf.raw_nr){
  26         case NOISE_REDUCTION_OFF:
  27                 return NR_OFF;
  28         case NOISE_REDUCTION_ON:
  29                 return NR_ON;
  30         case NOISE_REDUCTION_AUTO_CANON: // leave it alone
  31         default: // shut up compiler 
  32                 return orig;
  33         };
  34 }
  35 

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