JPG and PNG decoder
suicide at xited.de
Thu Jun 21 13:40:02 PDT 2012
it's not that hard to write a baseline jpeg encoder. it's not harder than
there are many tutorials and examples online.
Am 17.06.2012, 09:55 Uhr, schrieb cal <callumenator at gmail.com>:
> On Sunday, 17 June 2012 at 07:07:35 UTC, Philippe Sigaud wrote:
>> Still, I'm interested in writing a JPEG/PNG to disk from a
>> ubyte, or whatever.
> Do you mean that you want to encode a ubyte array to disk as JPEG/PNG?
> Encoding a JPEG would be a bit of work I think, the format's kind of a
> monster. PNG should be easier, depending on how good you want the
> compression to be. If you don't care too much about compression level,
> you simply zlib compress the data, write it out by image row/scanline,
> include appropriate header and chunk info, and you're done. I'll give a
> simple encoder a go if you think you could use it.
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/
More information about the Digitalmars-d-announce