Skip to content

Commit

Permalink
v0.9.0 on libheif 1.14.0 with fixes #
Browse files Browse the repository at this point in the history
  • Loading branch information
bigcat88 committed Dec 15, 2022
1 parent 3fb674a commit 9d0b942
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ _# Changelog

All notable changes to this project will be documented in this file.

## [0.9.0 - 2022-12-0x]
## [0.9.0 - 2022-12-15]

### Added

### Changed

- `libheif` updated to `1.14.1` version. Minimum supported version to build from source is `1.13.0`
- Minimum supported version of `libheif` to build from source is `1.13.0`
- Minimum required `Pillow` version increased from `6.2.0` to `8.3.0`, `getxmp` is used from Pillow now. #55
- `options()` was reworked. Added new `DECODE_THREADS` option. #57

Expand Down
4 changes: 2 additions & 2 deletions LICENSES_bundled.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Binary wheels combine several license-compatible libraries. Here they are listed
Name: libheif
License: LGPLv3
Files: libheif.[dylib|so|dll]
For details, see https://github.com/strukturag/libheif/tree/v1.14.1/COPYING
Source code: https://github.com/strukturag/libheif/tree/v1.14.1
For details, see https://github.com/strukturag/libheif/tree/v1.14.0/COPYING
Source code: https://github.com/strukturag/libheif/tree/v1.14.0

Name: libde265
License: LGPLv3
Expand Down
2 changes: 1 addition & 1 deletion libheif/linux_build_libs.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
LIBX265_URL = "https://bitbucket.org/multicoreware/x265_git/get/0b75c44c10e605fe9e9ebed58f04a46271131827.tar.gz"
LIBAOM_URL = "https://aomedia.googlesource.com/aom/+archive/v3.5.0.tar.gz"
LIBDE265_URL = "https://github.com/strukturag/libde265/releases/download/v1.0.9/libde265-1.0.9.tar.gz"
LIBHEIF_URL = "https://github.com/strukturag/libheif/archive/7caa01dd150b6c96f33d35bff2eab8a32b8edf2b.tar.gz"
LIBHEIF_URL = "https://github.com/strukturag/libheif/archive/03fb8f092248bd4f76fad5399f4e3a9d3db4dba2.tar.gz"


def download_file(url: str, out_path: str) -> bool:
Expand Down
6 changes: 3 additions & 3 deletions libheif/windows/mingw-w64-libheif/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
_realname=libheif
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=7caa01dd150b6c96f33d35bff2eab8a32b8edf2b
pkgver=03fb8f092248bd4f76fad5399f4e3a9d3db4dba2
pkgrel=1
pkgdesc="HEIF image decoder/encoder library and tools (mingw-w64)"
arch=('any')
Expand All @@ -20,8 +20,8 @@ depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs"
"${MINGW_PACKAGE_PREFIX}-aom"
"${MINGW_PACKAGE_PREFIX}-libde265"
"${MINGW_PACKAGE_PREFIX}-x265")
source=("https://github.com/strukturag/libheif/archive/7caa01dd150b6c96f33d35bff2eab8a32b8edf2b.tar.gz")
sha256sums=('ee52028a16624ee82cd4cf393ab3d565179da4a3e893644dd3a25fd8b91ff108')
source=("https://github.com/strukturag/libheif/archive/03fb8f092248bd4f76fad5399f4e3a9d3db4dba2.tar.gz")
sha256sums=('decbea102e051e928073363621d7df822b6a2a68d60a3965a62e734daa731cf9')

prepare() {
cd "${srcdir}/${_realname}-${pkgver}"
Expand Down
4 changes: 2 additions & 2 deletions pi-heif/LICENSES_bundled.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Binary wheels combine several license-compatible libraries. Here they are listed
Name: libheif
License: LGPLv3
Files: libheif.[dylib|so|dll]
For details, see https://github.com/strukturag/libheif/tree/v1.14.1/COPYING
Source code: https://github.com/strukturag/libheif/tree/v1.14.1
For details, see https://github.com/strukturag/libheif/tree/v1.14.0/COPYING
Source code: https://github.com/strukturag/libheif/tree/v1.14.0

Name: libde265
License: LGPLv3
Expand Down
6 changes: 3 additions & 3 deletions pi-heif/libheif/windows/mingw-w64-libheif/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
_realname=libheif
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=7caa01dd150b6c96f33d35bff2eab8a32b8edf2b
pkgver=03fb8f092248bd4f76fad5399f4e3a9d3db4dba2
pkgrel=1
pkgdesc="HEIF image decoder/encoder library and tools (mingw-w64)"
arch=('any')
Expand All @@ -18,8 +18,8 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-cmake"
"${MINGW_PACKAGE_PREFIX}-cc")
depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs"
"${MINGW_PACKAGE_PREFIX}-libde265")
source=("https://github.com/strukturag/libheif/archive/7caa01dd150b6c96f33d35bff2eab8a32b8edf2b.tar.gz")
sha256sums=('ee52028a16624ee82cd4cf393ab3d565179da4a3e893644dd3a25fd8b91ff108')
source=("https://github.com/strukturag/libheif/archive/03fb8f092248bd4f76fad5399f4e3a9d3db4dba2.tar.gz")
sha256sums=('decbea102e051e928073363621d7df822b6a2a68d60a3965a62e734daa731cf9')

prepare() {
cd "${srcdir}/${_realname}-${pkgver}"
Expand Down
4 changes: 2 additions & 2 deletions tests/basic_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def test_full_build():
assert info["decoders"]["AV1"]
assert info["encoders"]["AV1"]
assert info["encoders"]["HEVC"]
expected_version = os.getenv("EXP_PH_LIBHEIF_VERSION", "1.14.1")
expected_version = os.getenv("EXP_PH_LIBHEIF_VERSION", "1.14.0")
if expected_version:
assert info["version"]["libheif"] == expected_version

Expand All @@ -119,6 +119,6 @@ def test_light_build():
assert not info["decoders"]["AV1"]
assert not info["encoders"]["AV1"]
assert not info["encoders"]["HEVC"]
expected_version = os.getenv("EXP_PH_LIBHEIF_VERSION", "1.14.1")
expected_version = os.getenv("EXP_PH_LIBHEIF_VERSION", "1.14.0")
if expected_version:
assert info["version"]["libheif"] == expected_version
4 changes: 2 additions & 2 deletions tests/options_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ def test_decode_threads():
start_time_two_threads = perf_counter()
open_heif(test_image, convert_hdr_to_8bit=False).load()
total_time_two_threads = perf_counter() - start_time_two_threads
# decoding in two threads should be faster at least by 15%
assert total_time_one_thread > total_time_two_threads * 1.15
# decoding in two threads should be faster at least by 8%
assert total_time_one_thread > total_time_two_threads * 1.08
finally:
options.DECODE_THREADS = 4

Expand Down

0 comments on commit 9d0b942

Please sign in to comment.