On Thursday, 11 August 2022 at 11:06:43 UTC, wjoe wrote:
I imagined you could allocate internal buffers for
encoding/decoding on the stack but your reply suggests
otherwise.
Yes.
For example, the QOI-10b codec needs an pallete of 256 16-bit
RGBA, that's 2 kb. Is that portable? There is prob
On Tuesday, 9 August 2022 at 22:02:37 UTC, Guillaume Piolat wrote:
On Monday, 8 August 2022 at 16:07:54 UTC, wjoe wrote:
your lib would not just be @nogc but @no_allocation.
All image decoders in gamut need to malloc more than just for
pixel data.
Even STB allocates for format conversion, zli
On Monday, 8 August 2022 at 16:07:54 UTC, wjoe wrote:
your lib would not just be @nogc but @no_allocation.
All image decoders in gamut need to malloc more than just for
pixel data.
Even STB allocates for format conversion, zlib buffers, 16-bit
<-> 8-bit, etc. it's not just pixel data.
Single
On Friday, 29 July 2022 at 10:59:02 UTC, Guillaume Piolat wrote:
Ask for what you want...
Since it's super easy to calculate the amount of memory required
to hold the decompressed data... If you'd add a buffer parameter
(akin to std.stdio.File.rawRead/Write), a slice to allocated
memory tha
On Friday, 29 July 2022 at 14:28:55 UTC, ryuukk_ wrote:
One suggestion, have a little struct with function pointers for
malloc/free/realloc, so that we can plug our own allocator
Hello, thanks for the heads-up! A few question about your use
case (I believe you are using WebASM), to better un
That's a very cool library, i might ditch stb_image for yours,
thanks for sharing!
I went ahead and added it to the list of libraries that supports
QOI file format here: https://github.com/phoboslab/qoi/pull/235
One suggestion, have a little struct with function pointers for
malloc/free/real
Using D and images I ended up with a problem.
The problem was that parts of my code wanted to decode just
specific image metadata, other just pixels. Others were
interested in 10-bit, and others in this or that format. Finally,
some were concerned about aligned layout and others just wanted
"