Changeset 1860


Ignore:
Timestamp:
05/18/12 23:25:14 (12 months ago)
Author:
philmoz
Message:

Update to IXUS65 from srsa_4c
http://chdk.setepontos.com/index.php?topic=650.msg85583#msg85583

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/release-1_0/platform/ixus65_sd630/sub/100a/lib.c

    r1637 r1860  
    1919} 
    2020 
    21 /** 
    22  * TODO: ?????? 
    23  */ 
    24 void *vid_get_viewport_live_fb() 
     21void *vid_get_viewport_live_fb() // from a420 
    2522{ 
    26     return (void*)0; 
     23       void **fb=(void **)0x52c8; // ixus65, @ 0xff8a7b94 
     24       unsigned char buff = *((unsigned char*)0x52d8); 
     25       if (buff == 0) { 
     26           buff = 2; 
     27       } 
     28       else { 
     29           buff--; 
     30       } 
     31       return fb[buff]; 
    2732} 
    2833 
     
    3237void *vid_get_viewport_fb() 
    3338{ 
    34     return (void*)0x10559570; 
     39    return (void*)0x105f17a0; //ixus65, the first of the 3 buffers 
    3540} 
    3641 
     
    4045void *vid_get_viewport_fb_d() 
    4146{ 
    42     return (void*)0x104AFCA0; 
    43     //return (void*)(*(int*)); 
     47    //return (void*)0x104AFCA0; 
     48    int x=(*(int*)0x6dd4c); 
     49    return (void*) (x ? x : 0x105599a0) ; //ixus65, still incorrect when a stopped movie is displayed 
    4450} 
    4551 
     
    6167char *camera_jpeg_count_str() 
    6268{ 
    63     //TODO: fix this!! 
    64     return (char*)0x10B80; 
     69    return (char*)0x79358; 
    6570} 
     71 
     72void *vid_get_bitmap_active_buffer() 
     73{ 
     74    return (void*)(*(int*)0x5ee4); // sub_ff93606c DisplayPhysicalScreenWithYUVPalette 
     75} 
     76 
     77void *vid_get_bitmap_active_palette() { 
     78    return (void *)0x6d6b0; // found also in sub_ff93606c 
     79} 
     80 
     81int vid_get_palette_type() { return 1; } 
     82int vid_get_palette_size() { return 16*4; } 
     83 
     84int vid_get_viewport_width_proper()  { return ((mode_get()&MODE_MASK) == MODE_PLAY)?720:*(int*)0x3d0e8;} //sub_ff8aa408 
     85int vid_get_viewport_height_proper() { return ((mode_get()&MODE_MASK) == MODE_PLAY)?240:*(int*)0x3d0ec;} //"VRAM DataSize H : %04ld, V : %04ld" 
     86 
    6687int movie_status = 0; 
    6788 
Note: See TracChangeset for help on using the changeset viewer.