root/platform/a570/sub/100e/lib.c

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

DEFINITIONS

This source file includes following definitions.
  1. hook_raw_fptr
  2. hook_raw_ret_addr
  3. hook_raw_image_addr
  4. vid_get_viewport_live_fb
  5. vid_get_bitmap_fb
  6. vid_get_viewport_fb
  7. vid_get_viewport_fb_d
  8. vid_get_viewport_height
  9. camera_jpeg_count_str

   1 #include "platform.h"
   2 #include "keyboard.h"
   3 
   4 void *hook_raw_fptr()
   5 {
   6     return (void*)0x0; 
   7 }
   8 
   9 void *hook_raw_ret_addr()
  10 {
  11     return (void*)0x0; 
  12 }
  13 
  14 char *hook_raw_image_addr()
  15 {
  16     return (char*)0x10E6C640; 
  17 }
  18 
  19 void *vid_get_viewport_live_fb()
  20 {
  21 //    return (void*)0x0; 
  22     void **fb=(void **)0x65CC;
  23     unsigned char buff = *((unsigned char*)0x65DC);
  24     if (buff == 0) {
  25         buff = 2;
  26     }
  27     else {
  28         buff--;
  29     }
  30     return fb[buff];
  31 }
  32 
  33 void *vid_get_bitmap_fb()
  34 {
  35     return (void*)0x10361000;  
  36 }
  37 
  38 void *vid_get_viewport_fb()
  39 {
  40     return (void*)0x10657A00;
  41 }
  42 
  43 void *vid_get_viewport_fb_d()
  44 {
  45   #define BASE_FB_D (0x7C090)
  46   return (void*) (*(int*)(BASE_FB_D+0x10) ? *(int*)(BASE_FB_D+0x0) : *(int*)(BASE_FB_D+0x14));
  47 //    return (void*)(*(int*)0x7C090); 
  48 }
  49 
  50 long vid_get_viewport_height()
  51 {
  52     return ((mode_get()&MODE_MASK) == MODE_PLAY)?240:230;
  53 }
  54 
  55 char *camera_jpeg_count_str()
  56 {
  57     return (char*)0x10F28;
  58 }

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