Dirk Farin

Results 455 comments of Dirk Farin

No, libheif does not support modifying existing files yet. They can be read or created from scratch, but not modified.

Why would that be useful? It will make the encoding much slower.

> are there any alternative solutions to address the issue of high CPU usage? Not much, actually. Encoding to HEIC/AVIF is simply much more computation intensive than JPEG. Only hardware...

Does this only happen for a specific input file? If yes, please attach the file so that we can reproduce the issue.

It seems that the error is in your code (is that C# ?). You are passing an uninitialized `imageHandle` pointer as second parameter. However, this has to point to a...

Or maybe have a look here: https://github.com/0xC0000054/libheif-sharp/blob/7f45f0aab812fbdc5d691adcd28a3ecc7db859c0/src/HeifContext.cs#L936

There is no need to memcpy the decoded output into an heif_image. However, if we want to avoid this, the decoder library has to support a way to decode into...

> > However, if we want to avoid this, the decoder library has to support a way to decode into externally provided memory, or it has to output the memory...

Looks good to me. Let me know whether I should merge this now or wait until you have added the missing parts.