JPG decoding on SMD?
Moderator: BigEvilCorporation
JPG decoding on SMD?
Just wondering, if anyone had tried to make JPG decoder for SMD? It probably can be useful for that type of games which shows picture for every level or couple of levels.
I know that there is at least two different JPG decoders for russian ZX Spectrum clones, both written in the beginning of the 2000s. One of them decoded test 17K JPG picture to 256x192, 8 colors per pixel + Floyd-Steinberg diffusion, just for 55 seconds. It is on Z80 @3.5 MHz + 128K RAM. Maybe SMD could do this faster, fast enough to be useful?
I know that there is at least two different JPG decoders for russian ZX Spectrum clones, both written in the beginning of the 2000s. One of them decoded test 17K JPG picture to 256x192, 8 colors per pixel + Floyd-Steinberg diffusion, just for 55 seconds. It is on Z80 @3.5 MHz + 128K RAM. Maybe SMD could do this faster, fast enough to be useful?
Re: JPG decoding on SMD?
Your probably better off using a graphics program to reduce the colors of the image and then convert it smd tile data. Then, just load the tiles and display it...Shiru wrote:Just wondering, if anyone had tried to make JPG decoder for SMD? It probably can be useful for that type of games which shows picture for every level or couple of levels.
I know that there is at least two different JPG decoders for russian ZX Spectrum clones, both written in the beginning of the 2000s. One of them decoded test 17K JPG picture to 256x192, 8 colors per pixel + Floyd-Steinberg diffusion, just for 55 seconds. It is on Z80 @3.5 MHz + 128K RAM. Maybe SMD could do this faster, fast enough to be useful?
-
- Very interested
- Posts: 256
- Joined: Tue Sep 11, 2007 9:10 pm
There is also one for the C64: http://www.ffd2.com/fridge/jpeg/
To get the best results you'd probably have to design your decoder from scratch with the Megadrive's capabilities in mind, so it would be a fair amount of work. But if you're really interested then go right ahead
You also have the possibility to try and modify an existing decoder, like tinyjpegdecoder or maybe if there are any for the classic Amigas or the old 68k Macs, but I don't know if that'd work out.
To get the best results you'd probably have to design your decoder from scratch with the Megadrive's capabilities in mind, so it would be a fair amount of work. But if you're really interested then go right ahead
You also have the possibility to try and modify an existing decoder, like tinyjpegdecoder or maybe if there are any for the classic Amigas or the old 68k Macs, but I don't know if that'd work out.
How can I run this C64 decoder? I haven't found anything resembling usual C64 files.
For now there is no real need in such decoder, so it just a theme for discussion - what exists, what possible, and if that can be useful. Of course, to get best results something must be designed for SMD from scratch, and I know how much work it will require (not speaking it must be in 68K assembly, which I'm absolutely not good at).
I know there are many JPG decoders for Amiga, but all I've found were at least for 68020 with 1 MB RAM.
For now there is no real need in such decoder, so it just a theme for discussion - what exists, what possible, and if that can be useful. Of course, to get best results something must be designed for SMD from scratch, and I know how much work it will require (not speaking it must be in 68K assembly, which I'm absolutely not good at).
I know there are many JPG decoders for Amiga, but all I've found were at least for 68020 with 1 MB RAM.
-
- Very interested
- Posts: 2984
- Joined: Fri Aug 17, 2007 9:33 pm
-
- Very interested
- Posts: 2984
- Joined: Fri Aug 17, 2007 9:33 pm
Jpeg really isn't useful for the MD alone. Even the fanciest tricks won't make it more than lousy graphics. Jpeg WOULD be useful on the 32X. It's got both the power and the graphics needed to make a JPG viewer worthwhile. That will be one of my sample apps once I get the CD code working - a picture viewer for the CD 32X that will handle most image formats.