root/platform/ixus1000_sd4500/sub/102c/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 @ 0xFF98672C - 0xFF98688C, length=89
  15 void __attribute__((naked,noinline)) movie_record_task() {
  16 asm volatile (
  17 "    STMFD   SP!, {R2-R10,LR} \n"
  18 "    LDR     R9, =0x2710 \n"
  19 "    LDR     R7, =0xFF9858C8 \n"
  20 "    LDR     R4, =0x7898 \n"
  21 "    MOV     R8, #1 \n"
  22 "    LDR     R6, =0xFF986118 \n"
  23 "    MOV     R5, #0 \n"
  24 
  25 "loc_FF986748:\n"
  26 "    LDR     R0, [R4, #0x24] \n"
  27 "    MOV     R2, #0 \n"
  28 "    ADD     R1, SP, #4 \n"
  29 "    BL      sub_FF83AE20 /*_ReceiveMessageQueue*/ \n"
  30 "    LDR     R0, [R4, #0x2C] \n"
  31 "    CMP     R0, #0 \n"
  32 "    LDRNE   R0, [R4, #0xC] \n"
  33 "    CMPNE   R0, #2 \n"
  34 "    LDRNE   R0, [R4, #0x44] \n"
  35 "    CMPNE   R0, #6 \n"
  36 "    BNE     loc_FF98686C \n"
  37 "    LDR     R0, [SP, #4] \n"
  38 "    LDR     R1, [R0] \n"
  39 "    SUB     R1, R1, #2 \n"
  40 "    CMP     R1, #0xA \n"
  41 "    ADDLS   PC, PC, R1, LSL#2 \n"
  42 "    B       loc_FF98686C \n"
  43 "    B       loc_FF98681C \n"
  44 "    B       loc_FF986840 \n"
  45 "    B       loc_FF986850 \n"
  46 "    B       loc_FF986858 \n"
  47 "    B       loc_FF986824 \n"
  48 "    B       loc_FF986860 \n"
  49 "    B       loc_FF986830 \n"
  50 "    B       loc_FF98686C \n"
  51 "    B       loc_FF986868 \n"
  52 "    B       loc_FF9867E8 \n"
  53 "    B       loc_FF9867B8 \n"
  54 
  55 "loc_FF9867B8:\n"
  56 "    STR     R5, [R4, #0x40] \n"
  57 "    STR     R5, [R4, #0x30] \n"
  58 "    STR     R5, [R4, #0x34] \n"
  59 "    STRH    R5, [R4, #6] \n"
  60 "    STR     R6, [R4, #0xCC] \n"
  61 "    STR     R7, [R4, #0xB4] \n"
  62 "    LDR     R0, [R4, #0xC] \n"
  63 "    ADD     R0, R0, #1 \n"
  64 "    STR     R0, [R4, #0xC] \n"
  65 "    MOV     R0, #6 \n"
  66 "    STR     R0, [R4, #0x44] \n"
  67 "    B       loc_FF986808 \n"
  68 
  69 "loc_FF9867E8:\n"
  70 "    STR     R5, [R4, #0x40] \n"
  71 "    STR     R5, [R4, #0x30] \n"
  72 "    STR     R6, [R4, #0xCC] \n"
  73 "    STR     R7, [R4, #0xB4] \n"
  74 "    LDR     R0, [R4, #0xC] \n"
  75 "    ADD     R0, R0, #1 \n"
  76 "    STR     R0, [R4, #0xC] \n"
  77 "    STR     R8, [R4, #0x44] \n"
  78 
  79 "loc_FF986808:\n"
  80 "    LDR     R2, =0xFF9850A4 \n"
  81 "    LDR     R1, =0xB0300 \n"
  82 "    LDR     R0, =0xFF9851B8 \n"
  83 "    BL      sub_FF8530AC \n"
  84 "    B       loc_FF98686C \n"
  85 
  86 "loc_FF98681C:\n"
  87 "    BL      sub_FF985DF4 \n"
  88 "    B       loc_FF98686C \n"
  89 
  90 "loc_FF986824:\n"
  91 "    LDR     R1, [R4, #0xCC] \n"
  92 "    BLX     R1 \n"
  93 
  94 "    LDR     R0, =video_compression_rate\n" //added
  95 "    BL      set_quality\n"                 //added
  96 
  97 "    B       loc_FF98686C \n"
  98 
  99 "loc_FF986830:\n"
 100 "    LDR     R1, [R0, #0x18] \n"
 101 "    LDR     R0, [R0, #4] \n"
 102 "    BL      sub_FFAD9C48 \n"
 103 "    B       loc_FF98686C \n"
 104 
 105 "loc_FF986840:\n"
 106 "    LDR     R0, [R4, #0x44] \n"
 107 "    CMP     R0, #5 \n"
 108 "    STRNE   R8, [R4, #0x34] \n"
 109 "    B       loc_FF98686C \n"
 110 
 111 "loc_FF986850:\n"
 112 "    BL      sub_FF985574 \n"
 113 "    B       loc_FF98686C \n"
 114 
 115 "loc_FF986858:\n"
 116 "    BL      sub_FF985204 \n"
 117 "    B       loc_FF98686C \n"
 118 
 119 "loc_FF986860:\n"
 120 "    BL      sub_FF985030 \n"
 121 "    B       loc_FF98686C \n"
 122 
 123 "loc_FF986868:\n"
 124 "    BL      sub_FF986C60 \n"
 125 
 126 "loc_FF98686C:\n"
 127 "    LDR     R1, [SP, #4] \n"
 128 "    MOV     R3, #0x5F0 \n"
 129 "    STR     R5, [R1] \n"
 130 "    STR     R3, [SP] \n"
 131 "    LDR     R0, [R4, #0x28] \n"
 132 "    LDR     R3, =0xFF984CFC /*'MovieRecorder.c'*/ \n"
 133 "    MOV     R2, R9 \n"
 134 "    BL      sub_FF83B774 /*_PostMessageQueueStrictly*/ \n"
 135 "    B       loc_FF986748 \n"
 136 );
 137 }

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