libheif icon indicating copy to clipboard operation
libheif copied to clipboard

Can i port libhevc to libheif?

Open zljj0818 opened this issue 4 years ago • 3 comments

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?

zljj0818 avatar Jun 16 '20 06:06 zljj0818

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.

farindk avatar Jun 16 '20 10:06 farindk

OK

zljj0818 avatar Jun 16 '20 10:06 zljj0818

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.

Breakkk avatar Jan 21 '22 02:01 Breakkk