Skip to content

Commit

Permalink
[libheif] add features for decoding AVIF, JPEG-2000, JPEG, ISO23001-17 (
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk authored Feb 5, 2025
1 parent 1f3f10d commit 31ba06e
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 3 deletions.
10 changes: 9 additions & 1 deletion ports/libheif/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@ vcpkg_from_github(

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
hevc WITH_X265
hevc WITH_X265
aom WITH_AOM_DECODER
aom WITH_AOM_ENCODER
openjpeg WITH_OpenJPEG_DECODER
openjpeg WITH_OpenJPEG_ENCODER
jpeg WITH_JPEG_DECODER
jpeg WITH_JPEG_ENCODER
iso23001-17 WITH_UNCOMPRESSED_CODEC
)

vcpkg_cmake_configure(
Expand All @@ -20,6 +27,7 @@ vcpkg_cmake_configure(
-DWITH_EXAMPLES=OFF
-DWITH_DAV1D=OFF
-DBUILD_TESTING=OFF
-DCMAKE_COMPILE_WARNING_AS_ERROR=OFF
${FEATURE_OPTIONS}
)
vcpkg_cmake_install()
Expand Down
27 changes: 26 additions & 1 deletion ports/libheif/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "libheif",
"version": "1.19.5",
"port-version": 2,
"port-version": 3,
"description": "libheif is an HEIF and AVIF file format decoder and encoder.",
"homepage": "http://www.libheif.org/",
"license": "LGPL-3.0-only",
Expand All @@ -25,12 +25,37 @@
"hevc"
],
"features": {
"aom": {
"description": "AVIF decoding and encoding via aom",
"license": "BSD-2-Clause",
"dependencies": [
"aom"
]
},
"hevc": {
"description": "HEVC encoding via x265",
"license": "GPL-2.0-or-later",
"dependencies": [
"x265"
]
},
"iso23001-17": {
"description": "Support for ISO23001-17 (uncompressed) codec",
"license": "LGPL-3.0-only"
},
"jpeg": {
"description": "JPEG decoding and encoding via libjpeg-turbo",
"license": "BSD-3-Clause",
"dependencies": [
"libjpeg-turbo"
]
},
"openjpeg": {
"description": "JPEG-2000 decoding and encoding via OpenJPEG",
"license": "BSD-2-Clause",
"dependencies": [
"openjpeg"
]
}
}
}
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4642,7 +4642,7 @@
},
"libheif": {
"baseline": "1.19.5",
"port-version": 2
"port-version": 3
},
"libhsplasma": {
"baseline": "2024-03-07",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/libheif.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "750c6c2ee08befa80660b188b1a5862cfb5192d0",
"version": "1.19.5",
"port-version": 3
},
{
"git-tree": "ecd6b2d082b2b4c294587aaabb0c53b7e1d87f5c",
"version": "1.19.5",
Expand Down

0 comments on commit 31ba06e

Please sign in to comment.