mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-08 00:07:30 +09:00
Update libaom to rev b25610052a1398032320008d69b51d2da94f5928
This commit is contained in:
parent
8493557d20
commit
3d109dd4fc
240 changed files with 16977 additions and 6139 deletions
|
|
@ -76,6 +76,7 @@ set(CONFIG_MISMATCH_DEBUG 0 CACHE NUMBER "Mismatch debugging flag.")
|
|||
set(CONFIG_ACCOUNTING 0 CACHE NUMBER "Enables bit accounting.")
|
||||
set(CONFIG_ANALYZER 0 CACHE NUMBER "Enables bit stream analyzer.")
|
||||
set(CONFIG_COEFFICIENT_RANGE_CHECKING 0 CACHE NUMBER "Coefficient range check.")
|
||||
set(CONFIG_DENOISE 0 CACHE NUMBER "Denoise/noise modeling support in encoder.")
|
||||
set(CONFIG_FILEOPTIONS 1 CACHE NUMBER "Enables encoder config file support.")
|
||||
set(CONFIG_INSPECTION 0 CACHE NUMBER "Enables bitstream inspection.")
|
||||
set(CONFIG_INTERNAL_STATS 0 CACHE NUMBER "Enables internal encoder stats.")
|
||||
|
|
|
|||
26
third_party/aom/build/cmake/aom_configure.cmake
vendored
26
third_party/aom/build/cmake/aom_configure.cmake
vendored
|
|
@ -40,14 +40,6 @@ include("${AOM_ROOT}/build/cmake/compiler_flags.cmake")
|
|||
include("${AOM_ROOT}/build/cmake/compiler_tests.cmake")
|
||||
include("${AOM_ROOT}/build/cmake/util.cmake")
|
||||
|
||||
# Build a list of all configurable variables.
|
||||
get_cmake_property(cmake_cache_vars CACHE_VARIABLES)
|
||||
foreach(var ${cmake_cache_vars})
|
||||
if("${var}" MATCHES "^CONFIG_")
|
||||
list(APPEND AOM_CONFIG_VARS ${var})
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
# Detect target CPU.
|
||||
if(NOT AOM_TARGET_CPU)
|
||||
if("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "AMD64" OR
|
||||
|
|
@ -269,7 +261,7 @@ else()
|
|||
add_compiler_flag_if_supported("-Wlogical-op")
|
||||
add_compiler_flag_if_supported("-Wpointer-arith")
|
||||
add_compiler_flag_if_supported("-Wsign-compare")
|
||||
add_compiler_flag_if_supported("-Wstack-usage=320000")
|
||||
add_compiler_flag_if_supported("-Wstack-usage=360000")
|
||||
add_compiler_flag_if_supported("-Wstring-conversion")
|
||||
add_compiler_flag_if_supported("-Wtype-limits")
|
||||
add_compiler_flag_if_supported("-Wuninitialized")
|
||||
|
|
@ -334,9 +326,6 @@ if(NOT PERL_FOUND)
|
|||
message(FATAL_ERROR "Perl is required to build libaom.")
|
||||
endif()
|
||||
|
||||
configure_file("${AOM_CONFIG_DIR}/rtcd_config.cmake"
|
||||
"${AOM_CONFIG_DIR}/${AOM_TARGET_CPU}_rtcd_config.rtcd")
|
||||
|
||||
set(AOM_RTCD_CONFIG_FILE_LIST "${AOM_ROOT}/aom_dsp/aom_dsp_rtcd_defs.pl"
|
||||
"${AOM_ROOT}/aom_scale/aom_scale_rtcd.pl"
|
||||
"${AOM_ROOT}/av1/common/av1_rtcd_defs.pl")
|
||||
|
|
@ -355,13 +344,12 @@ foreach(NUM RANGE ${AOM_RTCD_CUSTOM_COMMAND_COUNT})
|
|||
list(GET AOM_RTCD_HEADER_FILE_LIST ${NUM} AOM_RTCD_HEADER_FILE)
|
||||
list(GET AOM_RTCD_SOURCE_FILE_LIST ${NUM} AOM_RTCD_SOURCE_FILE)
|
||||
list(GET AOM_RTCD_SYMBOL_LIST ${NUM} AOM_RTCD_SYMBOL)
|
||||
execute_process(
|
||||
COMMAND ${PERL_EXECUTABLE} "${AOM_ROOT}/build/make/rtcd.pl"
|
||||
--arch=${AOM_TARGET_CPU}
|
||||
--sym=${AOM_RTCD_SYMBOL} ${AOM_RTCD_FLAGS}
|
||||
--config=${AOM_CONFIG_DIR}/${AOM_TARGET_CPU}_rtcd_config.rtcd
|
||||
${AOM_RTCD_CONFIG_FILE}
|
||||
OUTPUT_FILE ${AOM_RTCD_HEADER_FILE})
|
||||
execute_process(COMMAND ${PERL_EXECUTABLE} "${AOM_ROOT}/build/make/rtcd.pl"
|
||||
--arch=${AOM_TARGET_CPU}
|
||||
--sym=${AOM_RTCD_SYMBOL} ${AOM_RTCD_FLAGS}
|
||||
--config=${AOM_CONFIG_DIR}/config/aom_config.h
|
||||
${AOM_RTCD_CONFIG_FILE}
|
||||
OUTPUT_FILE ${AOM_RTCD_HEADER_FILE})
|
||||
endforeach()
|
||||
|
||||
# Generate aom_version.h.
|
||||
|
|
|
|||
|
|
@ -197,16 +197,16 @@ endfunction()
|
|||
# include file, $source is the C source file, and $symbol is used for the symbol
|
||||
# argument passed to rtcd.pl.
|
||||
function(add_rtcd_build_step config output source symbol)
|
||||
add_custom_command(
|
||||
OUTPUT ${output}
|
||||
COMMAND ${PERL_EXECUTABLE} ARGS "${AOM_ROOT}/build/make/rtcd.pl"
|
||||
--arch=${AOM_TARGET_CPU}
|
||||
--sym=${symbol} ${AOM_RTCD_FLAGS}
|
||||
--config=${AOM_CONFIG_DIR}/${AOM_TARGET_CPU}_rtcd_config.rtcd
|
||||
${config} > ${output}
|
||||
DEPENDS ${config}
|
||||
COMMENT "Generating ${output}"
|
||||
WORKING_DIRECTORY ${AOM_CONFIG_DIR} VERBATIM)
|
||||
add_custom_command(OUTPUT ${output}
|
||||
COMMAND ${PERL_EXECUTABLE} ARGS
|
||||
"${AOM_ROOT}/build/make/rtcd.pl"
|
||||
--arch=${AOM_TARGET_CPU}
|
||||
--sym=${symbol} ${AOM_RTCD_FLAGS}
|
||||
--config=${AOM_CONFIG_DIR}/config/aom_config.h
|
||||
${config} > ${output}
|
||||
DEPENDS ${config}
|
||||
COMMENT "Generating ${output}"
|
||||
WORKING_DIRECTORY ${AOM_CONFIG_DIR} VERBATIM)
|
||||
set_property(SOURCE ${source} PROPERTY OBJECT_DEPENDS ${output})
|
||||
set_property(SOURCE ${output} PROPERTY GENERATED)
|
||||
endfunction()
|
||||
|
|
|
|||
6
third_party/aom/build/cmake/cpu.cmake
vendored
6
third_party/aom/build/cmake/cpu.cmake
vendored
|
|
@ -91,9 +91,3 @@ elseif("${AOM_TARGET_CPU}" MATCHES "^x86")
|
|||
endif()
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
foreach(config_var ${AOM_CONFIG_VARS})
|
||||
if(${${config_var}})
|
||||
set(RTCD_${config_var} yes)
|
||||
endif()
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -98,13 +98,3 @@ foreach(cache_var ${cmake_cache_vars})
|
|||
"${cache_var} equ \${${cache_var}}\n")
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
set(aom_rtcd_config_template "${AOM_CONFIG_DIR}/rtcd_config.cmake")
|
||||
file(WRITE "${aom_rtcd_config_template}" ${cmake_file_header_block})
|
||||
foreach(cache_var ${cmake_cache_vars})
|
||||
if(NOT "${cache_var}" MATCHES "AOM_CONFIG_DIR\|AOM_ROOT\|^CMAKE_\|INLINE")
|
||||
file(APPEND "${aom_rtcd_config_template}"
|
||||
"${cache_var}=\${RTCD_${cache_var}}\n")
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue