root/platform/ixus100_sd780/sub/100c/movie_rec.c

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

DEFINITIONS

This source file includes following definitions.
  1. change_video_tables
  2. set_quality
  3. movie_record_task

   1 /*
   2  * movie_rec.c - auto-generated by CHDK code_gen.
   3  */
   4 #include "conf.h"
   5 
   6 void change_video_tables(int a, int b){
   7 }
   8 
   9 void  set_quality(int *x){ // -17 highest; +12 lowest
  10  if (conf.video_mode) *x=12-((conf.video_quality-1)*(12+17)/(99-1));
  11 }
  12 
  13 /*************************************************************/
  14 //** movie_record_task @ 0xFF91A6AC - 0xFF91A7B0, length=66
  15 void __attribute__((naked,noinline)) movie_record_task() {
  16 asm volatile (
  17 "    STMFD   SP!, {R2-R8,LR} \n"
  18 "    LDR     R8, =0x442 \n"
  19 "    LDR     R7, =0x2710 \n"
  20 "    LDR     R4, =0x5AD8 \n"
  21 "    MOV     R6, #0 \n"
  22 "    MOV     R5, #1 \n"
  23 
  24 "loc_FF91A6C4:\n"
  25 "    LDR     R0, [R4, #0x18] \n"
  26 "    MOV     R2, #0 \n"
  27 "    ADD     R1, SP, #4 \n"
  28 "    BL      sub_FF826978 /*_ReceiveMessageQueue*/ \n"
  29 "    LDR     R0, [R4, #0x20] \n"
  30 "    CMP     R0, #0 \n"
  31 "    BNE     loc_FF91A794 \n"
  32 "    LDR     R0, [SP, #4] \n"
  33 "    LDR     R1, [R0] \n"
  34 "    SUB     R1, R1, #2 \n"
  35 "    CMP     R1, #9 \n"
  36 "    ADDLS   PC, PC, R1, LSL#2 \n"
  37 "    B       loc_FF91A794 \n"
  38 "    B       loc_FF91A748 \n"
  39 "    B       loc_FF91A768 \n"
  40 "    B       loc_FF91A778 \n"
  41 "    B       loc_FF91A780 \n"
  42 "    B       loc_FF91A750 \n"
  43 "    B       loc_FF91A788 \n"
  44 "    B       loc_FF91A758 \n"
  45 "    B       loc_FF91A794 \n"
  46 "    B       loc_FF91A790 \n"
  47 "    B       loc_FF91A720 \n"
  48 
  49 "loc_FF91A720:\n"
  50 "    LDR     R0, =0xFF91A3C0 \n"
  51 "    STR     R6, [R4, #0x34] \n"
  52 "    STR     R0, [R4, #0x9C] \n"
  53 "    LDR     R0, =0xFF9199E0 \n"
  54 "    LDR     R2, =0xFF9198FC \n"
  55 "    LDR     R1, =0x2BDB0 \n"
  56 "    STR     R6, [R4, #0x24] \n"
  57 "    BL      sub_FF8B11AC \n"
  58 "    STR     R5, [R4, #0x38] \n"
  59 "    B       loc_FF91A794 \n"
  60 
  61 "loc_FF91A748:\n"
  62 "    BL      unlock_optical_zoom\n"          // added
  63 "    BL      sub_FF91A4C8 \n"
  64 "    B       loc_FF91A794 \n"
  65 
  66 "loc_FF91A750:\n"
  67 "    BL      sub_FF91A064 \n"
  68 "    LDR     R0, =video_compression_rate \n" // added
  69 "    BL      set_quality \n"                 // added
  70 "    B       loc_FF91A794 \n"
  71 
  72 "loc_FF91A758:\n"
  73 "    LDR     R1, [R0, #0x18] \n"
  74 "    LDR     R0, [R0, #4] \n"
  75 "    BL      sub_FFA37D6C \n"
  76 "    B       loc_FF91A794 \n"
  77 
  78 "loc_FF91A768:\n"
  79 "    LDR     R0, [R4, #0x38] \n"
  80 "    CMP     R0, #5 \n"
  81 "    STRNE   R5, [R4, #0x28] \n"
  82 "    B       loc_FF91A794 \n"
  83 
  84 "loc_FF91A778:\n"
  85 "    BL      sub_FF919D4C \n"
  86 "    B       loc_FF91A794 \n"
  87 
  88 "loc_FF91A780:\n"
  89 "    BL      sub_FF919A2C \n"
  90 "    B       loc_FF91A794 \n"
  91 
  92 "loc_FF91A788:\n"
  93 "    BL      sub_FF919888 \n"
  94 "    B       loc_FF91A794 \n"
  95 
  96 "loc_FF91A790:\n"
  97 "    BL      sub_FF91A8FC \n"
  98 
  99 "loc_FF91A794:\n"
 100 "    LDR     R1, [SP, #4] \n"
 101 "    LDR     R3, =0xFF9196EC /*'MovieRecorder.c'*/ \n"
 102 "    STR     R6, [R1] \n"
 103 "    STR     R8, [SP] \n"
 104 "    LDR     R0, [R4, #0x1C] \n"
 105 "    MOV     R2, R7 \n"
 106 "    BL      sub_FF8272CC /*_PostMessageQueueStrictly*/ \n"
 107 "    B       loc_FF91A6C4 \n"
 108 );
 109 }

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