source: branches/reyalp-ptp-live/platform/a720/sub/100c/lib.c @ 1703

Revision 1703, 1.1 KB checked in by msl, 16 months ago (diff)

PTP display stuff

  • author: rudi

+ added GetPaletteFromPhysicalScreen? & DisplayPhysicalScreenWithYUVPalette for A590 101b and A720 100c

  • Property svn:eol-style set to native
Line 
1#include "platform.h"
2
3void *hook_raw_fptr()
4{
5    return (void*)0;
6}
7
8void *hook_raw_ret_addr()
9{
10    return (void*)0;
11}
12
13char *hook_raw_image_addr()
14{
15    return (char*)0x10F6C860;
16}
17
18long hook_raw_size()
19{
20    return 0x9DCCE0;
21}
22
23void *vid_get_viewport_live_fb()
24{
25//    return (void*)0;//0x10670ee0;
26    void **fb=(void **)0x21D0;
27    unsigned char buff = *((unsigned char*)0x2084);
28    if (buff == 0) {
29        buff = 2;
30    }
31    else {
32        buff--;
33    }
34    return fb[buff];
35}
36
37void *vid_get_bitmap_fb()       
38{
39    return (void*)0x10361000;
40}
41
42void *vid_get_viewport_fb()
43{
44    return (void*)0x1065A4D0; // 0x107D5FD0
45}
46
47void *vid_get_viewport_fb_d()
48{
49    return (void*)(*(int*)0x540C);  //5410
50}
51
52long vid_get_viewport_height()
53{
54    return 240;
55}
56char *camera_jpeg_count_str()
57{
58    return (char*)0x580CC;
59}
60
61// PTP display stuff
62int vid_get_palette_type() { return 1; }
63int vid_get_palette_size() { return 16*4; }
64
65void *vid_get_bitmap_active_palette() {
66    return (void *)0x4183C; // GetPaletteFromPhysicalScreen
67}
68
69void *vid_get_bitmap_active_buffer()
70{
71    return (void*)(*(int*)0x93A0); // DisplayPhysicalScreenWithYUVPalette
72}
Note: See TracBrowser for help on using the repository browser.