root/platform/ixus200_sd980/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
  4. sub_FF94A89C_my

   1 #include "conf.h"
   2 
   3 void change_video_tables(int a, int b){
   4 }
   5 
   6 
   7 void  set_quality(int *x){ // -17 highest; +12 lowest
   8  if (conf.video_mode) *x=12-((conf.video_quality-1)*(12+17)/(99-1));
   9 }
  10 
  11 
  12 void __attribute__((naked,noinline)) movie_record_task(){
  13  asm volatile(
  14 "    STMFD   SP!, {R2-R8,LR} \n" 
  15 "    LDR     R7, =0x2710 \n" 
  16 "    LDR     R4, =0x67A8 \n" 
  17 "    MOV     R6, #0 \n" 
  18 "    MOV     R5, #1 \n" 
  19 "loc_FF94AF1C:\n"
  20 "    LDR     R0, [R4, #0x18] \n" 
  21 "    MOV     R2, #0 \n" 
  22 "    ADD     R1, SP, #4 \n" 
  23 "    BL      sub_FF837F08 \n" 
  24 "    LDR     R0, [R4, #0x20] \n" 
  25 "    CMP     R0, #0 \n" 
  26 "    BNE     loc_FF94AFEC \n" 
  27 "    LDR     R0, [SP, #4] \n" 
  28 "    LDR     R1, [R0] \n" 
  29 "    SUB     R1, R1, #2 \n" 
  30 "    CMP     R1, #9 \n" 
  31 "    ADDLS   PC, PC, R1, LSL #2 \n" 
  32 "    B       loc_FF94AFEC \n" 
  33 "    B       loc_FF94AFA0 \n" 
  34 "    B       loc_FF94AFC0 \n" 
  35 "    B       loc_FF94AFD0 \n" 
  36 "    B       loc_FF94AFD8 \n" 
  37 "    B       loc_FF94AFA8 \n" 
  38 "    B       loc_FF94AFE0 \n" 
  39 "    B       loc_FF94AFB0 \n" 
  40 "    B       loc_FF94AFEC \n" 
  41 "    B       loc_FF94AFE8 \n" 
  42 "    B       loc_FF94AF78 \n" 
  43 "loc_FF94AF78:\n"
  44 "    LDR     R0, =0xFF94AC1C \n" 
  45 "    STR     R6, [R4, #0x34] \n" 
  46 "    STR     R0, [R4, #0x9C] \n" 
  47 "    LDR     R2, =0xFF94A150 \n" 
  48 "    LDR     R1, =0x7B1D0 \n" 
  49 "    LDR     R0, =0xFF94A234 \n" 
  50 "    STR     R6, [R4, #0x24] \n" 
  51 "    BL      sub_FF8E1A58 \n" 
  52 "    STR     R5, [R4, #0x38] \n" 
  53 "    B       loc_FF94AFEC \n" 
  54 "loc_FF94AFA0:\n"
  55 "       BL      unlock_optical_zoom\n" //  +
  56 "    BL      sub_FF94AD24 \n" 
  57 "    B       loc_FF94AFEC \n" 
  58 "loc_FF94AFA8:\n"
  59 "       BL      sub_FF94A89C_my \n"   //--------->   
  60 "    B       loc_FF94AFEC \n" 
  61 "loc_FF94AFB0:\n"
  62 "    LDR     R1, [R0, #0x18] \n" 
  63 "    LDR     R0, [R0, #4] \n" 
  64 "    BL      sub_FFA967A4 \n" 
  65 "    B       loc_FF94AFEC \n" 
  66 "loc_FF94AFC0:\n"
  67 "    LDR     R0, [R4, #0x38] \n" 
  68 "    CMP     R0, #5 \n" 
  69 "    STRNE   R5, [R4, #0x28] \n" 
  70 "    B       loc_FF94AFEC \n" 
  71 "loc_FF94AFD0:\n"
  72 "    BL      sub_FF94A59C \n" 
  73 "    B       loc_FF94AFEC \n" 
  74 "loc_FF94AFD8:\n"
  75 "    BL      sub_FF94A280 \n" 
  76 "    B       loc_FF94AFEC \n" 
  77 "loc_FF94AFE0:\n"
  78 "    BL      sub_FF94A0DC \n" 
  79 "    B       loc_FF94AFEC \n" 
  80 "loc_FF94AFE8:\n"
  81 "    BL      sub_FF94B158 \n" 
  82 "loc_FF94AFEC:\n"
  83 "    LDR     R1, [SP, #4] \n" 
  84 "    MOV     R3, #0x460 \n" 
  85 "    STR     R6, [R1] \n" 
  86 "    STR     R3, [SP] \n" 
  87 "    LDR     R0, [R4, #0x1C] \n" 
  88 "    LDR     R3, =0xFF949F3C \n" 
  89 "    MOV     R2, R7 \n" 
  90 "    BL      sub_FF83885C \n" 
  91 "    B       loc_FF94AF1C \n"     
  92  );
  93 }
  94 
  95 
  96 void __attribute__((naked,noinline)) sub_FF94A89C_my(){
  97  asm volatile(
  98 "    STMFD   SP!, {R4-R8,LR} \n" 
  99 "    SUB     SP, SP, #0x40 \n" 
 100 "    MOV     R7, #0 \n" 
 101 "    LDR     R6, =0x67A8 \n" 
 102 "    MOV     R4, R0 \n" 
 103 "    STR     R7, [SP, #0x30] \n" 
 104 "    STR     R7, [SP, #0x28] \n" 
 105 "    LDR     R0, [R6, #0x38] \n" 
 106 "    MOV     R8, #4 \n" 
 107 "    CMP     R0, #3 \n" 
 108 "    STREQ   R8, [R6, #0x38] \n" 
 109 "    LDR     R0, [R6, #0x9C] \n" 
 110 "    BLX     R0 \n" 
 111 "    LDR     R0, [R6, #0x38] \n" 
 112 "    CMP     R0, #4 \n" 
 113 "    BNE     loc_FF94AA0C \n" 
 114 "    ADD     R3, SP, #0x28 \n" 
 115 "    ADD     R2, SP, #0x2C \n" 
 116 "    ADD     R1, SP, #0x30 \n" 
 117 "    ADD     R0, SP, #0x34 \n" 
 118 "    BL      sub_FFA96840 \n" 
 119 "    CMP     R0, #0 \n" 
 120 "    MOV     R5, #1 \n" 
 121 "    BNE     loc_FF94A918 \n" 
 122 "    LDR     R1, [R6, #0x28] \n" 
 123 "    CMP     R1, #1 \n" 
 124 "    BNE     loc_FF94AA14 \n" 
 125 "    LDR     R1, [R6, #0x4C] \n" 
 126 "    LDR     R2, [R6, #0x3C] \n" 
 127 "    CMP     R1, R2 \n" 
 128 "    BCC     loc_FF94AA14 \n" 
 129 "loc_FF94A918:\n"
 130 "    CMP     R0, #0x80000001 \n" 
 131 "    STREQ   R8, [R6, #0x50] \n" 
 132 "    BEQ     loc_FF94A950 \n" 
 133 "    CMP     R0, #0x80000003 \n" 
 134 "    STREQ   R5, [R6, #0x50] \n" 
 135 "    BEQ     loc_FF94A950 \n" 
 136 "    CMP     R0, #0x80000005 \n" 
 137 "    MOVEQ   R0, #2 \n" 
 138 "    BEQ     loc_FF94A94C \n" 
 139 "    CMP     R0, #0x80000007 \n" 
 140 "    STRNE   R7, [R6, #0x50] \n" 
 141 "    BNE     loc_FF94A950 \n" 
 142 "    MOV     R0, #3 \n" 
 143 "loc_FF94A94C:\n"
 144 "    STR     R0, [R6, #0x50] \n" 
 145 "loc_FF94A950:\n"
 146 "    LDR     R0, =0x7B204 \n" 
 147 "    LDR     R0, [R0, #8] \n" 
 148 "    CMP     R0, #0 \n" 
 149 "    BEQ     loc_FF94A968 \n" 
 150 "    BL      sub_FF85CDE0 \n" 
 151 "    B       loc_FF94A96C \n" 
 152 "loc_FF94A968:\n"
 153 "    BL      sub_FF94A0DC \n" 
 154 "loc_FF94A96C:\n"
 155 "    LDR     R0, [R4, #0x1C] \n" 
 156 "    ADD     R4, SP, #0x18 \n" 
 157 "    ADD     R3, SP, #0x38 \n" 
 158 "    MVN     R2, #1 \n" 
 159 "    MOV     R1, #0 \n" 
 160 "    STMIA   R4, {R0-R3} \n" 
 161 "    LDR     R2, [R6, #0x64] \n" 
 162 "    LDR     R3, [R6, #0x68] \n" 
 163 "    ADD     R1, SP, #0x3C \n" 
 164 "    ADD     R4, SP, #8 \n" 
 165 "    MOV     R0, #0 \n" 
 166 "    STMIA   R4, {R0-R3} \n" 
 167 "    MOV     R3, #0 \n" 
 168 "    MOV     R2, #0x40 \n" 
 169 "    STRD    R2, [SP] \n" 
 170 "    LDR     R3, =0x7B21C \n" 
 171 "    MOV     R2, #0 \n" 
 172 "    MOV     R1, #0 \n" 
 173 "    BL      sub_FFA53528 \n" 
 174 "    LDR     R0, [R6, #0x10] \n" 
 175 "    MOV     R1, #0x3E8 \n" 
 176 "    BL      sub_FF838324 \n" 
 177 "    CMP     R0, #9 \n" 
 178 "    BNE     loc_FF94A9DC \n" 
 179 "loc_FF94A9CC:\n"
 180 "    BL      sub_FFA96D14 \n" 
 181 "    MOV     R0, #1 \n" 
 182 "    STR     R5, [R6, #0x38] \n" 
 183 "    B       loc_FF94AB3C \n" 
 184 "loc_FF94A9DC:\n"
 185 "    LDR     R0, [SP, #0x38] \n" 
 186 "    CMP     R0, #0 \n" 
 187 "    BEQ     loc_FF94A9F8 \n" 
 188 "loc_FF94A9E8:\n"
 189 "    BL      sub_FFA96D14 \n" 
 190 "    MOV     R0, #1 \n" 
 191 "    STR     R5, [R6, #0x38] \n" 
 192 "    B       loc_FF94AB68 \n" 
 193 "loc_FF94A9F8:\n"
 194 "    MOV     R0, #1 \n" 
 195 "    BL      sub_FFA535D0 \n" 
 196 "    BL      sub_FFA5360C \n" 
 197 "    MOV     R0, #5 \n" 
 198 "    STR     R0, [R6, #0x38] \n" 
 199 "loc_FF94AA0C:\n"
 200 "    ADD     SP, SP, #0x40 \n" 
 201 "    LDMFD   SP!, {R4-R8,PC} \n" 
 202 "loc_FF94AA14:\n"
 203 "    LDR     R12, [SP, #0x30] \n" 
 204 "    CMP     R12, #0 \n" 
 205 "    BEQ     loc_FF94ABC4 \n" 
 206 "    STR     R5, [R6, #0x2C] \n" 
 207 "    LDR     R0, [R6, #0x4C] \n" 
 208 "    LDR     R8, [R4, #0xC] \n" 
 209 "    CMP     R0, #0 \n" 
 210 "    LDRNE   LR, [SP, #0x34] \n" 
 211 "    BNE     loc_FF94AAC0 \n" 
 212 "    LDR     R0, [R4, #0x1C] \n" 
 213 "    LDR     R1, [R4, #0x20] \n" 
 214 "    ADD     R3, SP, #0x38 \n" 
 215 "    MVN     R2, #0 \n" 
 216 "    ADD     LR, SP, #0x18 \n" 
 217 "    STMIA   LR, {R0-R3} \n" 
 218 "    LDR     R0, [SP, #0x28] \n" 
 219 "    LDR     R2, [R6, #0x64] \n" 
 220 "    LDR     R3, [R6, #0x68] \n" 
 221 "    ADD     R1, SP, #0x3C \n" 
 222 "    ADD     LR, SP, #8 \n" 
 223 "    STMIA   LR, {R0-R3} \n" 
 224 "    LDR     R3, [SP, #0x2C] \n" 
 225 "    STR     R12, [SP] \n" 
 226 "    STR     R3, [SP, #4] \n" 
 227 "    LDMIB   R4, {R0,R1} \n" 
 228 "    LDR     R3, [SP, #0x34] \n" 
 229 "    MOV     R2, R8 \n" 
 230 "    BL      sub_FFA53528 \n" 
 231 "    LDR     R0, [R6, #0x10] \n" 
 232 "    MOV     R1, #0x3E8 \n" 
 233 "    BL      sub_FF838324 \n" 
 234 "    CMP     R0, #9 \n" 
 235 "    BEQ     loc_FF94A9CC \n" 
 236 "    LDR     R0, [SP, #0x38] \n" 
 237 "    CMP     R0, #0 \n" 
 238 "    BNE     loc_FF94A9E8 \n" 
 239 "    MOV     R0, #1 \n" 
 240 "    BL      sub_FFA535D0 \n" 
 241 "    LDR     R0, [SP, #0x3C] \n" 
 242 "    LDR     R1, [SP, #0x34] \n" 
 243 "    ADD     LR, R1, R0 \n" 
 244 "    LDR     R1, [SP, #0x30] \n" 
 245 "    SUB     R12, R1, R0 \n" 
 246 "loc_FF94AAC0:\n"
 247 "    LDR     R2, [R6, #0x48] \n" 
 248 "    LDR     R0, [R4, #0x1C] \n" 
 249 "    LDR     R1, [R4, #0x20] \n" 
 250 "    ADD     R3, SP, #0x38 \n" 
 251 "    STR     R0, [SP, #0x18] \n" 
 252 "    STR     R1, [SP, #0x1C] \n" 
 253 "    STR     R3, [SP, #0x24] \n" 
 254 "    STR     R2, [SP, #0x20] \n" 
 255 "    LDR     R2, [R6, #0x64] \n" 
 256 "    LDR     R3, [R6, #0x68] \n" 
 257 "    LDR     R0, [SP, #0x28] \n" 
 258 "    STR     R3, [SP, #0x14] \n" 
 259 "    LDR     R3, [SP, #0x2C] \n" 
 260 "    ADD     R1, SP, #0x3C \n" 
 261 "    STR     R2, [SP, #0x10] \n" 
 262 "    STR     R3, [SP, #4] \n" 
 263 "    STR     R1, [SP, #0xC] \n" 
 264 "    STR     R12, [SP] \n" 
 265 "    STR     R0, [SP, #8] \n" 
 266 "    LDMIB   R4, {R0,R1} \n" 
 267 "    MOV     R3, LR \n" 
 268 "    MOV     R2, R8 \n" 
 269 "    BL      sub_FFA53528 \n" 
 270 "    LDR     R0, [R6, #0x10] \n" 
 271 "    MOV     R1, #0x3E8 \n" 
 272 "    BL      sub_FF838324 \n" 
 273 "    CMP     R0, #9 \n" 
 274 "    BNE     loc_FF94AB50 \n" 
 275 "    BL      sub_FFA96D14 \n" 
 276 "    MOV     R0, #0 \n" 
 277 "    STR     R5, [R6, #0x38] \n" 
 278 "loc_FF94AB3C:\n"
 279 "    BL      sub_FFA535D0 \n" 
 280 "    MOV     R0, #0xC \n" 
 281 "    BL      sub_FF8835B4 \n" 
 282 "    MOV     R0, #0x90000 \n" 
 283 "    B       loc_FF94AB78 \n" 
 284 "loc_FF94AB50:\n"
 285 "    LDR     R0, [SP, #0x38] \n" 
 286 "    CMP     R0, #0 \n" 
 287 "    BEQ     loc_FF94AB8C \n" 
 288 "    BL      sub_FFA96D14 \n" 
 289 "    MOV     R0, #0 \n" 
 290 "    STR     R5, [R6, #0x38] \n" 
 291 "loc_FF94AB68:\n"
 292 "    BL      sub_FFA535D0 \n" 
 293 "    MOV     R0, #0xC \n" 
 294 "    BL      sub_FF8835B4 \n" 
 295 "    MOV     R0, #0xA0000 \n" 
 296 "loc_FF94AB78:\n"
 297 "    BL      sub_FF890C4C \n" 
 298 "    LDR     R1, [R6, #0x8C]! \n" 
 299 "    LDR     R0, [R6, #0xC] \n" 
 300 "    BLX     R1 \n" 
 301 "    B       loc_FF94AA0C \n" 
 302 "loc_FF94AB8C:\n"
 303 "    MOV     R0, #0 \n" 
 304 "    BL      sub_FFA535D0 \n" 
 305 "    LDR     R0, [SP, #0x34] \n" 
 306 "    LDR     R1, [SP, #0x3C] \n" 
 307 "    BL      sub_FFA96A6C \n" 
 308 "    LDR     R0, [R6, #0x48] \n" 
 309 "    LDR     R3, =0x6810 \n" 
 310 "    ADD     R1, R0, #1 \n" 
 311 "    STR     R1, [R6, #0x48] \n" 
 312 "    STR     R3, [SP] \n" 
 313 "    LDR     R0, [SP, #0x3C] \n" 
 314 "    SUB     R3, R3, #4 \n" 
 315 "    MOV     R2, #0xF \n" 
 316 "    BL      sub_FFA94BF0 \n" 
 317               
 318 "       LDR     R0, =0x6810-4\n"  // -<----   -4 //+
 319 "       BL      set_quality\n"                  // +
 320 "loc_FF94ABC4:\n"
 321 "    LDR     R0, [R6, #0x4C] \n" 
 322 "    ADD     R0, R0, #1 \n" 
 323 "    STR     R0, [R6, #0x4C] \n" 
 324 "    LDR     R1, [R6, #0x74] \n" 
 325 "    MUL     R0, R1, R0 \n" 
 326 "    LDR     R1, [R6, #0x70] \n" 
 327 "    BL      sub_FFB3C89C \n" 
 328 "    MOV     R4, R0 \n" 
 329 "    BL      sub_FFA96D4C \n" 
 330 "    LDR     R1, [R6, #0x6C] \n" 
 331 "    CMP     R1, R4 \n" 
 332 "    BNE     loc_FF94AC00 \n" 
 333 "    LDR     R0, [R6, #0x30] \n" 
 334 "    CMP     R0, #1 \n" 
 335 "    BNE     loc_FF94AC14 \n" 
 336 "loc_FF94AC00:\n"
 337 "    LDR     R1, [R6, #0x80] \n" 
 338 "    MOV     R0, R4 \n" 
 339 "    BLX     R1 \n" 
 340 "    STR     R4, [R6, #0x6C] \n" 
 341 "    STR     R7, [R6, #0x30] \n" 
 342 "loc_FF94AC14:\n"
 343 "    STR     R7, [R6, #0x2C] \n" 
 344 "    B       loc_FF94AA0C \n" 
 345 "    BX      LR \n"     
 346  );
 347 }
 348 
 349 

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