-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HEIF and AVIF: add read-only GeoHEIF support (#11333)
Adds read-only support for the draft OGC 24-038 "GeoHEIF" geo-referencing method for HEIF related drivers. This is being developed for OGC Testbed 20. See http://t20-gimi-ogc-006ced09c39758532bebec9d5488fca26bed7198a2d3b1481b.pages.ogc.org/documents/D010/document.html for a WIP draft. libheif and libavif have slightly different ways to get properties, but the base parsing code is shared. This will work with libheif from 1.19.0. For libavif, it'll require master branch. There is a slightly modified CI build to check that. Co-authored-by: Even Rouault <[email protected]> Co-authored-by: Kai Pastor <[email protected]>
- Loading branch information
1 parent
9bc4894
commit b914d9b
Showing
20 changed files
with
905 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,23 @@ | ||
define_find_package2(AVIF avif/avif.h avif PKGCONFIG_NAME libavif) | ||
gdal_check_package(AVIF "AVIF" CAN_DISABLE) | ||
|
||
# Check if libavif supports opaque properties | ||
include(CheckCXXSourceCompiles) | ||
cmake_push_check_state(RESET) | ||
set(CMAKE_REQUIRED_INCLUDES "${AVIF_INCLUDE_DIRS}") | ||
check_cxx_source_compiles( | ||
" | ||
#include <avif/avif.h> | ||
int main() | ||
{ | ||
offsetof(avifImage, numProperties); | ||
return 0; | ||
} | ||
" | ||
AVIF_HAS_OPAQUE_PROPERTIES | ||
) | ||
cmake_pop_check_state() | ||
|
||
if (AVIF_HAS_OPAQUE_PROPERTIES) | ||
set_property(TARGET AVIF::AVIF APPEND PROPERTY INTERFACE_COMPILE_DEFINITIONS "AVIF_HAS_OPAQUE_PROPERTIES") | ||
endif () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.