PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

JPEG or PNG Library for Palm

Hi folks,
I need your help.

Ok that´s what I need to do:
Load and save jpegs (or png) from / on memorycard.
(PalmOS 5.0)

What I need is a library (favouring static) that can do what I want.

I have already downloaded JpegLibPalm030912 - Library. But I was not able to compile it.
jpeglib.h and jpegerror.h is missing. I didn´t found them even with google. Can somebody tell me where to download this files?

And I get a lots of error while compiling the arm code in JpegLibPalm.
Code:

C/C++ Error 10162
unknown assembler instruction mnemonic
An illegal instruction name was reported.
Fix
Correct the mnemonic in the assembler instruction.


Actually I am looking for something like IMGDECMP.lib.


Please can someone give me a step by step description how to compile and use a library that can load jpeg or png ... or can tell me how to compile JpegLibPalm030912. There comes a good example with JpegLibPalm030912 - so I only need to know how to compile


Thanks a lot!
Oh I made it. Just missunderstood the docs.

But I still have a problem saving an image.

Code:

/* I have 3 vars which contains the image data
BitmapType, BitmapTypeV3 and an UIn16
*/
// I try to put the data to an UInt8, but that doesn´t seem to work..

img = (UInt8 *)BmpGetBits((BitmapType *)m_Bitmap);
JpegLibCreateImageDescrPtr(m_jpgRefLib, ℑ, 100, 100, 3, img);

JpegLibCreateDataVFS(m_jpgRefLib, &data;, fileH);
err = JpegLibWrite(m_jpgRefLib, ℑ, NULL, &data;);

// err is always 32805


Do you know what I am doing wrong
Thanks
Just FYI, we're mostly a PocketPC related forum, so don't be discouraged if no one's able to help you out here. I know there are a couple of people who have ported to Palm though.