I'll make some effort to see what are likely buffers on the sx60. To speed testing things up, it might be useful to have the ability to change the address returned by vid_get_viewport_fb_d while viewing live view. Suggestions?
static int luaCB_set_foo( lua_State* L ){ core_set_foo(luaL_checknumber( L, 1 )); return 0;}
FUNC(set_foo)
The possible playback display buffers I have found are0x5e2080000x5e6080000x5ea080000x5ee08000
0xfccf4050: 0x5f078000 0x00000001 0x00000000 0x5ec780000xfccf4060: 0x00000001 0x00000000 0x5e878000 0x000000010xfccf4070: 0x00000000 0x5e478000 0x00000001 0x000000000xfccf4080: 0x5cc78000 0x00000001 0x00000000 0x00000000
void *vid_get_viewport_fb_d() { extern void *current_fb_d; return current_fb_d; }
0x0000fa60: 0x41441000 0x00000000 0x00e600b2 0x003e48180x0000fa70: 0xfc0f8661 0x00e800b4 0x00000000 0x000000010x0000fa80: 0x00000001 0x00000000 0x00000000 0x000000010x0000fa90: 0x00000000 0xffffffff 0x1f078000 0x5f0780000x0000faa0: 0x00000000 0x00000000 0x00000000 0x00e400b00x0000fab0: 0xfc1b00af 0x00000000 0xfc1b00af 0x000000000x0000fac0: 0x00e000ac 0x00e200ae 0x00000000 0x000000000x0000fad0: 0x5f078000 0x00000001 0x00000001 0x5ec78000
Please someone refresh my memory, if I find an image at say 0x1441000 using binview on a memdump, how does that translate to a memory address? uh...I think i know, prepend 0x4 so its0x41441000 ...that's all over my disassembly.
con> !r=con:execwait[[t0=get_tick_count() r={} for i=1,14 do table.insert(r,{get_tick_count()-t0,peek(0xfa60)}) sleep(10) end return r]] for i,v in ipairs(r) do printf("%04d 0x%08x\n",v[1],v[2]) end0000 0x414410000010 0x414410000020 0x414410000030 0x414410000040 0x414410000050 0x414410000060 0x4153e2000070 0x4153e2000080 0x4153e2000090 0x4153e2000100 0x4153e2000110 0x4153e2000120 0x4153e2000130 0x4153e200
I also see using rmem, the bitmap-buffer address 0x41441000 and its alternate 0x4153e200 (I think these are the same as g7x), appearing at 0xfa60 (see post above).
0x40000000 or0x01441000=0x41441000
That'll teach me to post quickly on break
con 12> rmem -i32 0xcb8c 0x0000cb8c 40x0000cb8c: 0x416b9d00 <---opacitycon 12> rmem -i32 0xfa600x0000fa60 40x0000fa60: 0x4153e200 <---bitmapcon 12> rmem -i32 0xfa600x0000fa60 40x0000fa60: 0x41441000 <---bitmapcon 12> rmem -i32 0xcb8c 0x0000cb8c 40x0000cb8c: 0x4163b400 <----opacitycon 12>
Started by mbaiter General Discussion and Assistance
Started by Rastislav Kišš Script Writing
Started by Yimiblu General Discussion and Assistance
Started by 62ndidiot « 1 2 3 » General Discussion and Assistance
Started by reyalp DryOS Development