Page 1 of 1

JPEG support

Posted: Fri Nov 22, 2013 5:11 pm
by Castler
It looks like T-Engine only supports PNG (at least on Windows). Could JPEG support be added?

I found a very nice, absolutely huge piece of Chinese artwork that I wanted to show slowly scrolling across the background of the boot module's main menu, but a PNG version is simply too big. This is definitely just a wish list item (even a JPEG version may be too big, and there are always other things I can do for a background), but still, it'd be nice to have.

If JPEG support is added, then converting ToME's own backgrounds to JPEG should reduce the download size by a megabyte or two, for whatever that's worth.

Re: JPEG support

Posted: Fri Nov 22, 2013 5:22 pm
by darkgod
JPEG is a proprietary format sorry :)

As for what you wish to do, dont ;)
GPUs have a maximum texture size and loading something much bigger than the screen is bound to fail on some sucky cards.
Best way IMO to handle is to split it in reasonable chunks (512x512 ? maybe 1024x1024) and display them side by side

Re: JPEG support

Posted: Sat Nov 23, 2013 3:55 am
by Castler
Interesting. I didn't realize that there were concerns with JPEG.

Are there still issues with it? I tried looking around online, and it looks like all of the relevant patents expired a few years ago.

Thanks for the advice on splitting up the image. I'm new to GPU programming.

Re: JPEG support

Posted: Sat Nov 23, 2013 1:52 pm
by darkgod
It may well be the case :) Still I'd rather just keep png :)