libde265 icon indicating copy to clipboard operation
libde265 copied to clipboard

Any plan to support Main 4:4:4 16 bits

Open dbtsai opened this issue 7 years ago • 4 comments

As Apple is pushing HEIF as a new image format which can potentially replace JPEG, the photographers will be interested in using 16bits h265 profile to replace TIFF with HEIF as a container. I wonder if there is a plan to support Main 4:4:4 16 in the future.

Thanks.

dbtsai avatar Feb 13 '18 22:02 dbtsai

In case you did not see this yet: we have a library for reading/writing HEIF too: https://github.com/strukturag/libheif It uses libde265 for decoding, though.

libde265 has support for up to 14 bits. 16 bit precision needs different internal data types because of the larger intermediate value ranges. Since there is no 16 bit video or HEIF image content available to us yet, we skipped support for it until such sequences are available.

The Apple HEIF images are only 8 bits, as far as I have observed. If you have images with higher bit depths, I would love to get some of them to add support in libHEIF.

farindk avatar Feb 14 '18 17:02 farindk

@farindk Thanks. One question, I know ImageMagick now supports reading HEIF via implementing it HEIF format parser and using libde265 for decoding. Do you have a plan to integrate libheif into ImageMagick to 1) simplify their code and 2) enable the write ability? I believe this will make the adoption of libheif more. Thanks.

dbtsai avatar Feb 14 '18 23:02 dbtsai

Just added an ImageMagick writer/reader based on libheif. See here: https://github.com/ImageMagick/ImageMagick/pull/1099

farindk avatar Apr 17 '18 15:04 farindk

Thanks! This is great!

dbtsai avatar Apr 17 '18 17:04 dbtsai