Note that even if open-source code exists covering HEIC, this does not mean that code (or products using that code) are legal to use in countries where the patent is enforced. Some countries do not enforce such patents, so it may be legal in some places, but not in others (such as the USA). The same situation exists right now with MP4/AVC video, for example.