root/platform/s3is/sub/100a/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 
   3 void *hook_raw_fptr()
   4 {
   5     return (void*)0x345B8;
   6 }
   7 
   8 void *hook_raw_ret_addr()
   9 {
  10     return (void*)0xFF8D4788;
  11 }
  12 
  13 char *hook_raw_image_addr()
  14 {
  15     return (char*)(0x105B8AC0);
  16 }
  17 
  18 void *vid_get_viewport_live_fb()
  19 {
  20 //    return (void*)0;
  21     void **fb=(void **)0x54e8;
  22     unsigned char buff = *((unsigned char*)0x54f8);
  23     if (buff == 0) {
  24         buff = 2;
  25     }
  26     else {
  27         buff--;
  28     }
  29     return fb[buff];
  30 }
  31 
  32 void *vid_get_bitmap_fb()
  33 {
  34     return (void*)0x103C79A0;
  35 }
  36 
  37 void *vid_get_viewport_fb()
  38 {
  39     return (void*)0x105f17a0; //0x105599A0;
  40 }
  41 
  42 void *vid_get_viewport_fb_d()
  43 {
  44     return (void*)(*(int*)0x60134);
  45 }
  46 
  47 long vid_get_viewport_height()
  48 {
  49     return 240;
  50 }
  51 char *camera_jpeg_count_str()
  52 {
  53     return (char*)0x6BC28;
  54 }

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