root/platform/sx50hs/sub/capt_seq_hdr.c

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

DEFINITIONS

This source file includes following definitions.
  1. block_sv_cooking

   1 #include "lolevel.h"
   2 #include "platform.h"
   3 #include "core.h"
   4 
   5 #define USE_STUBS_NRFLAG 1          // see stubs_entry.S
   6 #define NR_AUTO (0)                 // have to explictly reset value back to 0 to enable auto
   7 #define PAUSE_FOR_FILE_COUNTER 300  // Enable delay in capt_seq_hook_raw_here to ensure file counter is updated
   8 
   9 #include "../../../generic/capt_seq.c"
  10 
  11 void __attribute__((naked,noinline)) block_sv_cooking()
  12 {
  13     // On G1X (possibly others), when Tv >= 1s and ISO >= 400, then the camera shoots at 1/2 ISO and cooks the JPG/CR2 image data to compensate
  14     // Setting this property blocks the firmware from doing this.
  15 asm volatile (
  16 "    MOV     R2, #2 \n"
  17 "    ADD     R1, PC, #4 \n"
  18 "    MOV     R0, #77 \n"
  19 "    B       _SetPropertyCase \n"
  20 "    .word   1 \n"
  21 );
  22 }

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