root/platform/ixus65_sd630/sub/100a/lib.c

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

DEFINITIONS

This source file includes following definitions.
  1. hook_raw_image_addr
  2. vid_get_bitmap_fb
  3. vid_get_viewport_live_fb
  4. vid_get_viewport_fb
  5. vid_get_viewport_fb_d
  6. vid_get_viewport_height
  7. camera_jpeg_count_str
  8. vid_get_bitmap_active_buffer
  9. vid_get_bitmap_active_palette
  10. vid_get_palette_type
  11. vid_get_palette_size
  12. vid_get_viewport_width_proper
  13. vid_get_viewport_height_proper

   1 #include "platform.h"
   2 
   3 char *hook_raw_image_addr()
   4 {
   5     return (char*)0x105B8AC0;
   6 }
   7 
   8 /**
   9  * OSD screen
  10  */
  11 void *vid_get_bitmap_fb()
  12 {
  13     return (void*)0x103C79A0;
  14 }
  15 
  16 void *vid_get_viewport_live_fb() // from a420
  17 {
  18        void **fb=(void **)0x52c8; // ixus65, @ 0xff8a7b94
  19        unsigned char buff = *((unsigned char*)0x52d8);
  20        if (buff == 0) {
  21            buff = 2;
  22        }
  23        else {
  24            buff--;
  25        }
  26        return fb[buff];
  27 }
  28 
  29 /**
  30  * IMG viewport in 'rec' mode
  31  */
  32 void *vid_get_viewport_fb()
  33 {
  34     return (void*)0x105f17a0; //ixus65, the first of the 3 buffers
  35 }
  36 
  37 /**
  38  * IMG viewport in 'play' mode
  39  */
  40 void *vid_get_viewport_fb_d()
  41 {
  42     //return (void*)0x104AFCA0;
  43     int x=(*(int*)0x6dd4c);
  44     return (void*) (x ? x : 0x105599a0) ; //ixus65, still incorrect when a stopped movie is displayed
  45 }
  46 
  47 long vid_get_viewport_height()
  48 {
  49     return 240;
  50 }
  51 
  52 char *camera_jpeg_count_str()
  53 {
  54     return (char*)0x79358;
  55 }
  56 
  57 void *vid_get_bitmap_active_buffer()
  58 {
  59     return (void*)(*(int*)0x5ee4); // sub_ff93606c DisplayPhysicalScreenWithYUVPalette
  60 }
  61 
  62 void *vid_get_bitmap_active_palette() {
  63     return (void *)0x6d6b0; // found also in sub_ff93606c
  64 }
  65 
  66 int vid_get_palette_type() { return 1; }
  67 int vid_get_palette_size() { return 16*4; }
  68 
  69 int vid_get_viewport_width_proper()  { return ((mode_get()&MODE_MASK) == MODE_PLAY)?720:*(int*)0x3d0e8;} //sub_ff8aa408
  70 int vid_get_viewport_height_proper() { return ((mode_get()&MODE_MASK) == MODE_PLAY)?240:*(int*)0x3d0ec;} //"VRAM DataSize H : %04ld, V : %04ld"
  71 
  72 int movie_status = 0;

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