forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help with ME and zlib

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
phobox



Joined: 24 Mar 2008
Posts: 140

PostPosted: Sat Aug 30, 2008 6:21 am    Post subject: Help with ME and zlib Reply with quote

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
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sat Aug 30, 2008 8:33 am    Post subject: Re: Help with ME and zlib Reply with quote

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
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
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