root/platform/ixus110_sd960/sub/101f/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_FF9211F8_my

   1 #include "conf.h"
   2 
   3 // from sx10
   4 void change_video_tables(int a, int b){
   5 }
   6 
   7 // from sx10, not sure if the values are right
   8 void  set_quality(int *x){ // -17 highest; +12 lowest
   9  if (conf.video_mode) *x=12-((conf.video_quality-1)*(12+17)/(99-1));
  10 }
  11 
  12 
  13 void __attribute__((naked,noinline)) movie_record_task() { //sub_FF921840
  14 asm volatile (
  15       "    STMFD   SP!, {R2-R8,LR} \n" 
  16       "    LDR     R8, =0x442 \n" 
  17       "    LDR     R7, =0x2710 \n" 
  18       "    LDR     R4, =0x5EC0 \n" 
  19       "    MOV     R6, #0 \n" 
  20       "    MOV     R5, #1 \n" 
  21 "loc_FF921858:\n"
  22       "    LDR     R0, [R4, #0x18] \n" 
  23       "    MOV     R2, #0 \n" 
  24       "    ADD     R1, SP, #4 \n" 
  25       "    BL      sub_FF826A0C \n" 
  26       "    LDR     R0, [R4, #0x20] \n" 
  27       "    CMP     R0, #0 \n" 
  28       "    BNE     loc_FF921928 \n" 
  29       "    LDR     R0, [SP, #4] \n" 
  30       "    LDR     R1, [R0] \n" 
  31       "    SUB     R1, R1, #2 \n" 
  32       "    CMP     R1, #9 \n" 
  33       "    ADDLS   PC, PC, R1, LSL #2 \n" 
  34       "    B       loc_FF921928 \n" 
  35       "    B       loc_FF9218DC \n" 
  36       "    B       loc_FF9218FC \n" 
  37       "    B       loc_FF92190C \n" 
  38       "    B       loc_FF921914 \n" 
  39       "    B       loc_FF9218E4 \n" 
  40       "    B       loc_FF92191C \n" 
  41       "    B       loc_FF9218EC \n" 
  42       "    B       loc_FF921928 \n" 
  43       "    B       loc_FF921924 \n" 
  44       "    B       loc_FF9218B4 \n" 
  45 "loc_FF9218B4:\n"
  46       "    LDR     R0, =0xFF921554 \n" 
  47       "    STR     R6, [R4, #0x34] \n" 
  48       "    STR     R0, [R4, #0x9C] \n" 
  49       "    LDR     R0, =0xFF920B74 \n" 
  50       "    LDR     R2, =0xFF920A90 \n" 
  51       "    LDR     R1, =0x2CAE0 \n" 
  52       "    STR     R6, [R4, #0x24] \n" 
  53       "    BL      sub_FF8B5610 \n" 
  54       "    STR     R5, [R4, #0x38] \n" 
  55       "    B       loc_FF921928 \n" 
  56 "loc_FF9218DC:\n"
  57       "    BL      unlock_optical_zoom\n" // +
  58       "    BL      sub_FF92165C \n" 
  59       "    B       loc_FF921928 \n" 
  60 "loc_FF9218E4:\n"
  61       "    BL      sub_FF9211F8_my \n" // ->
  62       "    B       loc_FF921928 \n" 
  63 "loc_FF9218EC:\n"
  64       "    LDR     R1, [R0, #0x18] \n" 
  65       "    LDR     R0, [R0, #4] \n" 
  66       "    BL      sub_FFA570C0 \n" 
  67       "    B       loc_FF921928 \n" 
  68 "loc_FF9218FC:\n"
  69       "    LDR     R0, [R4, #0x38] \n" 
  70       "    CMP     R0, #5 \n" 
  71       "    STRNE   R5, [R4, #0x28] \n" 
  72       "    B       loc_FF921928 \n" 
  73 "loc_FF92190C:\n"
  74       "    BL      sub_FF920EE0 \n" 
  75       "    B       loc_FF921928 \n" 
  76 "loc_FF921914:\n"
  77       "    BL      sub_FF920BC0 \n" 
  78       "    B       loc_FF921928 \n" 
  79 "loc_FF92191C:\n"
  80       "    BL      sub_FF920A1C \n" 
  81       "    B       loc_FF921928 \n" 
  82 "loc_FF921924:\n"
  83       "    BL      sub_FF921A90 \n" 
  84 "loc_FF921928:\n"
  85       "    LDR     R1, [SP, #4] \n" 
  86       "    LDR     R3, =0xFF920880 \n" 
  87       "    STR     R6, [R1] \n" 
  88       "    STR     R8, [SP] \n" 
  89       "    LDR     R0, [R4, #0x1C] \n" 
  90       "    MOV     R2, R7 \n" 
  91       "    BL      sub_FF827360 \n" 
  92       "    B       loc_FF921858 \n" 
  93     );
  94 }
  95 
  96 
  97 void __attribute__((naked,noinline)) sub_FF9211F8_my(  ) {
  98 asm volatile (
  99       "    STMFD   SP!, {R4-R9,LR} \n" 
 100       "    SUB     SP, SP, #0x44 \n" 
 101       "    MOV     R7, #0 \n" 
 102       "    LDR     R6, =0x5EC0 \n" 
 103       "    MOV     R4, R0 \n" 
 104       "    STR     R7, [SP, #0x34] \n" 
 105       "    STR     R7, [SP, #0x2C] \n" 
 106       "    LDR     R0, [R6, #0x38] \n" 
 107       "    MOV     R8, #4 \n" 
 108       "    CMP     R0, #3 \n" 
 109       "    STREQ   R8, [R6, #0x38] \n" 
 110       "    LDR     R0, [R6, #0x9C] \n" 
 111       "    BLX     R0 \n" 
 112       "    LDR     R0, [R6, #0x38] \n" 
 113       "    CMP     R0, #4 \n" 
 114       "    BNE     loc_FF921348 \n" 
 115       "    ADD     R3, SP, #0x2C \n" 
 116       "    ADD     R2, SP, #0x30 \n" 
 117       "    ADD     R1, SP, #0x34 \n" 
 118       "    ADD     R0, SP, #0x38 \n" 
 119       "    BL      sub_FFA5715C \n" 
 120       "    CMP     R0, #0 \n" 
 121       "    MOV     R5, #1 \n" 
 122       "    BNE     loc_FF921274 \n" 
 123       "    LDR     R1, [R6, #0x28] \n" 
 124       "    CMP     R1, #1 \n" 
 125       "    BNE     loc_FF92135C \n" 
 126       "    LDR     R1, [R6, #0x4C] \n" 
 127       "    LDR     R2, [R6, #0x3C] \n" 
 128       "    CMP     R1, R2 \n" 
 129       "    BCC     loc_FF92135C \n" 
 130 "loc_FF921274:\n"
 131       "    CMP     R0, #0x80000001 \n" 
 132       "    STREQ   R8, [R6, #0x50] \n" 
 133       "    BEQ     loc_FF9212AC \n" 
 134       "    CMP     R0, #0x80000003 \n" 
 135       "    STREQ   R5, [R6, #0x50] \n" 
 136       "    BEQ     loc_FF9212AC \n" 
 137       "    CMP     R0, #0x80000005 \n" 
 138       "    MOVEQ   R0, #2 \n" 
 139       "    BEQ     loc_FF9212A8 \n" 
 140       "    CMP     R0, #0x80000007 \n" 
 141       "    STRNE   R7, [R6, #0x50] \n" 
 142       "    BNE     loc_FF9212AC \n" 
 143       "    MOV     R0, #3 \n" 
 144 "loc_FF9212A8:\n"
 145       "    STR     R0, [R6, #0x50] \n" 
 146 "loc_FF9212AC:\n"
 147       "    LDR     R0, =0x2CB14 \n" 
 148       "    LDR     R0, [R0, #8] \n" 
 149       "    CMP     R0, #0 \n" 
 150       "    BEQ     loc_FF9212C4 \n" 
 151       "    BL      sub_FF845C94 \n" 
 152       "    B       loc_FF9212C8 \n" 
 153 "loc_FF9212C4:\n"
 154       "    BL      sub_FF920A1C \n" 
 155 "loc_FF9212C8:\n"
 156       "    LDR     R0, [R4, #0x1C] \n" 
 157       "    LDR     R1, [R4, #0x20] \n" 
 158       "    ADD     R3, SP, #0x3C \n" 
 159       "    MVN     R2, #1 \n" 
 160       "    ADD     R7, SP, #0x18 \n" 
 161       "    STMIA   R7, {R0-R3} \n" 
 162       "    LDR     R2, [R6, #0x64] \n" 
 163       "    LDR     R3, [R6, #0x68] \n" 
 164       "    MOV     R0, #0 \n" 
 165       "    ADD     R1, SP, #0x40 \n" 
 166       "    ADD     R7, SP, #8 \n" 
 167       "    STMIA   R7, {R0-R3} \n" 
 168       "    MOV     R3, #0 \n" 
 169       "    MOV     R2, #0x40 \n" 
 170       "    STRD    R2, [SP] \n" 
 171       "    LDMIB   R4, {R0,R1} \n" 
 172       "    LDR     R3, =0x2CB2C \n" 
 173       "    MOV     R2, R9 \n" 
 174       "    BL      sub_FFA16154 \n" 
 175       "    LDR     R0, [R6, #0x10] \n" 
 176       "    MOV     R1, #0x3E8 \n" 
 177       "    BL      sub_FF826E28 \n" 
 178       "    CMP     R0, #9 \n" 
 179       "    BEQ     loc_FF9213E0 \n" 
 180       "    LDR     R0, [SP, #0x3C] \n" 
 181       "    CMP     R0, #0 \n" 
 182       "    BNE     loc_FF9213FC \n" 
 183       "    MOV     R0, #1 \n" 
 184       "    BL      sub_FFA161FC \n" 
 185       "    BL      sub_FFA16238 \n" 
 186       "    MOV     R0, #5 \n" 
 187       "    STR     R0, [R6, #0x38] \n" 
 188 "loc_FF921348:\n"
 189       "    ADD     SP, SP, #0x44 \n" 
 190       "    LDMFD   SP!, {R4-R9,PC} \n" 
 191 "loc_FF921350:\n"
 192       "    BL      sub_FF87721C \n" 
 193       "    MOV     R0, #1 \n" 
 194       "    B       loc_FF92149C \n" 
 195 "loc_FF92135C:\n"
 196       "    LDR     R12, [SP, #0x34] \n" 
 197       "    CMP     R12, #0 \n" 
 198       "    BEQ     loc_FF9214FC \n" 
 199       "    STR     R5, [R6, #0x2C] \n" 
 200       "    LDR     R0, [R6, #0x4C] \n" 
 201       "    LDR     R8, [R4, #0xC] \n" 
 202       "    CMP     R0, #0 \n" 
 203       "    LDRNE   LR, [SP, #0x38] \n" 
 204       "    BNE     loc_FF921428 \n" 
 205       "    LDR     R0, [R4, #0x1C] \n" 
 206       "    LDR     R1, [R4, #0x20] \n" 
 207       "    ADD     R3, SP, #0x3C \n" 
 208       "    MVN     R2, #0 \n" 
 209       "    ADD     R9, SP, #0x18 \n" 
 210       "    STMIA   R9, {R0-R3} \n" 
 211       "    LDR     R0, [SP, #0x2C] \n" 
 212       "    LDR     R2, [R6, #0x64] \n" 
 213       "    LDR     R3, [R6, #0x68] \n" 
 214       "    ADD     R1, SP, #0x40 \n" 
 215       "    ADD     R9, SP, #8 \n" 
 216       "    STMIA   R9, {R0-R3} \n" 
 217       "    LDR     R3, [SP, #0x30] \n" 
 218       "    STR     R12, [SP] \n" 
 219       "    STR     R3, [SP, #4] \n" 
 220       "    LDMIB   R4, {R0,R1} \n" 
 221       "    LDR     R3, [SP, #0x38] \n" 
 222       "    MOV     R2, R8 \n" 
 223       "    BL      sub_FFA16154 \n" 
 224       "    LDR     R0, [R6, #0x10] \n" 
 225       "    MOV     R1, #0x3E8 \n" 
 226       "    BL      sub_FF826E28 \n" 
 227       "    CMP     R0, #9 \n" 
 228       "    BNE     loc_FF9213F0 \n" 
 229 "loc_FF9213E0:\n"
 230       "    BL      sub_FFA57628 \n" 
 231       "    MOV     R0, #0x90000 \n" 
 232       "    STR     R5, [R6, #0x38] \n" 
 233       "    B       loc_FF921350 \n" 
 234 "loc_FF9213F0:\n"
 235       "    LDR     R0, [SP, #0x3C] \n" 
 236       "    CMP     R0, #0 \n" 
 237       "    BEQ     loc_FF92140C \n" 
 238 "loc_FF9213FC:\n"
 239       "    BL      sub_FFA57628 \n" 
 240       "    MOV     R0, #0xA0000 \n" 
 241       "    STR     R5, [R6, #0x38] \n" 
 242       "    B       loc_FF921350 \n" 
 243 "loc_FF92140C:\n"
 244       "    MOV     R0, #1 \n" 
 245       "    BL      sub_FFA161FC \n" 
 246       "    LDR     R0, [SP, #0x40] \n" 
 247       "    LDR     R1, [SP, #0x38] \n" 
 248       "    ADD     LR, R1, R0 \n" 
 249       "    LDR     R1, [SP, #0x34] \n" 
 250       "    SUB     R12, R1, R0 \n" 
 251 "loc_FF921428:\n"
 252       "    LDR     R0, [R4, #0x1C] \n" 
 253       "    LDR     R2, [R6, #0x48] \n" 
 254       "    LDR     R1, [R4, #0x20] \n" 
 255       "    ADD     R3, SP, #0x3C \n" 
 256       "    ADD     R9, SP, #0x18 \n" 
 257       "    STMIA   R9, {R0-R3} \n" 
 258       "    LDR     R0, [SP, #0x2C] \n" 
 259       "    LDR     R2, [R6, #0x64] \n" 
 260       "    LDR     R3, [R6, #0x68] \n" 
 261       "    ADD     R1, SP, #0x40 \n" 
 262       "    ADD     R9, SP, #8 \n" 
 263       "    STMIA   R9, {R0-R3} \n" 
 264       "    LDR     R3, [SP, #0x30] \n" 
 265       "    STR     R12, [SP] \n" 
 266       "    STR     R3, [SP, #4] \n" 
 267       "    LDMIB   R4, {R0,R1} \n" 
 268       "    MOV     R3, LR \n" 
 269       "    MOV     R2, R8 \n" 
 270       "    BL      sub_FFA16154 \n" 
 271       "    LDR     R0, [R6, #0x10] \n" 
 272       "    MOV     R1, #0x3E8 \n" 
 273       "    BL      sub_FF826E28 \n" 
 274       "    CMP     R0, #9 \n" 
 275       "    BNE     loc_FF9214A4 \n" 
 276       "    BL      sub_FFA57628 \n" 
 277       "    MOV     R0, #0x90000 \n" 
 278       "    STR     R5, [R6, #0x38] \n" 
 279       "    BL      sub_FF87721C \n" 
 280       "    MOV     R0, #0 \n" 
 281 "loc_FF92149C:\n"
 282       "    BL      sub_FFA161FC \n" 
 283       "    B       loc_FF921348 \n" 
 284 "loc_FF9214A4:\n"
 285       "    LDR     R0, [SP, #0x3C] \n" 
 286       "    CMP     R0, #0 \n" 
 287       "    BEQ     loc_FF9214C4 \n" 
 288       "    BL      sub_FFA57628 \n" 
 289       "    MOV     R0, #0xA0000 \n" 
 290       "    STR     R5, [R6, #0x38] \n" 
 291       "    BL      sub_FF87721C \n" 
 292       "    B       loc_FF921348 \n" 
 293 "loc_FF9214C4:\n"
 294       "    MOV     R0, #0 \n" 
 295       "    BL      sub_FFA161FC \n" 
 296       "    LDR     R0, [SP, #0x38] \n" 
 297       "    LDR     R1, [SP, #0x40] \n" 
 298       "    BL      sub_FFA57384 \n" 
 299       "    LDR     R0, [R6, #0x48] \n" 
 300       "    LDR     R3, =0x5F28 \n" 
 301       "    ADD     R1, R0, #1 \n" 
 302       "    STR     R1, [R6, #0x48] \n" 
 303       "    STR     R3, [SP] \n" 
 304       "    LDR     R0, [SP, #0x40] \n" 
 305       "    SUB     R3, R3, #4 \n" 
 306       "    MOV     R2, #0xF \n" 
 307       "    BL      sub_FFA55528 \n" 
 308       "    LDR     R0, =0x5f28-4\n" // +
 309       "    BL      set_quality\n" // +
 310 "loc_FF9214FC:\n"
 311       "    LDR     R0, [R6, #0x4C] \n" 
 312       "    ADD     R0, R0, #1 \n" 
 313       "    STR     R0, [R6, #0x4C] \n" 
 314       "    LDR     R1, [R6, #0x74] \n" 
 315       "    MUL     R0, R1, R0 \n" 
 316       "    LDR     R1, [R6, #0x70] \n" 
 317       "    BL      sub_FFAEB8A4 \n" 
 318       "    MOV     R4, R0 \n" 
 319       "    BL      sub_FFA57660 \n" 
 320       "    LDR     R1, [R6, #0x6C] \n" 
 321       "    CMP     R1, R4 \n" 
 322       "    BNE     loc_FF921538 \n" 
 323       "    LDR     R0, [R6, #0x30] \n" 
 324       "    CMP     R0, #1 \n" 
 325       "    BNE     loc_FF92154C \n" 
 326 "loc_FF921538:\n"
 327       "    LDR     R1, [R6, #0x80] \n" 
 328       "    MOV     R0, R4 \n" 
 329       "    BLX     R1 \n" 
 330       "    STR     R4, [R6, #0x6C] \n" 
 331       "    STR     R7, [R6, #0x30] \n" 
 332 "loc_FF92154C:\n"
 333       "    STR     R7, [R6, #0x2C] \n" 
 334       "    B       loc_FF921348 \n" 
 335     );
 336 }
 337 

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