root/platform/ixus120_sd940/sub/103b/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_FF93CFE8_my

   1 // IXUS120-SD940 fw 1.03B  -  rev 2
   2 #include "conf.h"
   3 
   4 
   5 /*----------------------------------------------------------------------
   6         change_video_tables()
   7 -----------------------------------------------------------------------*/
   8 void change_video_tables(int a, int b){
   9 }
  10 
  11 
  12 
  13 /*----------------------------------------------------------------------
  14         set_quality()
  15 -----------------------------------------------------------------------*/
  16 // from sx10, not sure if the values are right, seems to work
  17 void  set_quality(int *x){ // -17 highest; +12 lowest
  18  if (conf.video_mode) 
  19         *x=12-((conf.video_quality-1)*(12+17)/(99-1));
  20 }
  21 
  22 
  23 /*----------------------------------------------------------------------
  24         movie_record_task()
  25 -----------------------------------------------------------------------*/
  26 void __attribute__((naked,noinline)) movie_record_task(){
  27  asm volatile(
  28 "               STMFD   SP!, {R2-R8,LR}\n"
  29 "               LDR     R7, =0x2710\n"
  30 "               LDR     R4, =0x6228\n"
  31 "               MOV     R6, #0\n"
  32 "               MOV     R5, #1\n"
  33 "loc_FF93D668:\n"
  34 "               LDR     R0, [R4,#0x18]\n"
  35 "               MOV     R2, #0\n"
  36 "               ADD     R1, SP, #0x04\n"
  37 "               BL              sub_FF837DC8\n"
  38 "               LDR     R0, [R4,#0x20]\n"
  39 "               CMP     R0, #0\n"
  40 "               BNE             loc_FF93D738\n"
  41 "               LDR     R0, [SP,#0x04]\n"
  42 "               LDR     R1, [R0]\n"
  43 "               SUB     R1, R1, #2\n"
  44 "               CMP     R1, #9\n"
  45 "               ADDLS   PC, PC, R1,LSL#2\n"
  46 "               B               loc_FF93D738\n"
  47 "loc_FF93D69C:  B       loc_FF93D6EC\n"
  48 "loc_FF93D6A0:  B       loc_FF93D70C\n"
  49 "loc_FF93D6A4:  B       loc_FF93D71C\n"
  50 "loc_FF93D6A8:  B       loc_FF93D724\n"
  51 "loc_FF93D6AC:  B       loc_FF93D6F4\n"
  52 "loc_FF93D6B0:  B       loc_FF93D72C\n"
  53 "loc_FF93D6B4:  B       loc_FF93D6FC\n"
  54 "loc_FF93D6B8:  B       loc_FF93D738\n"
  55 "loc_FF93D6BC:  B       loc_FF93D734\n"
  56 "loc_FF93D6C0:  B       loc_FF93D6C4\n"
  57 
  58 "loc_FF93D6C4:\n"
  59 "               LDR     R0, =0xFF93D368\n"
  60 "               STR     R6, [R4,#0x34]\n"
  61 "               STR     R0, [R4,#0x9C]\n"
  62 "               LDR     R2, =0xFF93C89C\n"
  63 "               LDR     R1, =0x67F58\n"
  64 "               LDR     R0, =0xFF93C980\n"
  65 "               STR     R6, [R4,#0x24]\n"
  66 "               BL              sub_FF8D9F34\n"
  67 "               STR     R5, [R4,#0x38]\n"
  68 "               B               loc_FF93D738\n"
  69 "loc_FF93D6EC:\n"
  70                 "BL     unlock_optical_zoom\n" //------->>
  71 "               BL              sub_FF93D470\n"
  72 "               B               loc_FF93D738\n"
  73 "loc_FF93D6F4:\n"
  74 //"             BL              sub_FF93CFE8\n"
  75 "               BL              sub_FF93CFE8_my\n"  //------->> 
  76 "               B               loc_FF93D738\n"
  77 "loc_FF93D6FC:\n"
  78 "               LDR     R1, [R0,#0x18]\n"
  79 "               LDR     R0, [R0,#4]\n"
  80 "               BL              sub_FFA63B50\n"
  81 "               B               loc_FF93D738\n"
  82 "loc_FF93D70C:\n"
  83 "               LDR     R0, [R4,#0x38]\n"
  84 "               CMP     R0, #5\n"
  85 "               STRNE   R5, [R4,#0x28]\n"
  86 "               B               loc_FF93D738\n"
  87 "loc_FF93D71C:\n"
  88 "               BL              sub_FF93CCE8\n"
  89 "               B               loc_FF93D738\n"
  90 "loc_FF93D724:\n"
  91 "               BL              sub_FF93C9CC\n"
  92 "               B               loc_FF93D738\n"
  93 "loc_FF93D72C:\n"
  94 "               BL              sub_FF93C828\n"
  95 "               B               loc_FF93D738\n"
  96 "loc_FF93D734:\n"
  97 "               BL              sub_FF93D8A4\n"
  98 "loc_FF93D738:\n"
  99 "               LDR     R1, [SP,#0x04]\n"
 100 "               MOV     R3, #0x460\n"
 101 "               STR     R6, [R1]\n"
 102 "               STR     R3, [SP]\n"
 103 "               LDR     R0, [R4,#0x1C]\n"
 104 "               LDR     R3, =0xFF93C688\n"
 105 "               MOV     R2, R7\n"
 106 "               BL              sub_FF83871C\n"
 107 "               B               loc_FF93D668\n"
 108         );
 109 }       
 110 
 111 
 112 /*----------------------------------------------------------------------
 113         sub_FF93CFE8_my() 
 114 -----------------------------------------------------------------------*/
 115 void __attribute__((naked,noinline)) sub_FF93CFE8_my(){
 116  asm volatile(
 117 "               STMFD   SP!, {R4-R8,LR}\n"
 118 "               SUB     SP, SP, #0x40\n"
 119 "               MOV     R7, #0\n"
 120 "               LDR     R6, =0x6228\n"
 121 "               MOV     R4, R0\n"
 122 "               STR     R7, [SP,#0x30]\n"
 123 "               STR     R7, [SP,#0x28]\n"
 124 "               LDR     R0, [R6,#0x38]\n"
 125 "               MOV     R8, #4\n"
 126 "               CMP     R0, #3\n"
 127 "               STREQ   R8, [R6,#0x38]\n"
 128 "               LDR     R0, [R6,#0x9C]\n"
 129 "               BLX     R0\n"
 130 "               LDR     R0, [R6,#0x38]\n"
 131 "               CMP     R0, #4\n"
 132 "               BNE             loc_FF93D158\n"
 133 "               ADD     R3, SP, #0x28\n"
 134 "               ADD     R2, SP, #0x2C\n"
 135 "               ADD     R1, SP, #0x30\n"
 136 "               ADD     R0, SP, #0x34\n"
 137 "               BL              sub_FFA63BEC\n"
 138 "               CMP     R0, #0\n"
 139 "               MOV     R5, #1\n"
 140 "               BNE             loc_FF93D064\n"
 141 "               LDR     R1, [R6,#0x28]\n"
 142 "               CMP     R1, #1\n"
 143 "               BNE             loc_FF93D160\n"
 144 "               LDR     R1, [R6,#0x4C]\n"
 145 "               LDR     R2, [R6,#0x3C]\n"
 146 "               CMP     R1, R2\n"
 147 "               BCC             loc_FF93D160\n"
 148 "loc_FF93D064:\n"
 149 "               CMP     R0, #0x80000001\n"
 150 "               STREQ   R8, [R6,#0x50]\n"
 151 "               BEQ             loc_FF93D09C\n"
 152 "               CMP     R0, #0x80000003\n"
 153 "               STREQ   R5, [R6,#0x50]\n"
 154 "               BEQ             loc_FF93D09C\n"
 155 "               CMP     R0, #0x80000005\n"
 156 "               MOVEQ   R0, #2\n"
 157 "               BEQ             loc_FF93D098\n"
 158 "               CMP     R0, #0x80000007\n"
 159 "               STRNE   R7, [R6,#0x50]\n"
 160 "               BNE             loc_FF93D09C\n"
 161 "               MOV     R0, #3\n"
 162 "loc_FF93D098:\n"
 163 "               STR     R0, [R6,#0x50]\n"
 164 "loc_FF93D09C:\n"
 165 "               LDR     R0, =0x67F8C\n"
 166 "               LDR     R0, [R0,#8]\n"
 167 "               CMP     R0, #0\n"
 168 "               BEQ             loc_FF93D0B4\n"
 169 "               BL      sub_FF85A840\n"
 170 "               B               loc_FF93D0B8\n"
 171 "loc_FF93D0B4:\n"
 172 "               BL              sub_FF93C828\n"
 173 "loc_FF93D0B8:\n"
 174 "               LDR     R0, [R4,#0x1C]\n"
 175 "               ADD     R4, SP, #0x18\n"
 176 "               ADD     R3, SP, #0x38\n"
 177 "               MVN     R2, #1\n"
 178 "               MOV     R1, #0\n"
 179 "               STMIA   R4, {R0-R3}\n"
 180 "               LDR     R2, [R6,#0x64]\n"
 181 "               LDR     R3, [R6,#0x68]\n"
 182 "               ADD     R1, SP, #0x3C\n"
 183 "               ADD     R4, SP, #0x08\n"
 184 "               MOV     R0, #0\n"
 185 "               STMIA   R4, {R0-R3}\n"
 186 "               MOV     R3, #0\n"
 187 "               MOV     R2, #0x40\n"
 188 "               STRD    R2, [SP]\n"
 189 "               LDR     R3, =0x67FA4\n"
 190 "               MOV     R2, #0\n"
 191 "               MOV     R1, #0\n"
 192 "               BL              sub_FFA28074\n"
 193 "               LDR     R0, [R6,#0x10]\n"
 194 "               MOV     R1, #0x3E8\n"
 195 "               BL      sub_FF8381E4\n"
 196 "               CMP     R0, #9\n"
 197 "               BNE             loc_FF93D128\n"
 198 "loc_FF93D118:\n"
 199 "               BL              sub_FFA640C0\n"
 200 "               MOV     R0, #1\n"
 201 "               STR     R5, [R6,#0x38]\n"
 202 "               B               loc_FF93D288\n"
 203 "loc_FF93D128:\n"
 204 "               LDR     R0, [SP,#0x38]\n"
 205 "               CMP     R0, #0\n"
 206 "               BEQ             loc_FF93D144\n"
 207 "loc_FF93D134:\n"
 208 "               BL              sub_FFA640C0\n"
 209 "               MOV     R0, #1\n"
 210 "               STR     R5, [R6,#0x38]\n"
 211 "               B               loc_FF93D2B4\n"
 212 "loc_FF93D144:\n"
 213 "               MOV     R0, #1\n"
 214 "               BL              sub_FFA2811C\n"
 215 "               BL              sub_FFA28158\n"
 216 "               MOV     R0, #5\n"
 217 "               STR     R0, [R6,#0x38]\n"
 218 "loc_FF93D158:\n"
 219 "               ADD     SP, SP, #0x40\n"
 220 "               LDMFD   SP!, {R4-R8,PC}\n"
 221 "loc_FF93D160:\n"
 222 "               LDR     R12, [SP,#0x30]\n"
 223 "               CMP     R12, #0\n"
 224 "               BEQ             loc_FF93D310\n"
 225 "               STR     R5, [R6,#0x2C]\n"
 226 "               LDR     R0, [R6,#0x4C]\n"
 227 "               LDR     R8, [R4,#0xC]\n"
 228 "               CMP     R0, #0\n"
 229 "               LDRNE   LR, [SP,#0x34]\n"
 230 "               BNE             loc_FF93D20C\n"
 231 "               LDR     R0, [R4,#0x1C]\n"
 232 "               LDR     R1, [R4,#0x20]\n"
 233 "               ADD     R3, SP, #0x38\n"
 234 "               MVN     R2, #0\n"
 235 "               ADD     LR, SP, #0x18\n"
 236 "               STMIA   LR, {R0-R3}\n"
 237 "               LDR     R0, [SP,#0x28]\n"
 238 "               LDR     R2, [R6,#0x64]\n"
 239 "               LDR     R3, [R6,#0x68]\n"
 240 "               ADD     R1, SP, #0x3C\n"
 241 "               ADD     LR, SP, #0x08\n"
 242 "               STMIA   LR, {R0-R3}\n"
 243 "               LDR     R3, [SP,#0x2C]\n"
 244 "               STR     R12, [SP]\n"
 245 "               STR     R3, [SP,#4]\n"
 246 "               LDMIB   R4, {R0,R1}\n"
 247 "               LDR     R3, [SP,#0x34]\n"
 248 "               MOV     R2, R8\n"
 249 "               BL              sub_FFA28074\n"
 250 "               LDR     R0, [R6,#0x10]\n"
 251 "               MOV     R1, #0x3E8\n"
 252 "               BL              sub_FF8381E4\n"
 253 "               CMP     R0, #9\n"
 254 "               BEQ             loc_FF93D118\n"
 255 "               LDR     R0, [SP,#0x38]\n"
 256 "               CMP     R0, #0\n"
 257 "               BNE             loc_FF93D134\n"
 258 "               MOV     R0, #1\n"
 259 "               BL              sub_FFA2811C\n"
 260 "               LDR     R0, [SP,#0x3C]\n"
 261 "               LDR     R1, [SP,#0x34]\n"
 262 "               ADD     LR, R1, R0\n"
 263 "               LDR     R1, [SP,#0x30]\n"
 264 "               SUB     R12, R1, R0\n"
 265 "loc_FF93D20C:\n"
 266 "               LDR     R2, [R6,#0x48]\n"
 267 "               LDR     R0, [R4,#0x1C]\n"
 268 "               LDR     R1, [R4,#0x20]\n"
 269 "               ADD     R3, SP, #0x38\n"
 270 "               STR     R0, [SP,#0x18]\n"
 271 "               STR     R1, [SP,#0x1C]\n"
 272 "               STR     R3, [SP,#0x24]\n"
 273 "               STR     R2, [SP,#0x20]\n"
 274 "               LDR     R2, [R6,#0x64]\n"
 275 "               LDR     R3, [R6,#0x68]\n"
 276 "               LDR     R0, [SP,#0x28]\n"
 277 "               STR     R3, [SP,#0x14]\n"
 278 "               LDR     R3, [SP,#0x2C]\n"
 279 "               ADD     R1, SP, #0x3C\n"
 280 "               STR     R2, [SP,#0x10]\n"
 281 "               STR     R3, [SP,#4]\n"
 282 "               STR     R1, [SP,#0x0C]\n"
 283 "               STR     R12, [SP]\n"
 284 "               STR     R0, [SP,#0x08]\n"
 285 "               LDMIB   R4, {R0,R1}\n"
 286 "               MOV     R3, LR\n"
 287 "               MOV     R2, R8\n"
 288 "               BL              sub_FFA28074\n"
 289 "               LDR     R0, [R6,#0x10]\n"
 290 "               MOV     R1, #0x3E8\n"
 291 "               BL              sub_FF8381E4\n"
 292 "               CMP     R0, #9\n"
 293 "               BNE             loc_FF93D29C\n"
 294 "               BL              sub_FFA640C0\n"
 295 "               MOV     R0, #0\n"
 296 "               STR     R5, [R6,#0x38]\n"
 297 "loc_FF93D288:\n"
 298 "               BL              sub_FFA2811C\n"
 299 "               MOV     R0, #0xC\n"
 300 "               BL              sub_FF87F3D8\n"
 301 "               MOV     R0, #0x90000\n"
 302 "               B               loc_FF93D2C4\n"
 303 "loc_FF93D29C:\n"
 304 "               LDR     R0, [SP,#0x38]\n"
 305 "               CMP     R0, #0\n"
 306 "               BEQ             loc_FF93D2D8\n"
 307 "               BL              sub_FFA640C0\n"
 308 "               MOV     R0, #0\n"
 309 "               STR     R5, [R6,#0x38]\n"
 310 "loc_FF93D2B4:\n"
 311 "               BL              sub_FFA2811C\n"
 312 "               MOV     R0, #0xC\n"
 313 "               BL              sub_FF87F3D8\n"
 314 "               MOV     R0, #0xA0000\n"
 315 "loc_FF93D2C4:\n"
 316 "               BL              sub_FF88AD08\n"
 317 "               LDR     R1, [R6,#0x8C]!\n"
 318 "               LDR     R0, [R6,#0xC]\n"
 319 "               BLX     R1\n"
 320 "               B               loc_FF93D158\n"
 321 "loc_FF93D2D8:\n"
 322 "               MOV     R0, #0\n"
 323 "               BL              sub_FFA2811C\n"
 324 "               LDR     R0, [SP,#0x34]\n"
 325 "               LDR     R1, [SP,#0x3C]\n"
 326 "               BL              sub_FFA63E18\n"
 327 "               LDR     R0, [R6,#0x48]\n"
 328 "               LDR     R3, =0x6290\n"    //-------------
 329 "               ADD     R1, R0, #1\n"     //                    |
 330 "               STR     R1, [R6,#0x48]\n" //            |
 331 "               STR     R3, [SP]\n"       //            |
 332 "               LDR     R0, [SP,#0x3C]\n" //            |
 333 "               SUB     R3, R3, #4\n"     //            |
 334 "               MOV     R2, #0xF\n"       //            |
 335 "               BL      sub_FFA61F9C\n"   //            | 
 336                                                       //            |           
 337                 "LDR     R0, =0x6290-4\n" // -<----   -4 //+  
 338                 "BL      set_quality\n"                 // +  
 339 
 340         
 341                 
 342 "loc_FF93D310:\n"
 343 "               LDR     R0, [R6,#0x4C]\n"
 344 "               ADD     R0, R0, #1\n"
 345 "               STR     R0, [R6,#0x4C]\n"
 346 "               LDR     R1, [R6,#0x74]\n"
 347 "               MUL     R0, R1, R0\n"
 348 "               LDR     R1, [R6,#0x70]\n"
 349 "               BL              sub_FFB092F4\n"
 350 "               MOV     R4, R0\n"
 351 "               BL              sub_FFA640F8\n"
 352 "               LDR     R1, [R6,#0x6C]\n"
 353 "               CMP     R1, R4\n"
 354 "               BNE             loc_FF93D34C\n"
 355 "               LDR     R0, [R6,#0x30]\n"
 356 "               CMP     R0, #1\n"
 357 "               BNE             loc_FF93D360\n"
 358 "loc_FF93D34C:\n"
 359 "               LDR     R1, [R6,#0x80]\n"
 360 "               MOV     R0, R4\n"
 361 "               BLX     R1\n"
 362 "               STR     R4, [R6,#0x6C]\n"
 363 "               STR     R7, [R6,#0x30]\n"
 364 "loc_FF93D360:\n"
 365 "               STR     R7, [R6,#0x2C]\n"
 366 "               B               loc_FF93D158\n"
 367  );
 368 }

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