[Ohrrpgce] SVN: teeemcee/11357 Allow jpg/jpeg as a screenshot format (gfx.screenshot_format setting)
teeemcee at gmail.com
Tue Oct 29 03:58:01 PDT 2019
On Tue, 29 Oct 2019 at 23:54, Ralph Versteegen <teeemcee at gmail.com> wrote:
> No fair, how come you recieved this svn commit email at least an hour ago,
> but I got it just now? It's pretty annoying that the emails are so delayed.
> Anyway, the reason that I added a jpeg encoder is that I've been
> investigating how to store graphics in compressed format inside .rgfx lumps
> (err... post Fufluns). Embedding .png and .jpg files inside .rgfx is
> certainly not to my liking. I've been doing a LOT of experiments with 24bit
> backdrops and reached the unavoidable conclusion that JPEG at quality 90-95
> blows everything else out of the water for lossy compression of backdrops,
> unless you want to want to use something better like FLIF or BPG or
> HEIC/HEIF or WEBP which would require a huge (and slow!) library to
> decode/encode. And JPEG file format is actually pretty simple, unlike e.g.
> PNG. So there's no reasonable alternative to embedding JPEGs inside .rgfx
> for that use case.
(Well, placing the .jpg as a separate lump inside the .rpg is an
alternative and probably a better idea, but I really meant embedding
png/jpg inside an .rpg file one way or another.)
> However, JPEG doesn't support an alpha channel, so that's one problem
> (it'll need to be stored separately). And it's not suitable for tilesets or
> sprites (it's uncompetitive for compression of repetitive images anyway).
> On the other hand it looks like there's no reason to embed PNG; it's not
> hard to beat it with something much simpler because it's a complex file
> format around a pretty simplistic compression method.
> On Tue, 29 Oct 2019 at 22:44, James Paige <Bob at hamsterrepublic.com> wrote:
>> Neat! :)
>> On Tue, Oct 29, 2019, 5:24 AM <subversion at hamsterrepublic.com> wrote:
>>> 2019-10-29 02:24:41 -0700 (Tue, 29 Oct 2019)
>>> Allow jpg/jpeg as a screenshot format (gfx.screenshot_format setting)
>>> U wip/allmodex.bas
>>> Ohrrpgce mailing list
>>> ohrrpgce at lists.motherhamster.org
>> Ohrrpgce mailing list
>> ohrrpgce at lists.motherhamster.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ohrrpgce