Ignore:
Timestamp:
03/05/12 02:23:25 (16 months ago)
Author:
reyalp
Message:

live view palette and bitmap functions for ixus100_sd780, untested

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/reyalp-ptp-live/platform/ixus100_sd780/sub/100c/lib.c

    r1527 r1710  
    8484    return (char *)0x33110; 
    8585} 
     86// PTP display stuff - untested 
     87int vid_get_palette_type() { return 3; } 
     88int vid_get_palette_size() { return 256*4; } // sub_FF8C99C8, 0x400 
     89 
     90void *vid_get_bitmap_active_palette() { 
     91    return (void *)*(unsigned int*)(0x4CB8+0x28);  // sub_FF8C99C8, via sub_FF996CB4 two refs to "Palette Class." 
     92} 
     93void *vid_get_bitmap_active_buffer() 
     94{ 
     95    return (void*)(*(int*)(0x4cb8+0x14)); //"Add: %p Width : %ld Hight : %ld", sub_FF8C9A74 
     96} 
     97 
     98// not verified 
     99// reyalp note - sub_FF8C9A74 indicates could be 960x270 
     100int vid_get_viewport_max_height() { return 240; } 
     101 
     102// commented for now, protocol changes needed to handle correctly 
     103#if 0 
     104int vid_get_viewport_width_proper() {  
     105    return ((mode_get()&MODE_MASK) == MODE_PLAY)?720:*(int*)0x43bc; // GetVRAMHPixelSize 
     106} 
     107int vid_get_viewport_height_proper() { 
     108    return ((mode_get()&MODE_MASK) == MODE_PLAY)?270:*(int*)(0x43bc+4); // GetVRAMVPixelSize 
     109} 
     110#endif 
     111 
Note: See TracChangeset for help on using the changeset viewer.