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 

how to load image file of big size into psp via SDL?

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



Joined: 11 Jul 2008
Posts: 4

PostPosted: Fri Jul 11, 2008 6:01 pm    Post subject: how to load image file of big size into psp via SDL? Reply with quote

First of all, I am new in psp coding.

Second, what I am trying to do is to write a small program that can view jpg files stored in memory stick (my DC uses memory stick too). I want to view the photos i just take via the big big psp LCD screen instead of the small small one in my dc). The psp can only view image files stored in specific folder, and it is very slow when a big image, say 3000*2000 and 4MB, is presented.

I tried to learn SDL for my small program because of its simplicity. Owing to the limited ram size of psp, directly loading big image file will lead psp into a crash by using IMG_LoadJPG_RW().

So, is there any way to load just a part of the whole jpg file into SDL_Surface ? Then I can deal with the small part in psp.
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