Search found 10 matches

by Tong
Thu Jan 29, 2009 12:42 pm
Forum: PSP Development
Topic: Investigation of the Unicode version of sceIoDread
Replies: 2
Views: 1372

Thanks for your reply. What does psplink do if you list a UTF8 filename on host? Although you might not be able to do it on Windows (you probably need Linux for that kinda trick as I make not effort to encode the filenames appropriately). That would at least narrow down to whether it is something in...
by Tong
Wed Jan 28, 2009 1:11 pm
Forum: PSP Development
Topic: Investigation of the Unicode version of sceIoDread
Replies: 2
Views: 1372

Investigation of the Unicode version of sceIoDread

I am working on a file browser that lists the files in the memory stick. I implement using sceIoDopen followed by sceIoDread. I hope to support showing filenames of different languages, including Chinese, Korean and some other western languages apart from English. Unfortunately, sceIoDread has serio...
by Tong
Fri Jul 06, 2007 12:38 pm
Forum: PSP Development
Topic: Browser a folder compressed in zip!!
Replies: 3
Views: 2316

The unzip library (which one do you use? I use the one created by Gilles Vollant) organizes folders and files in the form of a linear list instead of a tree list. Suppose I have a zip file containing the following folders and files: [+]My folder *Main.cpp *Tex.png [+]...
by Tong
Thu Jul 05, 2007 12:38 pm
Forum: PSP Development
Topic: Trying to get Started
Replies: 11
Views: 4521

The first thing you really need to do is to learn(or master if you can) the C programming language as most PSP programs are written in C. After that take the PSP programing tutorials at http://www.psp-programming.com/ , they will tell you how to set up the development environment and build simple ho...
by Tong
Fri Apr 27, 2007 3:18 pm
Forum: PSP Development
Topic: Calling for ideas about builing image thumbnails
Replies: 14
Views: 5632

noxa, do you know any similar libraries for PNG thumbnailing?
by Tong
Thu Apr 26, 2007 3:09 pm
Forum: PSP Development
Topic: Calling for ideas about builing image thumbnails
Replies: 14
Views: 5632

Here is a simple example for outing a 128x96 thumbnail. #include <stdio.h> #include <stdlib.h> #include <pspkernel.h> #include <pspdebug.h> #include <Epeg.h> PSP_MODULE_INFO&#40;"epeg", 0, 1, 1&#41;; #define printf pspDebugScreenPrintf int main&#40;&#41; &#123; pspDebug...
by Tong
Thu Apr 26, 2007 2:54 pm
Forum: PSP Development
Topic: Calling for ideas about builing image thumbnails
Replies: 14
Views: 5632

A big thanks to all who had give ideas to me especially noxa and rapso. I have spent a couple of days hacking into libepeg as recommended by noxa and I am now making use of it. Well, this library is really fantastic as noxa said, it can generate thumbnails at a terribly high speed! As there no libep...
by Tong
Thu Apr 26, 2007 2:33 pm
Forum: PSP Development
Topic: Calling for ideas about builing image thumbnails
Replies: 14
Views: 5632

for&#40;y = 0; y <ImgHeight; y++&#41; &#123; if &#40;y==StepY&#41;//if the row is the one we want &#123; png_read_row&#40;png_ptr, &#40;u8*&#41;tempLine, png_bytep_NULL&#41;; //read a row //select some pixels from the row Tinnus, you have made a big mistake! ...
by Tong
Fri Apr 20, 2007 11:53 pm
Forum: PSP Development
Topic: Calling for ideas about builing image thumbnails
Replies: 14
Views: 5632

I have just implemented method 2 using libpng to generate thumbnail images with sides 64px, and here is the codes. //do some preparations here... float SkipX=&#40;float&#41;ImgWidth/64, SkipY=&#40;float&#41;ImgHeight/64, TargetX=0, TargetY=0; int StepX=0, StepY=0, ThumbX=0, ThumbY=0;...
by Tong
Fri Apr 20, 2007 3:26 pm
Forum: PSP Development
Topic: Calling for ideas about builing image thumbnails
Replies: 14
Views: 5632

Calling for ideas about builing image thumbnails

Dear all, this is the first time for me to post a topic in this forum. I am currently working on a PSP photo viewer in which users can see the previews of their images (PNG and JPG) before they open them, just like the one in Sony's XMB. I propose the following algorithms to show the previews: 1.Rea...