-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add discovery of decoding/encoding heif support #4
Comments
I would prefer to check at runtime what is available and only register those parts of the plugin. |
It can be both. Having runtime checks is good too but it would be nice to be able to check somehow that libheif can actually encode/decode heif files. This is typically a case where we could create packages containing a broken HEIF plugin without even realizing it because the configure showed that everything was all right. |
Keep in mind that libheif could be different at runtime compared to libheif during build-time and the list of supported codecs might be different. Also applications can register external codecs, so a codec might not be there during build-time, but is available later in the application. I'm +1 with @farindk for checking at runtime. If you really want to do it at build-time, you could use |
I understand that you might want to check for support already at configure time. Hence, I've added (commit 9031b53 in libheif) two pkg-config variables "builtin_h265_decoder" and "builtin_h265_encoder" that you can check for. I'll also going to add the runtime check too. |
Thanks @fancycode and @farindk. I would have settled indeed for a |
I have added two API functions for simple testing at runtime whether there is encoding/decoding support: |
Awesome, thanks @farindk. I would like to propose to close this report when you announce a new release of libheif because we can't update our code based on non-released versions. P.S.: also sorry, I just realized I reported on the wrong project. I should have reported this in the libheif project actually! |
Yes, I thought so. I made a fork of gimp with the changes here |
Ah awesome. Then you may just close this report if you want. I just wanted to keep something somewhere to send me notifications so that I don't forget. But if you take care of contributing a MR, then I will also get my notification and even won't have to code anything! :-) |
This support would be nice choice if you are installed the following plugins from MS Store: |
Followup of issue #3. In GIMP, all we can do right now is to write down in INSTALL that libheif must be compiled with libx265 and libde265 support. It would be nice if we could instead "discover" at configuration time.
The common way to do so is by the pkg-config
.pc
file. Either you could add some pkg-config variable telling us whether the encoding or decoding are built-in. Or simply you can create morepc
files. Likelibheif-encoder.pc
andlibheif-decoder.pc
(I am assuming here these 2 libs are only used for encoding and decoding).The text was updated successfully, but these errors were encountered: