JPEG support

Moderator: Moderator

Post Reply
Message
Author
Castler
Thalore
Posts: 153
Joined: Mon Mar 25, 2013 10:09 pm

JPEG support

#1 Post 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.
Qi Daozei (QDZ) - an Oriental-themed fantasy game for T-Engine. ToME Tips - auto-generated spoilers for ToME.

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: JPEG support

#2 Post 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
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Castler
Thalore
Posts: 153
Joined: Mon Mar 25, 2013 10:09 pm

Re: JPEG support

#3 Post 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.
Qi Daozei (QDZ) - an Oriental-themed fantasy game for T-Engine. ToME Tips - auto-generated spoilers for ToME.

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: JPEG support

#4 Post by darkgod »

It may well be the case :) Still I'd rather just keep png :)
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Post Reply