-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
121 additions
and
85 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
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
40 changes: 0 additions & 40 deletions
40
libheif/linux/libheif/001-aom-remove-extend_padding_to_size.patch
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/libheif/plugins/heif_encoder_svt.cc b/libheif/plugins/heif_encoder_svt.cc | ||
index 586c8b0b3..6d0c8ae15 100644 | ||
--- a/libheif/plugins/heif_encoder_svt.cc | ||
+++ b/libheif/plugins/heif_encoder_svt.cc | ||
@@ -97,6 +97,7 @@ static const char* svt_plugin_name() | ||
int int_log2(int pow2_value) | ||
{ | ||
int input_value = pow2_value; | ||
+ (void)input_value; | ||
|
||
int v = 0; | ||
while (pow2_value > 1) { |
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 |
---|---|---|
@@ -0,0 +1,55 @@ | ||
diff --git a/libheif/CMakeLists.txt b/libheif/CMakeLists.txt | ||
index db9eac7fe..5330b4fe1 100644 | ||
--- a/libheif/CMakeLists.txt | ||
+++ b/libheif/CMakeLists.txt | ||
@@ -62,13 +62,17 @@ target_compile_definitions(heif | ||
LIBHEIF_EXPORTS | ||
HAVE_VISIBILITY) | ||
|
||
-add_subdirectory(plugins) | ||
- | ||
if (ENABLE_PLUGIN_LOADING AND UNIX) | ||
+ set(PLUGIN_LOADING_SUPPORTED_AND_ENABLED TRUE) | ||
+endif() | ||
+ | ||
+if (PLUGIN_LOADING_SUPPORTED_AND_ENABLED) | ||
target_compile_definitions(heif PRIVATE ENABLE_PLUGIN_LOADING=1) | ||
target_link_libraries(heif PRIVATE dl) | ||
endif() | ||
|
||
+add_subdirectory(plugins) | ||
+ | ||
if (WITH_DEFLATE_HEADER_COMPRESSION) | ||
find_package(ZLIB REQUIRED) | ||
if (ZLIB_FOUND) | ||
diff --git a/libheif/plugins/CMakeLists.txt b/libheif/plugins/CMakeLists.txt | ||
index f25effc76..941a4889c 100644 | ||
--- a/libheif/plugins/CMakeLists.txt | ||
+++ b/libheif/plugins/CMakeLists.txt | ||
@@ -5,7 +5,8 @@ macro(plugin_compilation name varName optionName defineName) | ||
set(${varName}_LINKDIR "-L${${varName}_LIBRARY_DIRS}") | ||
endif () | ||
|
||
- if (WITH_${optionName}_PLUGIN) | ||
+ if (PLUGIN_LOADING_SUPPORTED_AND_ENABLED AND WITH_${optionName}_PLUGIN) | ||
+ message("Compiling '" ${name} "' as dynamic plugin") | ||
add_library(heif-${name} | ||
MODULE ${${optionName}_sources} ${${optionName}_extra_plugin_sources} | ||
../heif_plugin.cc | ||
@@ -26,6 +27,7 @@ macro(plugin_compilation name varName optionName defineName) | ||
LIBRARY DESTINATION ${PLUGIN_DIRECTORY} | ||
) | ||
else () | ||
+ message("Compiling '" ${name} "' as built-in backend") | ||
target_sources(heif PRIVATE ${${optionName}_sources}) | ||
target_compile_definitions(heif PRIVATE HAVE_${defineName}=1) | ||
target_include_directories(heif PRIVATE ${${varName}_INCLUDE_DIR}) | ||
@@ -34,6 +36,8 @@ macro(plugin_compilation name varName optionName defineName) | ||
|
||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${${varName}_CFLAGS}") | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${${varName}_CFLAGS}") | ||
+ else() | ||
+ message("Not compiling '" ${name} "' backend") | ||
endif () | ||
endmacro() | ||
|
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
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.