libheif decodes all common types of HEIF files currently available. It also can generate HEIF files with HEVC coding. The decoder makes use of libde265 and for encoding, x265 is used.
The library is available as the libheif package in Debian and Ubuntu and has been integrated into:
More information on its github page.