root/platform/g7/sub/100g/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. JogDial_CW
  10. JogDial_CCW
  11. review_fullscreen_mode
  12. camera_jpeg_count_str

   1 #include "platform.h"
   2 #include "lolevel.h"
   3 
   4 void *hook_raw_fptr()
   5 {
   6     return (void*)0x36D18;
   7 }
   8 
   9 void *hook_raw_ret_addr()
  10 {
  11     return (void*)0xFF8ED708;
  12 }
  13 
  14 char *hook_raw_image_addr()
  15 {
  16  return (char*) (*(int*)0x6E9C ? 0x11BE3A80 : 0x1082C520);
  17 }
  18 
  19 void *vid_get_viewport_live_fb()
  20 {
  21     return (void*)0;
  22 }
  23 
  24 void *vid_get_bitmap_fb()
  25 {
  26     return (void*)(0x10361000);  
  27 }
  28 
  29 void *vid_get_viewport_fb()
  30 {
  31     return (void*)0x1065B130; //0x105C3330;
  32 }
  33 
  34 void *vid_get_viewport_fb_d()
  35 {
  36     return (void*)(*(int*)0x74FB4);
  37 }
  38 
  39 long vid_get_viewport_height()
  40 {
  41     return 240;
  42 }
  43 
  44 void JogDial_CW(void){
  45   (*(short*)0x106EE)++;
  46   *(int*)0x106F4=0x32;
  47   _GiveSemaphore(*(int*)0x106E4);
  48 }
  49 
  50 void JogDial_CCW(void){
  51   (*(short*)0x106EE)--;
  52   *(int*)0x106F4=0x32;
  53   _GiveSemaphore(*(int*)0x106E4);
  54 }
  55 
  56 int review_fullscreen_mode(){
  57  char r;
  58  get_parameter_data(53, &r, 1);
  59  return  r==0;
  60 }
  61 char *camera_jpeg_count_str()
  62 {
  63     return (char*)0x82F88;
  64 }

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