root/platform/ixus60_sd600/sub/100d/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     // ( found on aA08x_crw)
   6     return (char*)0x105B8AC0;   // same as sd630, found at 0xFF8CA0AC
   7 }
   8 
   9 /**
  10  * OSD screen
  11  */
  12 void *vid_get_bitmap_fb()
  13 {
  14     // (found on aBmpddev_c)
  15     return (void*)0x103C79A0;   // same as sd630, found at 0xFF935518
  16 }
  17 
  18 void *vid_get_viewport_live_fb() // from ixus65
  19 {
  20        void **fb=(void **)0x5284; // @ 0xff8a6d24 for 100d
  21        unsigned char buff = *((unsigned char*)0x5294); // @ 0xff8a6d20 for 100d
  22        if (buff == 0) {
  23            buff = 2;
  24        }
  25        else {
  26            buff--;
  27        }
  28        return fb[buff];
  29 }
  30 
  31 /**
  32  * IMG viewport in 'rec' mode
  33  */
  34 void *vid_get_viewport_fb()
  35 {
  36     return (void*)0x105f17a0;   // @ 0xffac8ee8 for 100d
  37 }
  38 
  39 /**
  40  * IMG viewport in 'play' mode
  41  */
  42 void *vid_get_viewport_fb_d()
  43 {
  44     return (void*)(*(int*)0x6db8c); // @ 0xff938920 for 100d
  45 }
  46 
  47 long vid_get_viewport_height()
  48 {
  49     return 240;
  50 }
  51 
  52 char *camera_jpeg_count_str()
  53 {
  54     return (char*)0x79158; // @ 0xffa5f3f4 for 100d
  55 }
  56 
  57 void *vid_get_bitmap_active_buffer()
  58 {
  59     return (void*)(*(int*)0x5ea0); // in sub_ff935598 DisplayPhysicalScreenWithYUVPalette for 100d
  60 }
  61 
  62 void *vid_get_bitmap_active_palette() {
  63     return (void *)0x6d4a8; // found also in sub_ff935598 for 100d
  64 }
  65 
  66 int vid_get_palette_type() { return 1; }
  67 int vid_get_palette_size() { return 16*4; }
  68 
  69 // note: buffers change dimensions when TV-out is active or in movie mode, these may not be handled
  70 // stitch mode is not supported
  71 int vid_get_viewport_width_proper()  { return ((mode_get()&MODE_MASK) == MODE_PLAY)?720:*(int*)0x3ced0;} //sub_ff8a9594 for 100d
  72 int vid_get_viewport_height_proper() { return ((mode_get()&MODE_MASK) == MODE_PLAY)?240:*(int*)(0x3ced0+4);} //"VRAM DataSize H : %04ld, V : %04ld"

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