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 

Image lib for JPG, PNG and BMP support?

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



Joined: 15 Jun 2008
Posts: 121

PostPosted: Sun Aug 10, 2008 1:47 am    Post subject: Image lib for JPG, PNG and BMP support? Reply with quote

Hi,
I'm working on a Image viewer, I've try to use SDL but it has a lot of problems, so I've decided to use another lib to bli images but I don't know other libraries!
I've think to use a library like the graphics.h ( that use sceGu ), but with that I cannot resize images, so what lib can I use?
Back to top
View user's profile Send private message
sauron_le_noir



Joined: 05 Jul 2008
Posts: 229

PostPosted: Sun Aug 10, 2008 3:37 am    Post subject: Reply with quote

try the tri library it's a very cool library
use svn to checkout here is the url to the site

http://trac2.assembla.com/openTRI
Back to top
View user's profile Send private message Send e-mail MSN Messenger
darkness



Joined: 15 Jun 2008
Posts: 121

PostPosted: Sun Aug 10, 2008 6:20 am    Post subject: Reply with quote

I'm using a win32 sdk and I've no subversion installed, can you post a link?
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sun Aug 10, 2008 6:56 am    Post subject: Reply with quote

darkness wrote:
I'm using a win32 sdk and I've no subversion installed, can you post a link?


http://tortoisesvn.net/downloads

There you go! :)
Back to top
View user's profile Send private message AIM Address
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Sun Aug 10, 2008 3:10 pm    Post subject: Reply with quote

Use the graphics.c & graphics.h from the LUAPlayer source code.
It uses the GU so it should be fast enough.

As for resizing, just Google for some resize code and resize the image yourself.

The Image->data structure points to the ARGB image.
The size of the ARGB data is Image->textureWidth * Image->textureHeight * sizeof(Color)
Back to top
View user's profile Send private message
jean



Joined: 05 Jan 2008
Posts: 489

PostPosted: Sun Aug 10, 2008 7:12 pm    Post subject: Reply with quote

There's no magic wand in graphics, expecially if you want it to be accelerated. So, use complex libraries when you really need it, and you know well what you're doing. To do a few blits use GU/GE headers and the ton of examples provided with pspsdk.
Back to top
View user's profile Send private message
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