PocketMatrix forums

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

jpg loader

Hi,

I'm currently using 16bit uncompressed tga image files in my games using Jacco's loader from EasyCE.

I now need to load and have the same pixel control but with jpg files. Can anyone point me in the right direction, or even offer code snippets?

Thanks in advance
Bad
There are tons of libraries out there (google 'jpeg library) - here's just one...

http://www.ijg.org/files/
Try to use VOImage from Virtual Office Systems:

http://www.pocketpcdn.com/libraries/index.html#voimage

It's very useful and free. It working using internal IMGDECMP.DLL so code is very small. I used it for loading .jpg and .gif images.

Best regards,
AndreyT.
I think you should use a diff. format because of the late coming JPG royalties for encoding and decoding the formats.

DON'T kill me for that... I know that only the library loader has to pay but I am an advocate of the word free... that means software and widely used technology.

I will protect intelectual property though highly recomend FREE for things that are not meant to generate revenue.
I don't know what types of images you're dealing with (ie number of unique colors per image), but if you add support for 8 bit palletized TGA, as well as TGA compression (which is just a simple RLE compression) you can save a lot of space with a loss-less, royalty-free and fast-loading format. You can also just use zLib (gZip) to compress/decompress your existing TGAs.

Dan East