 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
phobox
Joined: 24 Mar 2008 Posts: 140
|
Posted: Sat Aug 30, 2008 6:21 am Post subject: Help with ME and zlib |
|
|
I'm trying to call zlib functions with media engine.
I'm using the prx by JF. i created a function to compress a buffer. if i run it on SC it works good, when i "load" it with ME it doesn't work.
here you can find the surce code of the app, the src of the prx is the same of displaytest of JF.
http://www.megaupload.com/?d=9XFOO5S0
ps: JF i found into your src of snes9x a folder called zlib. is that zlib converted to be used with ME? |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Sat Aug 30, 2008 8:33 am Post subject: Re: Help with ME and zlib |
|
|
| phobox wrote: | I'm trying to call zlib functions with media engine.
I'm using the prx by JF. i created a function to compress a buffer. if i run it on SC it works good, when i "load" it with ME it doesn't work.
here you can find the surce code of the app, the src of the prx is the same of displaytest of JF.
http://www.megaupload.com/?d=9XFOO5S0
ps: JF i found into your src of snes9x a folder called zlib. is that zlib converted to be used with ME? |
No. The ME, in general, can't be used for anything that calls sce functions, including things like IO or allocating memory or whatnot. You should be able to use the ME to decompress things as long as it goes from data already loaded into memory to an already allocated output buffer.
Oh, also don't forget about the caches. You need to flush the SC dcache covering the compressed dat, invalidate the ME dcache covering the compressed data, decompress, flush the ME dcache covering the output buffer, then invalidate the SC dcache covering the output buffer. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|