strukturag / libheif

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

Can i port libhevc to libheif? #234

Open zljj0818 opened 4 years ago

zljj0818 commented 4 years ago

Hi, Now libheif use libde265 as heic decoder, but i want to use android's libhevc as heic decoder in libheif Is there any advise?

farindk commented 4 years ago

You can write a decoder plugin that uses libhevc. You can start from a copy of heif_decoder_libde265.cc. It should not be very difficult.

If you have something working, please contribute the code back to libheif as a merge request.

zljj0818 commented 4 years ago

OK

Breakkk commented 2 years ago

Hi, Now libheif use libde265 as heic decoder, but i want to use android's libhevc as heic decoder in libheif Is there any advise?

Hi, Have you completed this part of the work? I'm doing the same thing now, but the fetched hevc data passed to libhevc fails to decode.

And I write the hevc data which libheif extracted from .heic file to local file. Both libde265 and libhevc can't decode it. Using nokia/heif extract hevc data from .heic can be decoded success. The difference between nokia/heif's hevc data and libheif's hevc data just have 16 bytes differ.