strukturag / libheif

libheif is an HEIF and AVIF file format decoder and encoder.
Other
1.76k stars 302 forks source link

Where can user find jpeg2000 compatible with heif container? #420

Closed Jamaika1 closed 11 months ago

Jamaika1 commented 3 years ago

https://jpeg.org/jpeg2000/index.html Part 16 specifies the carriage of JPEG 2000 codestreams in ISO/IEC 23008-12, commonly referred to as HEIF. A revision is underway to support more flexible wrapping of all JPEG 2000 codestreams, including HTJ2K.

bradh commented 11 months ago

libheif can now write this. So you can create whatever you need.

Jamaika1 commented 11 months ago

Thanks for the info. It's been while since I created libheif. As far as I know openjpeg doesn't create htj2k. Is libheif compatible with htj2k? I don't know. Give examples of commands.

bradh commented 11 months ago

OpenJPEG supports HT (part 15) for decoding as of 2.5.0. There is a discussion topic about the proposed part 16 update in #1054.

Also, your response comes across as demanding, and will point out I was only trying to help with the original question about jpeg2000 source data.

bradh commented 11 months ago

You can also test with https://github.com/bradh/libheif/tree/openjph which implements the Part 16 encoding using OpenJPH.

Jamaika1 commented 11 months ago

Super. I just created a libheif encoder with openjph in C++11. heif(j2c) is created, but I am missing the function j2c/j2k -> heif(j2c/j2k) -> j2c/j2k.