root/platform/ixus200_sd980/sub/101d/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_FF94AA58_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 //** movie_record_task  @ 0xFF94B0C4 
  13 
  14 void __attribute__((naked,noinline)) movie_record_task(  ) { 
  15 asm volatile (
  16 "       STMFD   SP!, {R2-R8,LR} \n"                
  17 "       LDR     R7, =0x2710 \n"                      
  18 "       LDR     R4, =0x67A8 \n"                      
  19 "       MOV     R6, #0 \n"                           
  20 "       MOV     R5, #1 \n"                           
  21 "loc_FF94B0D8:\n"
  22 "       LDR     R0, [R4, #0x18] \n"                  
  23 "       MOV     R2, #0 \n"                           
  24 "       ADD     R1, SP, #4 \n"                       
  25 "       BL      sub_FF837F08 \n"                      
  26 "       LDR     R0, [R4, #0x20] \n"                  
  27 "       CMP     R0, #0 \n"                           
  28 "       BNE     loc_FF94B1A8 \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_FF94B1A8 \n"                       
  35 "       B       loc_FF94B15C \n"                       
  36 "       B       loc_FF94B17C \n"                       
  37 "       B       loc_FF94B18C \n"                       
  38 "       B       loc_FF94B194 \n"                       
  39 "       B       loc_FF94B164 \n"                       
  40 "       B       loc_FF94B19C \n"                       
  41 "       B       loc_FF94B16C \n"                       
  42 "       B       loc_FF94B1A8 \n"                       
  43 "       B       loc_FF94B1A4 \n"                       
  44 "       B       loc_FF94B134 \n"                       
  45 "loc_FF94B134:\n"
  46 "       LDR     R0, =0xFF94ADD8 \n"                  
  47 "       STR     R6, [R4, #0x34] \n"                  
  48 "       STR     R0, [R4, #0x9C] \n"                  
  49 "       LDR     R2, =0xFF94A30C \n"                  
  50 "       LDR     R1, =0x7B1D0 \n"                     
  51 "       LDR     R0, =0xFF94A3F0 \n"                  
  52 "       STR     R6, [R4, #0x24] \n"                  
  53 "       BL      sub_FF8E1AA8 \n"                      
  54 "       STR     R5, [R4, #0x38] \n"                  
  55 "       B       loc_FF94B1A8 \n"                       
  56 "loc_FF94B15C:\n"
  57 "       BL      sub_FF94AEE0 \n"                      
  58 "       B       loc_FF94B1A8 \n"                       
  59 "loc_FF94B164:\n"
  60 "       BL      sub_FF94AA58 \n"                      
  61 "       B       loc_FF94B1A8 \n"                       
  62 "loc_FF94B16C:\n"
  63 "       LDR     R1, [R0, #0x18] \n"                  
  64 "       LDR     R0, [R0, #4] \n"                     
  65 "       BL      sub_FFA96970 \n"                      
  66 "       B       loc_FF94B1A8 \n"                       
  67 "loc_FF94B17C:\n"
  68 "       LDR     R0, [R4, #0x38] \n"                  
  69 "       CMP     R0, #5 \n"                           
  70 "       STRNE   R5, [R4, #0x28] \n"                
  71 "       B       loc_FF94B1A8 \n"                       
  72 "loc_FF94B18C:\n"
  73 "       BL      sub_FF94A758 \n"                      
  74 "       B       loc_FF94B1A8 \n"                       
  75 "loc_FF94B194:\n"
  76 "       BL      sub_FF94A43C \n"                      
  77 "       B       loc_FF94B1A8 \n"                       
  78 "loc_FF94B19C:\n"
  79 "       BL      sub_FF94A298 \n"                      
  80 "       B       loc_FF94B1A8 \n"                       
  81 "loc_FF94B1A4:\n"
  82 "       BL      sub_FF94B314 \n"                      
  83 "loc_FF94B1A8:\n"
  84 "       LDR     R1, [SP, #4] \n"                     
  85 "       MOV     R3, #0x460 \n"                       
  86 "       STR     R6, [R1] \n"                         
  87 "       STR     R3, [SP] \n"                         
  88 "       LDR     R0, [R4, #0x1C] \n"                  
  89 "       LDR     R3, =0xFF94A0F8 \n"                  
  90 "       MOV     R2, R7 \n"                           
  91 "       BL      sub_FF83885C \n"                      
  92 "       B       loc_FF94B0D8 \n"                       
  93         );
  94 }
  95 
  96 
  97 //** sub_FF94A89C_my  @ 0xFF94AA58 
  98 
  99 void __attribute__((naked,noinline)) sub_FF94AA58_my(  ) { 
 100 asm volatile (
 101 "       STMFD   SP!, {R4-R8,LR} \n"                
 102 "       SUB     SP, SP, #0x40 \n"                    
 103 "       MOV     R7, #0 \n"                           
 104 "       LDR     R6, =0x67A8 \n"                      
 105 "       MOV     R4, R0 \n"                           
 106 "       STR     R7, [SP, #0x30] \n"                  
 107 "       STR     R7, [SP, #0x28] \n"                  
 108 "       LDR     R0, [R6, #0x38] \n"                  
 109 "       MOV     R8, #4 \n"                           
 110 "       CMP     R0, #3 \n"                           
 111 "       STREQ   R8, [R6, #0x38] \n"                
 112 "       LDR     R0, [R6, #0x9C] \n"                  
 113 "       BLX     R0 \n"                               
 114 "       LDR     R0, [R6, #0x38] \n"                  
 115 "       CMP     R0, #4 \n"                           
 116 "       BNE     loc_FF94ABC8 \n"                     
 117 "       ADD     R3, SP, #0x28 \n"                    
 118 "       ADD     R2, SP, #0x2C \n"                    
 119 "       ADD     R1, SP, #0x30 \n"                    
 120 "       ADD     R0, SP, #0x34 \n"                    
 121 "       BL      sub_FFA96A0C \n"                      
 122 "       CMP     R0, #0 \n"                           
 123 "       MOV     R5, #1 \n"                           
 124 "       BNE     loc_FF94AAD4 \n"                     
 125 "       LDR     R1, [R6, #0x28] \n"                  
 126 "       CMP     R1, #1 \n"                           
 127 "       BNE     loc_FF94ABD0 \n"                     
 128 "       LDR     R1, [R6, #0x4C] \n"                  
 129 "       LDR     R2, [R6, #0x3C] \n"                  
 130 "       CMP     R1, R2 \n"                           
 131 "       BCC     loc_FF94ABD0 \n"                     
 132 "loc_FF94AAD4:\n"
 133 "       CMP     R0, #0x80000001 \n"                  
 134 "       STREQ   R8, [R6, #0x50] \n"                
 135 "       BEQ     loc_FF94AB0C \n"                     
 136 "       CMP     R0, #0x80000003 \n"                  
 137 "       STREQ   R5, [R6, #0x50] \n"                
 138 "       BEQ     loc_FF94AB0C \n"                     
 139 "       CMP     R0, #0x80000005 \n"                  
 140 "       MOVEQ   R0, #2 \n"                         
 141 "       BEQ     loc_FF94AB08 \n"                     
 142 "       CMP     R0, #0x80000007 \n"                  
 143 "       STRNE   R7, [R6, #0x50] \n"                
 144 "       BNE     loc_FF94AB0C \n"                     
 145 "       MOV     R0, #3 \n"                           
 146 "loc_FF94AB08:\n"
 147 "       STR     R0, [R6, #0x50] \n"                  
 148 "loc_FF94AB0C:\n"
 149 "       LDR     R0, =0x7B204 \n"                     
 150 "       LDR     R0, [R0, #8] \n"                     
 151 "       CMP     R0, #0 \n"                           
 152 "       BEQ     loc_FF94AB24 \n"                     
 153 "       BL      sub_FF85CDE0 \n"                      
 154 "       B       loc_FF94AB28 \n"                       
 155 "loc_FF94AB24:\n"
 156 "       BL      sub_FF94A298 \n"                      
 157 "loc_FF94AB28:\n"
 158 "       LDR     R0, [R4, #0x1C] \n"                  
 159 "       ADD     R4, SP, #0x18 \n"                    
 160 "       ADD     R3, SP, #0x38 \n"                    
 161 "       MVN     R2, #1 \n"                           
 162 "       MOV     R1, #0 \n"                           
 163 "       STMIA   R4, {R0-R3} \n"                    
 164 "       LDR     R2, [R6, #0x64] \n"                  
 165 "       LDR     R3, [R6, #0x68] \n"                  
 166 "       ADD     R1, SP, #0x3C \n"                    
 167 "       ADD     R4, SP, #8 \n"                       
 168 "       MOV     R0, #0 \n"                           
 169 "       STMIA   R4, {R0-R3} \n"                    
 170 "       MOV     R3, #0 \n"                           
 171 "       MOV     R2, #0x40 \n"                        
 172 "       STRD    R2, [SP] \n"                        
 173 "       LDR     R3, =0x7B21C \n"                     
 174 "       MOV     R2, #0 \n"                           
 175 "       MOV     R1, #0 \n"                           
 176 "       BL      sub_FFA536F4 \n"                      
 177 "       LDR     R0, [R6, #0x10] \n"                  
 178 "       MOV     R1, #0x3E8 \n"                       
 179 "       BL      sub_FF838324 \n"                      
 180 "       CMP     R0, #9 \n"                           
 181 "       BNE     loc_FF94AB98 \n"                     
 182 "loc_FF94AB88:\n"
 183 "       BL      sub_FFA96EE0 \n"                      
 184 "       MOV     R0, #1 \n"                           
 185 "       STR     R5, [R6, #0x38] \n"                  
 186 "       B       loc_FF94ACF8 \n"                       
 187 "loc_FF94AB98:\n"
 188 "       LDR     R0, [SP, #0x38] \n"                  
 189 "       CMP     R0, #0 \n"                           
 190 "       BEQ     loc_FF94ABB4 \n"                     
 191 "loc_FF94ABA4:\n"
 192 "       BL      sub_FFA96EE0 \n"                      
 193 "       MOV     R0, #1 \n"                           
 194 "       STR     R5, [R6, #0x38] \n"                  
 195 "       B       loc_FF94AD24 \n"                       
 196 "loc_FF94ABB4:\n"
 197 "       MOV     R0, #1 \n"                           
 198 "       BL      sub_FFA5379C \n"                      
 199 "       BL      sub_FFA537D8 \n"                      
 200 "       MOV     R0, #5 \n"                           
 201 "       STR     R0, [R6, #0x38] \n"                  
 202 "loc_FF94ABC8:\n"
 203 "       ADD     SP, SP, #0x40 \n"                    
 204 "       LDMFD   SP!, {R4-R8,PC} \n"                
 205 "loc_FF94ABD0:\n"
 206 "       LDR     R12, [SP, #0x30] \n"                 
 207 "       CMP     R12, #0 \n"                          
 208 "       BEQ     loc_FF94AD80 \n"                     
 209 "       STR     R5, [R6, #0x2C] \n"                  
 210 "       LDR     R0, [R6, #0x4C] \n"                  
 211 "       LDR     R8, [R4, #0xC] \n"                   
 212 "       CMP     R0, #0 \n"                           
 213 "       LDRNE   LR, [SP, #0x34] \n"                
 214 "       BNE     loc_FF94AC7C \n"                     
 215 "       LDR     R0, [R4, #0x1C] \n"                  
 216 "       LDR     R1, [R4, #0x20] \n"                  
 217 "       ADD     R3, SP, #0x38 \n"                    
 218 "       MVN     R2, #0 \n"                           
 219 "       ADD     LR, SP, #0x18 \n"                    
 220 "       STMIA   LR, {R0-R3} \n"                    
 221 "       LDR     R0, [SP, #0x28] \n"                  
 222 "       LDR     R2, [R6, #0x64] \n"                  
 223 "       LDR     R3, [R6, #0x68] \n"                  
 224 "       ADD     R1, SP, #0x3C \n"                    
 225 "       ADD     LR, SP, #8 \n"                       
 226 "       STMIA   LR, {R0-R3} \n"                    
 227 "       LDR     R3, [SP, #0x2C] \n"                  
 228 "       STR     R12, [SP] \n"                        
 229 "       STR     R3, [SP, #4] \n"                     
 230 "       LDMIB   R4, {R0,R1} \n"                    
 231 "       LDR     R3, [SP, #0x34] \n"                  
 232 "       MOV     R2, R8 \n"                           
 233 "       BL      sub_FFA536F4 \n"                      
 234 "       LDR     R0, [R6, #0x10] \n"                  
 235 "       MOV     R1, #0x3E8 \n"                       
 236 "       BL      sub_FF838324 \n"                      
 237 "       CMP     R0, #9 \n"                           
 238 "       BEQ     loc_FF94AB88 \n"                     
 239 "       LDR     R0, [SP, #0x38] \n"                  
 240 "       CMP     R0, #0 \n"                           
 241 "       BNE     loc_FF94ABA4 \n"                     
 242 "       MOV     R0, #1 \n"                           
 243 "       BL      sub_FFA5379C \n"                      
 244 "       LDR     R0, [SP, #0x3C] \n"                  
 245 "       LDR     R1, [SP, #0x34] \n"                  
 246 "       ADD     LR, R1, R0 \n"                       
 247 "       LDR     R1, [SP, #0x30] \n"                  
 248 "       SUB     R12, R1, R0 \n"                      
 249 "loc_FF94AC7C:\n"
 250 "       LDR     R2, [R6, #0x48] \n"                  
 251 "       LDR     R0, [R4, #0x1C] \n"                  
 252 "       LDR     R1, [R4, #0x20] \n"                  
 253 "       ADD     R3, SP, #0x38 \n"                    
 254 "       STR     R0, [SP, #0x18] \n"                  
 255 "       STR     R1, [SP, #0x1C] \n"                  
 256 "       STR     R3, [SP, #0x24] \n"                  
 257 "       STR     R2, [SP, #0x20] \n"                  
 258 "       LDR     R2, [R6, #0x64] \n"                  
 259 "       LDR     R3, [R6, #0x68] \n"                  
 260 "       LDR     R0, [SP, #0x28] \n"                  
 261 "       STR     R3, [SP, #0x14] \n"                  
 262 "       LDR     R3, [SP, #0x2C] \n"                  
 263 "       ADD     R1, SP, #0x3C \n"                    
 264 "       STR     R2, [SP, #0x10] \n"                  
 265 "       STR     R3, [SP, #4] \n"                     
 266 "       STR     R1, [SP, #0xC] \n"                   
 267 "       STR     R12, [SP] \n"                        
 268 "       STR     R0, [SP, #8] \n"                     
 269 "       LDMIB   R4, {R0,R1} \n"                    
 270 "       MOV     R3, LR \n"                           
 271 "       MOV     R2, R8 \n"                           
 272 "       BL      sub_FFA536F4 \n"                      
 273 "       LDR     R0, [R6, #0x10] \n"                  
 274 "       MOV     R1, #0x3E8 \n"                       
 275 "       BL      sub_FF838324 \n"                      
 276 "       CMP     R0, #9 \n"                           
 277 "       BNE     loc_FF94AD0C \n"                     
 278 "       BL      sub_FFA96EE0 \n"                      
 279 "       MOV     R0, #0 \n"                           
 280 "       STR     R5, [R6, #0x38] \n"                  
 281 "loc_FF94ACF8:\n"
 282 "       BL      sub_FFA5379C \n"                      
 283 "       MOV     R0, #0xC \n"                         
 284 "       BL      sub_FF883604 \n"                      
 285 "       MOV     R0, #0x90000 \n"                     
 286 "       B       loc_FF94AD34 \n"                       
 287 "loc_FF94AD0C:\n"
 288 "       LDR     R0, [SP, #0x38] \n"                  
 289 "       CMP     R0, #0 \n"                           
 290 "       BEQ     loc_FF94AD48 \n"                     
 291 "       BL      sub_FFA96EE0 \n"                      
 292 "       MOV     R0, #0 \n"                           
 293 "       STR     R5, [R6, #0x38] \n"                  
 294 "loc_FF94AD24:\n"
 295 "       BL      sub_FFA5379C \n"                      
 296 "       MOV     R0, #0xC \n"                         
 297 "       BL      sub_FF883604 \n"                      
 298 "       MOV     R0, #0xA0000 \n"                     
 299 "loc_FF94AD34:\n"
 300 "       BL      sub_FF890C9C \n"                      
 301 "       LDR     R1, [R6, #0x8C]! \n"                 
 302 "       LDR     R0, [R6, #0xC] \n"                   
 303 "       BLX     R1 \n"                               
 304 "       B       loc_FF94ABC8 \n"                       
 305 "loc_FF94AD48:\n"
 306 "       MOV     R0, #0 \n"                           
 307 "       BL      sub_FFA5379C \n"                      
 308 "       LDR     R0, [SP, #0x34] \n"                  
 309 "       LDR     R1, [SP, #0x3C] \n"                  
 310 "       BL      sub_FFA96C38 \n"                      
 311 "       LDR     R0, [R6, #0x48] \n"                  
 312 "       LDR     R3, =0x6810 \n"                      
 313 "       ADD     R1, R0, #1 \n"                       
 314 "       STR     R1, [R6, #0x48] \n"                  
 315 "       STR     R3, [SP] \n"                         
 316 "       LDR     R0, [SP, #0x3C] \n"                  
 317 "       SUB     R3, R3, #4 \n"                       
 318 "       MOV     R2, #0xF \n"                         
 319 "       BL      sub_FFA94DBC \n"   
 320               
 321 "       LDR     R0, =0x6810-4\n"  // -<----   -4 //+
 322 "       BL      set_quality\n"                  // +
 323                    
 324 "loc_FF94AD80:\n"
 325 "       LDR     R0, [R6, #0x4C] \n"                  
 326 "       ADD     R0, R0, #1 \n"                       
 327 "       STR     R0, [R6, #0x4C] \n"                  
 328 "       LDR     R1, [R6, #0x74] \n"                  
 329 "       MUL     R0, R1, R0 \n"                       
 330 "       LDR     R1, [R6, #0x70] \n"                  
 331 "       BL      sub_FFB3CA68 \n"                      
 332 "       MOV     R4, R0 \n"                           
 333 "       BL      sub_FFA96F18 \n"                      
 334 "       LDR     R1, [R6, #0x6C] \n"                  
 335 "       CMP     R1, R4 \n"                           
 336 "       BNE     loc_FF94ADBC \n"                     
 337 "       LDR     R0, [R6, #0x30] \n"                  
 338 "       CMP     R0, #1 \n"                           
 339 "       BNE     loc_FF94ADD0 \n"                     
 340 "loc_FF94ADBC:\n"
 341 "       LDR     R1, [R6, #0x80] \n"                  
 342 "       MOV     R0, R4 \n"                           
 343 "       BLX     R1 \n"                               
 344 "       STR     R4, [R6, #0x6C] \n"                  
 345 "       STR     R7, [R6, #0x30] \n"                  
 346 "loc_FF94ADD0:\n"
 347 "       STR     R7, [R6, #0x2C] \n"                  
 348 "       B       loc_FF94ABC8 \n"                       
 349         );
 350 }
 351 
 352 

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