From 4cd9b0200166bc3d715193ef6fe279c37f44dcb9 Mon Sep 17 00:00:00 2001 From: Alwin Esch Date: Sat, 28 Aug 2021 13:55:42 +0200 Subject: [PATCH 1/7] update copyright year to 2021 --- debian/copyright | 2 +- src/HeifPicture.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/copyright b/debian/copyright index 9b8d39d..0b620b8 100644 --- a/debian/copyright +++ b/debian/copyright @@ -3,7 +3,7 @@ Upstream-Name: imagedecoder.heif Source: https://github.com/xbmc/imagedecoder.heif Files: * -Copyright: 2005-2020 Team Kodi +Copyright: 2005-2021 Team Kodi License: GPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/src/HeifPicture.cpp b/src/HeifPicture.cpp index 9c13f9f..05c05a2 100644 --- a/src/HeifPicture.cpp +++ b/src/HeifPicture.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2020 Team Kodi (https://kodi.tv) + * Copyright (C) 2005-2021 Team Kodi (https://kodi.tv) * * SPDX-License-Identifier: GPL-2.0-or-later * See LICENSE.md for more information. From 7f27e3fa6b1f23985461cabbf59abab3b6f0efed Mon Sep 17 00:00:00 2001 From: Alwin Esch Date: Sat, 28 Aug 2021 14:01:00 +0200 Subject: [PATCH 2/7] add sync-addon-metadata-translations.yml --- .../sync-addon-metadata-translations.yml | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/sync-addon-metadata-translations.yml diff --git a/.github/workflows/sync-addon-metadata-translations.yml b/.github/workflows/sync-addon-metadata-translations.yml new file mode 100644 index 0000000..66db6c2 --- /dev/null +++ b/.github/workflows/sync-addon-metadata-translations.yml @@ -0,0 +1,46 @@ +name: Sync addon metadata translations + +on: + push: + branches: [ Matrix, Nexus ] + paths: + - '**addon.xml' + - '**resource.language.**strings.po' + +jobs: + default: + if: github.repository == 'xbmc/imagedecoder.heif' + runs-on: ubuntu-latest + + steps: + + - name: Checkout repository + uses: actions/checkout@v2 + with: + path: project + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.9' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install git+https://github.com/xbmc/sync_addon_metadata_translations.git + + - name: Run sync-addon-metadata-translations + run: | + sync-addon-metadata-translations + working-directory: ./project + + - name: Create PR for sync-addon-metadata-translations changes + uses: peter-evans/create-pull-request@v3.10.0 + with: + commit-message: Sync of addon metadata translations + title: Sync of addon metadata translations + body: Sync of addon metadata translations triggered by ${{ github.sha }} + branch: amt-sync + delete-branch: true + path: ./project + reviewers: gade01 From c2f7d2d6f45d3d32bcf9f4cf6f086b82d7949fc0 Mon Sep 17 00:00:00 2001 From: Alwin Esch Date: Sat, 28 Aug 2021 14:13:41 +0200 Subject: [PATCH 3/7] remove travis CI status badge as no more used --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index db45576..a51868c 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,6 @@ This is a [Kodi](https://kodi.tv) image decoder addon for HEIF images. [![License: GPL-2.0-or-later](https://img.shields.io/badge/License-GPL%20v2+-blue.svg)](LICENSE.md) -[![Build Status](https://travis-ci.org/xbmc/imagedecoder.heif.svg?branch=Matrix)](https://travis-ci.org/xbmc/imagedecoder.heif) [![Build Status](https://dev.azure.com/teamkodi/binary-addons/_apis/build/status/xbmc.imagedecoder.heif?branchName=Matrix)](https://dev.azure.com/teamkodi/binary-addons/_build/latest?definitionId=26&branchName=Matrix) [![Build Status](https://jenkins.kodi.tv/view/Addons/job/xbmc/job/imagedecoder.heif/job/Matrix/badge/icon)](https://jenkins.kodi.tv/blue/organizations/jenkins/xbmc%2Fimagedecoder.heif/branches/) From 27d3ecfce91fa851b4a627b342f1f25728d32524 Mon Sep 17 00:00:00 2001 From: Alwin Esch Date: Sat, 28 Aug 2021 14:24:38 +0200 Subject: [PATCH 4/7] Add [CR] to addon.xml.in description --- imagedecoder.heif/addon.xml.in | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/imagedecoder.heif/addon.xml.in b/imagedecoder.heif/addon.xml.in index 811af48..bef55cd 100644 --- a/imagedecoder.heif/addon.xml.in +++ b/imagedecoder.heif/addon.xml.in @@ -12,9 +12,7 @@ mimetype="image/heif|image/heic"/> HEIF file format decoder - High Efficiency Image File Format (HEIF) is a file format employing HEVC (h.265) image coding for the best compression ratios currently possible. - -Support for this is provided by ISO/IEC 23008-12:2017 compliant libheif. + High Efficiency Image File Format (HEIF) is a file format employing HEVC (h.265) image coding for the best compression ratios currently possible.[CR][CR]Support for this is provided by ISO/IEC 23008-12:2017 compliant libheif. @PLATFORM@ GPL-2.0-or-later https://github.com/xbmc/imagedecoder.heif From 7a4464ce9f6a31aeded4d356c907bbfd14ecc66f Mon Sep 17 00:00:00 2001 From: Alwin Esch Date: Sat, 28 Aug 2021 14:25:52 +0200 Subject: [PATCH 5/7] add strings.po related to text by addon.xml and to allow translations --- .../resource.language.en_gb/strings.po | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 imagedecoder.heif/resources/language/resource.language.en_gb/strings.po diff --git a/imagedecoder.heif/resources/language/resource.language.en_gb/strings.po b/imagedecoder.heif/resources/language/resource.language.en_gb/strings.po new file mode 100644 index 0000000..edddc2e --- /dev/null +++ b/imagedecoder.heif/resources/language/resource.language.en_gb/strings.po @@ -0,0 +1,25 @@ +# Kodi Media Center language file +# Addon Name: HEIF image decoder +# Addon id: imagedecoder.heif +# Addon Provider: Team Kodi +msgid "" +msgstr "" +"Project-Id-Version: KODI Addons\n" +"Report-Msgid-Bugs-To: https://github.com/xbmc/imagedecoder.heif/issues/\n" +"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: Kodi Translation Team\n" +"Language-Team: English (United Kingdom) (http://www.transifex.com/projects/p/kodi-addons/language/en_GB/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Language: en_GB\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +msgctxt "Addon Summary" +msgid "HEIF file format decoder" +msgstr "" + +msgctxt "Addon Description" +msgid "High Efficiency Image File Format (HEIF) is a file format employing HEVC (h.265) image coding for the best compression ratios currently possible.[CR][CR]Support for this is provided by ISO/IEC 23008-12:2017 compliant libheif." +msgstr "" From 3665a3348b793842581ccf80509cd5da504c7d08 Mon Sep 17 00:00:00 2001 From: Alwin Esch Date: Sat, 28 Aug 2021 15:52:28 +0200 Subject: [PATCH 6/7] update depends libheif to version 1.12.0 --- depends/common/libheif/01-no-examples.patch | 11 ------- .../common/libheif/01-windows-warnings.patch | 25 +++++++++++++++ depends/common/libheif/02-remove-werror.patch | 24 ++++++++++++++ .../common/libheif/02-windows-warnings.patch | 31 ------------------- .../libheif/03-disable-gdk-pixbuf.patch | 22 +++++++++++++ depends/common/libheif/03-remove-werror.patch | 10 ------ .../libheif/04-disable-gdk-pixbuf.patch | 9 ------ .../libheif/04-fix-static-win-linkage.patch | 28 +++++++++++++++++ depends/common/libheif/05-disable-x265.patch | 12 ------- .../libheif/06-fix-static-win-linkage.patch | 15 --------- depends/common/libheif/flags.txt | 2 +- depends/common/libheif/libheif.sha256 | 2 +- depends/common/libheif/libheif.txt | 2 +- 13 files changed, 102 insertions(+), 91 deletions(-) delete mode 100644 depends/common/libheif/01-no-examples.patch create mode 100644 depends/common/libheif/01-windows-warnings.patch create mode 100644 depends/common/libheif/02-remove-werror.patch delete mode 100644 depends/common/libheif/02-windows-warnings.patch create mode 100644 depends/common/libheif/03-disable-gdk-pixbuf.patch delete mode 100644 depends/common/libheif/03-remove-werror.patch delete mode 100644 depends/common/libheif/04-disable-gdk-pixbuf.patch create mode 100644 depends/common/libheif/04-fix-static-win-linkage.patch delete mode 100644 depends/common/libheif/05-disable-x265.patch delete mode 100644 depends/common/libheif/06-fix-static-win-linkage.patch diff --git a/depends/common/libheif/01-no-examples.patch b/depends/common/libheif/01-no-examples.patch deleted file mode 100644 index 26dcd75..0000000 --- a/depends/common/libheif/01-no-examples.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -79,6 +79,6 @@ - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libheif.pc - DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) - --add_subdirectory (examples) -+#add_subdirectory (examples) - add_subdirectory (libheif) - add_subdirectory (gdk-pixbuf) - diff --git a/depends/common/libheif/01-windows-warnings.patch b/depends/common/libheif/01-windows-warnings.patch new file mode 100644 index 0000000..f15bd08 --- /dev/null +++ b/depends/common/libheif/01-windows-warnings.patch @@ -0,0 +1,25 @@ +From 956f0ee6da5f9b84a4758fb3c6fc772fc8e108db Mon Sep 17 00:00:00 2001 +From: Alwin Esch +Date: Sat, 28 Aug 2021 15:15:25 +0200 +Subject: [PATCH 1/4] windows-warnings + +--- + libheif/heif_context.cc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libheif/heif_context.cc b/libheif/heif_context.cc +index f208e57..0222ef0 100644 +--- a/libheif/heif_context.cc ++++ b/libheif/heif_context.cc +@@ -93,7 +93,7 @@ static int32_t readvec_signed(const std::vector& data, int& ptr, int le + val &= ~high_bit; + + if (negative) { +- return -(high_bit - val); ++ return 0-(high_bit - val); + } + else { + return val; +-- +2.25.1 + diff --git a/depends/common/libheif/02-remove-werror.patch b/depends/common/libheif/02-remove-werror.patch new file mode 100644 index 0000000..9e94923 --- /dev/null +++ b/depends/common/libheif/02-remove-werror.patch @@ -0,0 +1,24 @@ +From 5eeda141a8cb120ddcd39f179106552c2f22a60c Mon Sep 17 00:00:00 2001 +From: Alwin Esch +Date: Sat, 28 Aug 2021 15:16:18 +0200 +Subject: [PATCH 2/4] remove-werror + +--- + CMakeLists.txt | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 58ade87..067a3ea 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -22,7 +22,6 @@ endif() + + if(NOT MSVC) + add_definitions(-Wall) +- add_definitions(-Werror) + add_definitions(-Wsign-compare) + add_definitions(-Wconversion) + add_definitions(-Wno-sign-conversion) +-- +2.25.1 + diff --git a/depends/common/libheif/02-windows-warnings.patch b/depends/common/libheif/02-windows-warnings.patch deleted file mode 100644 index 12c0c60..0000000 --- a/depends/common/libheif/02-windows-warnings.patch +++ /dev/null @@ -1,31 +0,0 @@ ---- a/libheif/heif_colorconversion.cc -+++ b/libheif/heif_colorconversion.cc -@@ -1598,7 +1598,7 @@ - - outimg->add_plane(heif_channel_interleaved, width, height, 8); - -- const uint8_t *in_y, *in_a; -+ const uint8_t *in_y, *in_a = nullptr; - int in_y_stride=0, in_a_stride; - - uint8_t *out_p; -@@ -1745,7 +1745,7 @@ - outimg->add_plane(heif_channel_Alpha, width, height, 8); - } - -- uint8_t *out_cb,*out_cr,*out_y, *out_a; -+ uint8_t *out_cb,*out_cr,*out_y, *out_a = nullptr; - int out_cb_stride=0, out_cr_stride=0, out_y_stride=0, out_a_stride=0; - - const uint8_t *in_p; ---- a/libheif/heif_context.cc -+++ b/libheif/heif_context.cc -@@ -96,7 +96,7 @@ - val &= ~high_bit; - - if (negative) { -- return -(high_bit-val); -+ return 0-(high_bit-val); - } - else { - return val; diff --git a/depends/common/libheif/03-disable-gdk-pixbuf.patch b/depends/common/libheif/03-disable-gdk-pixbuf.patch new file mode 100644 index 0000000..8f18dcc --- /dev/null +++ b/depends/common/libheif/03-disable-gdk-pixbuf.patch @@ -0,0 +1,22 @@ +From 92074c6c8cbc74353185df3d7bff23a8bdbad9fc Mon Sep 17 00:00:00 2001 +From: Alwin Esch +Date: Sat, 28 Aug 2021 15:16:52 +0200 +Subject: [PATCH 3/4] disable-gdk-pixbuf + +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 067a3ea..b88a457 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -164,4 +164,4 @@ if(WITH_EXAMPLES) + add_subdirectory (examples) + endif() + add_subdirectory (libheif) +-add_subdirectory (gdk-pixbuf) ++#add_subdirectory (gdk-pixbuf) +-- +2.25.1 + diff --git a/depends/common/libheif/03-remove-werror.patch b/depends/common/libheif/03-remove-werror.patch deleted file mode 100644 index e504add..0000000 --- a/depends/common/libheif/03-remove-werror.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -22,7 +22,6 @@ - - if(NOT MSVC) - add_definitions(-Wall) -- add_definitions(-Werror) - add_definitions(-Wsign-compare) - add_definitions(-Wconversion) - add_definitions(-Wno-sign-conversion) diff --git a/depends/common/libheif/04-disable-gdk-pixbuf.patch b/depends/common/libheif/04-disable-gdk-pixbuf.patch deleted file mode 100644 index 9c431c1..0000000 --- a/depends/common/libheif/04-disable-gdk-pixbuf.patch +++ /dev/null @@ -1,9 +0,0 @@ ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -80,4 +80,4 @@ - - #add_subdirectory (examples) - add_subdirectory (libheif) --add_subdirectory (gdk-pixbuf) -+#add_subdirectory (gdk-pixbuf) - diff --git a/depends/common/libheif/04-fix-static-win-linkage.patch b/depends/common/libheif/04-fix-static-win-linkage.patch new file mode 100644 index 0000000..0b0f8b0 --- /dev/null +++ b/depends/common/libheif/04-fix-static-win-linkage.patch @@ -0,0 +1,28 @@ +From 660b0e46ccefdf253b9dfc119205100b29481387 Mon Sep 17 00:00:00 2001 +From: Alwin Esch +Date: Sat, 28 Aug 2021 15:19:46 +0200 +Subject: [PATCH 4/4] fix-static-win-linkage + +--- + libheif/heif.h | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/libheif/heif.h b/libheif/heif.h +index fffc98d..e373734 100644 +--- a/libheif/heif.h ++++ b/libheif/heif.h +@@ -47,9 +47,9 @@ extern "C" { + + #if defined(_MSC_VER) && !defined(LIBHEIF_STATIC_BUILD) + #ifdef LIBHEIF_EXPORTS +-#define LIBHEIF_API __declspec(dllexport) ++#define LIBHEIF_API + #else +-#define LIBHEIF_API __declspec(dllimport) ++#define LIBHEIF_API + #endif + #elif defined(HAVE_VISIBILITY) && HAVE_VISIBILITY + #ifdef LIBHEIF_EXPORTS +-- +2.25.1 + diff --git a/depends/common/libheif/05-disable-x265.patch b/depends/common/libheif/05-disable-x265.patch deleted file mode 100644 index ff8e6d4..0000000 --- a/depends/common/libheif/05-disable-x265.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -53,7 +53,7 @@ - if (UNIX) - find_package(PkgConfig) - pkg_check_modules(LIBDE265 libde265) -- pkg_check_modules(X265 x265) -+ # pkg_check_modules(X265 x265) - endif() - - # Create libheif pkgconfig file - diff --git a/depends/common/libheif/06-fix-static-win-linkage.patch b/depends/common/libheif/06-fix-static-win-linkage.patch deleted file mode 100644 index 79727e0..0000000 --- a/depends/common/libheif/06-fix-static-win-linkage.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- a/libheif/heif.h -+++ b/libheif/heif.h -@@ -43,9 +43,9 @@ - - #if defined(_MSC_VER) && !defined(LIBHEIF_STATIC_BUILD) - #ifdef LIBHEIF_EXPORTS -- #define LIBHEIF_API __declspec(dllexport) -+ #define LIBHEIF_API - #else -- #define LIBHEIF_API __declspec(dllimport) -+ #define LIBHEIF_API - #endif - #elif defined(HAVE_VISIBILITY) && HAVE_VISIBILITY - #ifdef LIBHEIF_EXPORTS - diff --git a/depends/common/libheif/flags.txt b/depends/common/libheif/flags.txt index 1291887..c07b037 100644 --- a/depends/common/libheif/flags.txt +++ b/depends/common/libheif/flags.txt @@ -1 +1 @@ --DBUILD_SHARED_LIBS=0 -DLIBHEIF_STATIC_BUILD=1 +-DBUILD_SHARED_LIBS=0 -DLIBHEIF_STATIC_BUILD=1 -DWITH_EXAMPLES=0 -DWITH_X265=0 -DWITH_RAV1E=0 -DWITH_AOM=0 -DWITH_DAV1D=0 diff --git a/depends/common/libheif/libheif.sha256 b/depends/common/libheif/libheif.sha256 index b46f4ff..0b41913 100644 --- a/depends/common/libheif/libheif.sha256 +++ b/depends/common/libheif/libheif.sha256 @@ -1 +1 @@ -bb229e855621deb374f61bee95c4642f60c2a2496bded35df3d3c42cc6d8eefc +e1ac2abb354fdc8ccdca71363ebad7503ad731c84022cf460837f0839e171718 diff --git a/depends/common/libheif/libheif.txt b/depends/common/libheif/libheif.txt index da51b57..21343c5 100644 --- a/depends/common/libheif/libheif.txt +++ b/depends/common/libheif/libheif.txt @@ -1 +1 @@ -libheif https://github.com/strukturag/libheif/releases/download/v1.6.2/libheif-1.6.2.tar.gz +libheif https://github.com/strukturag/libheif/releases/download/v1.12.0/libheif-1.12.0.tar.gz From fb5a75e48d8df897313bc716e4959cf57881c585 Mon Sep 17 00:00:00 2001 From: Alwin Esch Date: Sat, 28 Aug 2021 17:00:11 +0200 Subject: [PATCH 7/7] add avif support --- depends/common/dav1d/CMakeLists.txt | 47 +++++++++++++++++++++++++++++ depends/common/dav1d/dav1d.sha256 | 1 + depends/common/dav1d/dav1d.txt | 1 + depends/common/libheif/deps.txt | 1 + depends/common/libheif/flags.txt | 2 +- imagedecoder.heif/addon.xml.in | 4 +-- 6 files changed, 53 insertions(+), 3 deletions(-) create mode 100644 depends/common/dav1d/CMakeLists.txt create mode 100644 depends/common/dav1d/dav1d.sha256 create mode 100644 depends/common/dav1d/dav1d.txt diff --git a/depends/common/dav1d/CMakeLists.txt b/depends/common/dav1d/CMakeLists.txt new file mode 100644 index 0000000..1cacb7e --- /dev/null +++ b/depends/common/dav1d/CMakeLists.txt @@ -0,0 +1,47 @@ +cmake_minimum_required(VERSION 3.5) +project(dav1d) + +find_package(Python3 REQUIRED) + +if(NOT CPU AND CMAKE_SYSTEM_PROCESSOR) + set(CPU ${CMAKE_SYSTEM_PROCESSOR}) +endif() + +include(ExternalProject) + +if (CMAKE_BUILD_TYPE STREQUAL "Debug") + set(MESON_BUILD_TYPE debug) +else() + set(MESON_BUILD_TYPE release) +endif() + +list(APPEND configure_command ${CMAKE_COMMAND} -E env) +list(APPEND configure_command ANDROID_NDK=${TOOLCHAIN}) +list(APPEND configure_command AR=${CMAKE_AR}) +list(APPEND configure_command CC=${CMAKE_C_COMPILER}) +list(APPEND configure_command CFLAGS=${CMAKE_C_FLAGS}) +list(APPEND configure_command CPPFLAGS=${CMAKE_CPP_FLAGS}) +list(APPEND configure_command CXX=${CMAKE_CXX_COMPILER}) +list(APPEND configure_command CXXFLAGS=${CMAKE_CXX_FLAGS}) +list(APPEND configure_command INSTALL_PREFIX=) +list(APPEND configure_command LDFLAGS=${CMAKE_LD_FLAGS}) +list(APPEND configure_command RANLIB=${CMAKE_RANLIB}) +list(APPEND configure_command meson) +list(APPEND configure_command --prefix=${CMAKE_INSTALL_PREFIX}) +list(APPEND configure_command --libdir=lib) +list(APPEND configure_command --buildtype=${MESON_BUILD_TYPE}) +list(APPEND configure_command --default-library=static) +list(APPEND configure_command -Denable_asm=true) +list(APPEND configure_command -Denable_tools=false) +list(APPEND configure_command -Denable_examples=false) +list(APPEND configure_command -Denable_tests=false) + +externalproject_add(dav1d + SOURCE_DIR ${CMAKE_SOURCE_DIR} + UPDATE_COMMAND "" + CONFIGURE_COMMAND ${configure_command} . build + BUILD_COMMAND ninja -C ${CMAKE_SOURCE_DIR}/build + INSTALL_COMMAND ninja -C ${CMAKE_SOURCE_DIR}/build -v install + BUILD_IN_SOURCE 1) + +install(CODE "execute_process(COMMAND make install_sw WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})") diff --git a/depends/common/dav1d/dav1d.sha256 b/depends/common/dav1d/dav1d.sha256 new file mode 100644 index 0000000..a9084e0 --- /dev/null +++ b/depends/common/dav1d/dav1d.sha256 @@ -0,0 +1 @@ +097db6f370b88bf09fec62919c0d3af64e07d58210c665ec461d63f4ec79f6a2 diff --git a/depends/common/dav1d/dav1d.txt b/depends/common/dav1d/dav1d.txt new file mode 100644 index 0000000..80d968b --- /dev/null +++ b/depends/common/dav1d/dav1d.txt @@ -0,0 +1 @@ +dav1d https://github.com/videolan/dav1d/archive/refs/tags/0.9.1.tar.gz diff --git a/depends/common/libheif/deps.txt b/depends/common/libheif/deps.txt index 0850b69..5365bcf 100644 --- a/depends/common/libheif/deps.txt +++ b/depends/common/libheif/deps.txt @@ -1 +1,2 @@ libde265 +dav1d diff --git a/depends/common/libheif/flags.txt b/depends/common/libheif/flags.txt index c07b037..2588e16 100644 --- a/depends/common/libheif/flags.txt +++ b/depends/common/libheif/flags.txt @@ -1 +1 @@ --DBUILD_SHARED_LIBS=0 -DLIBHEIF_STATIC_BUILD=1 -DWITH_EXAMPLES=0 -DWITH_X265=0 -DWITH_RAV1E=0 -DWITH_AOM=0 -DWITH_DAV1D=0 +-DBUILD_SHARED_LIBS=0 -DLIBHEIF_STATIC_BUILD=1 -DWITH_EXAMPLES=0 -DWITH_X265=0 -DWITH_RAV1E=0 -DWITH_AOM=0 -DWITH_DAV1D=1 diff --git a/imagedecoder.heif/addon.xml.in b/imagedecoder.heif/addon.xml.in index bef55cd..e1acb11 100644 --- a/imagedecoder.heif/addon.xml.in +++ b/imagedecoder.heif/addon.xml.in @@ -8,8 +8,8 @@ + extension=".heif|.heic|.avif" + mimetype="image/heif|image/heic|image/avif"/> HEIF file format decoder High Efficiency Image File Format (HEIF) is a file format employing HEVC (h.265) image coding for the best compression ratios currently possible.[CR][CR]Support for this is provided by ISO/IEC 23008-12:2017 compliant libheif.