"Chris Olson" <[EMAIL PROTECTED]> a �crit dans le message deOk, I can code around that issue (use the Palm libs when available, they seem faster).
news:[EMAIL PROTECTED]
I'm still looking ito exactly what they mean by all of this :-) ...it's not the most clearly worded of statements, especially as the libraries themselves are not actually mentioned in the doumentation at all...
... I have access to both pieces of hardware and will report !
I've the FotoFinish sample on a Zire 71 with the lib prcs. FotoFinish is able to load the library but is not able to access the PhotoApp database.
Hmm, I guess I assumed the Palm Library would know enough to do this on it's own. I'm going to look at the FotoFinish source again to see how they handle it, they may do the conversion with the callback, hold on......but right now I havea bit of a problem. If anyone can help with this one...
I'm trying to use the libs to display a (roughly) 320x320 jpeg on a 16 bit display. Here is the function I'm using:
The symptom is that the colors look like the palette is messed up. The screen is set up in 16 bit mode as well. Anybody see anything I'm missing?
PS. The freeware jpeglib works fine... I must be missing something...
I did not look in detail into your code but just in case you don't know, here are a few hints:
- Palm use RGB565 for it's 16 bit color. Most JPEG library convert to 24
bits RGB. If this is your case, tou must convert your data from 24 bits RGB
to RGB565. It is done by masking and shifting. 5bits for R, 6 bits for G and
5 bits for B.
... hmm, interesting. I think I might have a clue what is going on now. It looks like some assumptions are occuring in the library about the layout of the bits in the window, experiment in progress...
Okay, I have it figured out. You have to create the window in native format. If you don't the bytes get swapped into the wrong order and the display is messed up. I was creating the bitmap, then creating a window from that, turns out you need to create an offscreen window and go from there. Who knew?
If I begged and pleaded, could you send me the libraries? Not is source form, but in compiled form as I'm using Codewarrior 8 and the source is for 9 (I think the object format is compatible...)The library I am using (jcpalm) can convert directly to RGB565. It is avaliable from the eyemodule web site in the developer section. www.eyemodule.com It can be used freely as long as you acknowledge the copyright inside your own copyright. It is the case for all library made from the code from the IJG (Independant JPEG Group). See the readme.txt with the library. (By the way, if you open the about box of MSN Messenger, you will see the same acknoledgment of the IJG)
Hope this helps
Chris
PS. My code will only rin on OS5 devices anyway...
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
