Open palemieux opened 1 year ago
JasPer does not officially support HEIC at present. I added some partial support for HEIC for experimentation purposes, but it is disabled by default (via the CMake option JAS_ENABLE_HEIC_CODEC). The HEIC support in JasPer is not native. So, whether the HEIC support in JasPer can handle J2K would depend on the HEIC library that JasPer uses for this support. If the HEIC library is sufficiently flexible, this might be possible, but I reallly don't know. I am not familiar with the technical details of HEIF/HEIC. So, it would not be feasible for me to add native support for this format to JasPer though.
I don't know if it is necessary to add jpeg2000 to heif. No decoders. Nothing is known about jpegxs in heif.
heifenc_avx.exe image.jpg --verbose --jpeg2000 -L -q 100 -e openjpeg --no-alpha --matrix_coefficients=0 --full_range_flag=1 -o image3.heif
heifenc_avx.exe image.jpg --verbose --htj2k -L -q 100 -e openjph --no-alpha --matrix_coefficients=0 --full_range_flag=1 -o image4.heif
It looks like Jasper supports HEIC,
How difficult would be it be to add support for J2K in HEIF, which is specified in Rec. ITU-T T.815 | ISO/IEC 15444-16? Any particular obstacles?
@dukesook, who has been working on an implementation, has made sample files available at https://github.com/dukesook/enoji