root/platform/sx1/sub/200h/lib.c

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

DEFINITIONS

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

   1 #include "platform.h"
   2 
   3 char *hook_raw_image_addr()
   4 {
   5         return (char*) (*(int*)(0x574C+0x18) ? 0x435627D8 : 0x41B724C0);
   6 }
   7 
   8 void *vid_get_viewport_live_fb()
   9 {
  10     void **fb=(void **)0x2300;
  11     unsigned char buff = *((unsigned char*)0x2130); // sub_FF839FC8
  12     if (buff == 0) buff = 2;  else buff--;    
  13     return fb[buff];
  14 }
  15 
  16 void *vid_get_bitmap_fb()
  17 {
  18         return (void*)0x40471000; 
  19 }
  20 
  21 void *vid_get_viewport_fb()
  22 {
  23         return (void*)0x46443400;
  24 }
  25 
  26 void *vid_get_viewport_fb_d()
  27 {
  28         return (void*)(*(int*)(0x53C8+0x58)); 
  29 }
  30 
  31 // default is same as bitmap
  32 /*
  33 int vid_get_viewport_width()
  34 {
  35         return 480;
  36 }
  37 */
  38 long vid_get_viewport_height()
  39 {
  40         return 270;
  41 }
  42 
  43 char *camera_jpeg_count_str()
  44 {
  45         return (char*)0x5CED4;
  46 }

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