mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-27 10:57:34 +09:00
Update libaom to commit ID 1e227d41f0616de9548a673a83a21ef990b62591
This commit is contained in:
parent
77c9089b7d
commit
368651059a
526 changed files with 34535 additions and 15900 deletions
6
third_party/aom/aom_ports/aom_once.h
vendored
6
third_party/aom/aom_ports/aom_once.h
vendored
|
|
@ -9,8 +9,8 @@
|
|||
* PATENTS file, you can obtain it at www.aomedia.org/license/patent.
|
||||
*/
|
||||
|
||||
#ifndef AOM_PORTS_AOM_ONCE_H_
|
||||
#define AOM_PORTS_AOM_ONCE_H_
|
||||
#ifndef AOM_AOM_PORTS_AOM_ONCE_H_
|
||||
#define AOM_AOM_PORTS_AOM_ONCE_H_
|
||||
|
||||
#include "config/aom_config.h"
|
||||
|
||||
|
|
@ -135,4 +135,4 @@ static void aom_once(void (*func)(void)) {
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif // AOM_PORTS_AOM_ONCE_H_
|
||||
#endif // AOM_AOM_PORTS_AOM_ONCE_H_
|
||||
|
|
|
|||
6
third_party/aom/aom_ports/aom_timer.h
vendored
6
third_party/aom/aom_ports/aom_timer.h
vendored
|
|
@ -9,8 +9,8 @@
|
|||
* PATENTS file, you can obtain it at www.aomedia.org/license/patent.
|
||||
*/
|
||||
|
||||
#ifndef AOM_PORTS_AOM_TIMER_H_
|
||||
#define AOM_PORTS_AOM_TIMER_H_
|
||||
#ifndef AOM_AOM_PORTS_AOM_TIMER_H_
|
||||
#define AOM_AOM_PORTS_AOM_TIMER_H_
|
||||
|
||||
#include "config/aom_config.h"
|
||||
|
||||
|
|
@ -108,4 +108,4 @@ static INLINE int aom_usec_timer_elapsed(struct aom_usec_timer *t) {
|
|||
|
||||
#endif /* CONFIG_OS_SUPPORT */
|
||||
|
||||
#endif // AOM_PORTS_AOM_TIMER_H_
|
||||
#endif // AOM_AOM_PORTS_AOM_TIMER_H_
|
||||
|
|
|
|||
8
third_party/aom/aom_ports/arm.h
vendored
8
third_party/aom/aom_ports/arm.h
vendored
|
|
@ -9,8 +9,8 @@
|
|||
* PATENTS file, you can obtain it at www.aomedia.org/license/patent.
|
||||
*/
|
||||
|
||||
#ifndef AOM_PORTS_ARM_H_
|
||||
#define AOM_PORTS_ARM_H_
|
||||
#ifndef AOM_AOM_PORTS_ARM_H_
|
||||
#define AOM_AOM_PORTS_ARM_H_
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "config/aom_config.h"
|
||||
|
|
@ -26,7 +26,7 @@ extern "C" {
|
|||
/*ARMv7 optional NEON instructions.*/
|
||||
#define HAS_NEON 0x04
|
||||
|
||||
int arm_cpu_caps(void);
|
||||
int aom_arm_cpu_caps(void);
|
||||
|
||||
// Earlier gcc compilers have issues with some neon intrinsics
|
||||
#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ == 4 && \
|
||||
|
|
@ -38,4 +38,4 @@ int arm_cpu_caps(void);
|
|||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // AOM_PORTS_ARM_H_
|
||||
#endif // AOM_AOM_PORTS_ARM_H_
|
||||
|
|
|
|||
8
third_party/aom/aom_ports/arm_cpudetect.c
vendored
8
third_party/aom/aom_ports/arm_cpudetect.c
vendored
|
|
@ -40,7 +40,7 @@ static int arm_cpu_env_mask(void) {
|
|||
|
||||
#if !CONFIG_RUNTIME_CPU_DETECT
|
||||
|
||||
int arm_cpu_caps(void) {
|
||||
int aom_arm_cpu_caps(void) {
|
||||
/* This function should actually be a no-op. There is no way to adjust any of
|
||||
* these because the RTCD tables do not exist: the functions are called
|
||||
* statically */
|
||||
|
|
@ -62,7 +62,7 @@ int arm_cpu_caps(void) {
|
|||
#define WIN32_EXTRA_LEAN
|
||||
#include <windows.h>
|
||||
|
||||
int arm_cpu_caps(void) {
|
||||
int aom_arm_cpu_caps(void) {
|
||||
int flags;
|
||||
int mask;
|
||||
if (!arm_cpu_env_flags(&flags)) {
|
||||
|
|
@ -90,7 +90,7 @@ int arm_cpu_caps(void) {
|
|||
#elif defined(__ANDROID__) /* end _MSC_VER */
|
||||
#include <cpu-features.h>
|
||||
|
||||
int arm_cpu_caps(void) {
|
||||
int aom_arm_cpu_caps(void) {
|
||||
int flags;
|
||||
int mask;
|
||||
uint64_t features;
|
||||
|
|
@ -110,7 +110,7 @@ int arm_cpu_caps(void) {
|
|||
|
||||
#include <stdio.h>
|
||||
|
||||
int arm_cpu_caps(void) {
|
||||
int aom_arm_cpu_caps(void) {
|
||||
FILE *fin;
|
||||
int flags;
|
||||
int mask;
|
||||
|
|
|
|||
10
third_party/aom/aom_ports/bitops.h
vendored
10
third_party/aom/aom_ports/bitops.h
vendored
|
|
@ -9,12 +9,13 @@
|
|||
* PATENTS file, you can obtain it at www.aomedia.org/license/patent.
|
||||
*/
|
||||
|
||||
#ifndef AOM_PORTS_BITOPS_H_
|
||||
#define AOM_PORTS_BITOPS_H_
|
||||
#ifndef AOM_AOM_PORTS_BITOPS_H_
|
||||
#define AOM_AOM_PORTS_BITOPS_H_
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "aom_ports/msvc.h"
|
||||
#include "config/aom_config.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#if defined(_M_X64) || defined(_M_IX86)
|
||||
|
|
@ -27,6 +28,8 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
// get_msb:
|
||||
// Returns (int)floor(log2(n)). n must be > 0.
|
||||
// These versions of get_msb() are only valid when n != 0 because all
|
||||
// of the optimized versions are undefined when n == 0:
|
||||
// https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html
|
||||
|
|
@ -49,7 +52,6 @@ static INLINE int get_msb(unsigned int n) {
|
|||
}
|
||||
#undef USE_MSC_INTRINSICS
|
||||
#else
|
||||
// Returns (int)floor(log2(n)). n must be > 0.
|
||||
static INLINE int get_msb(unsigned int n) {
|
||||
int log = 0;
|
||||
unsigned int value = n;
|
||||
|
|
@ -73,4 +75,4 @@ static INLINE int get_msb(unsigned int n) {
|
|||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // AOM_PORTS_BITOPS_H_
|
||||
#endif // AOM_AOM_PORTS_BITOPS_H_
|
||||
|
|
|
|||
6
third_party/aom/aom_ports/emmintrin_compat.h
vendored
6
third_party/aom/aom_ports/emmintrin_compat.h
vendored
|
|
@ -9,8 +9,8 @@
|
|||
* PATENTS file, you can obtain it at www.aomedia.org/license/patent.
|
||||
*/
|
||||
|
||||
#ifndef AOM_PORTS_EMMINTRIN_COMPAT_H_
|
||||
#define AOM_PORTS_EMMINTRIN_COMPAT_H_
|
||||
#ifndef AOM_AOM_PORTS_EMMINTRIN_COMPAT_H_
|
||||
#define AOM_AOM_PORTS_EMMINTRIN_COMPAT_H_
|
||||
|
||||
#if defined(__GNUC__) && __GNUC__ < 4
|
||||
/* From emmintrin.h (gcc 4.5.3) */
|
||||
|
|
@ -53,4 +53,4 @@ extern __inline __m128d
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif // AOM_PORTS_EMMINTRIN_COMPAT_H_
|
||||
#endif // AOM_AOM_PORTS_EMMINTRIN_COMPAT_H_
|
||||
|
|
|
|||
6
third_party/aom/aom_ports/mem.h
vendored
6
third_party/aom/aom_ports/mem.h
vendored
|
|
@ -9,8 +9,8 @@
|
|||
* PATENTS file, you can obtain it at www.aomedia.org/license/patent.
|
||||
*/
|
||||
|
||||
#ifndef AOM_PORTS_MEM_H_
|
||||
#define AOM_PORTS_MEM_H_
|
||||
#ifndef AOM_AOM_PORTS_MEM_H_
|
||||
#define AOM_AOM_PORTS_MEM_H_
|
||||
|
||||
#include "aom/aom_integer.h"
|
||||
#include "config/aom_config.h"
|
||||
|
|
@ -66,4 +66,4 @@
|
|||
#define CONVERT_TO_SHORTPTR(x) ((uint16_t *)(((uintptr_t)(x)) << 1))
|
||||
#define CONVERT_TO_BYTEPTR(x) ((uint8_t *)(((uintptr_t)(x)) >> 1))
|
||||
|
||||
#endif // AOM_PORTS_MEM_H_
|
||||
#endif // AOM_AOM_PORTS_MEM_H_
|
||||
|
|
|
|||
6
third_party/aom/aom_ports/mem_ops.h
vendored
6
third_party/aom/aom_ports/mem_ops.h
vendored
|
|
@ -9,8 +9,8 @@
|
|||
* PATENTS file, you can obtain it at www.aomedia.org/license/patent.
|
||||
*/
|
||||
|
||||
#ifndef AOM_PORTS_MEM_OPS_H_
|
||||
#define AOM_PORTS_MEM_OPS_H_
|
||||
#ifndef AOM_AOM_PORTS_MEM_OPS_H_
|
||||
#define AOM_AOM_PORTS_MEM_OPS_H_
|
||||
|
||||
/* \file
|
||||
* \brief Provides portable memory access primitives
|
||||
|
|
@ -225,4 +225,4 @@ static AOM_INLINE void mem_put_le32(void *vmem, MEM_VALUE_T val) {
|
|||
mem[3] = (MAU_T)((val >> 24) & 0xff);
|
||||
}
|
||||
/* clang-format on */
|
||||
#endif // AOM_PORTS_MEM_OPS_H_
|
||||
#endif // AOM_AOM_PORTS_MEM_OPS_H_
|
||||
|
|
|
|||
6
third_party/aom/aom_ports/mem_ops_aligned.h
vendored
6
third_party/aom/aom_ports/mem_ops_aligned.h
vendored
|
|
@ -9,8 +9,8 @@
|
|||
* PATENTS file, you can obtain it at www.aomedia.org/license/patent.
|
||||
*/
|
||||
|
||||
#ifndef AOM_PORTS_MEM_OPS_ALIGNED_H_
|
||||
#define AOM_PORTS_MEM_OPS_ALIGNED_H_
|
||||
#ifndef AOM_AOM_PORTS_MEM_OPS_ALIGNED_H_
|
||||
#define AOM_AOM_PORTS_MEM_OPS_ALIGNED_H_
|
||||
|
||||
#include "aom/aom_integer.h"
|
||||
|
||||
|
|
@ -170,4 +170,4 @@ mem_put_le_aligned_generic(32)
|
|||
#undef swap_endian_32_se
|
||||
/* clang-format on */
|
||||
|
||||
#endif // AOM_PORTS_MEM_OPS_ALIGNED_H_
|
||||
#endif // AOM_AOM_PORTS_MEM_OPS_ALIGNED_H_
|
||||
|
|
|
|||
6
third_party/aom/aom_ports/msvc.h
vendored
6
third_party/aom/aom_ports/msvc.h
vendored
|
|
@ -9,8 +9,8 @@
|
|||
* PATENTS file, you can obtain it at www.aomedia.org/license/patent.
|
||||
*/
|
||||
|
||||
#ifndef AOM_PORTS_MSVC_H_
|
||||
#define AOM_PORTS_MSVC_H_
|
||||
#ifndef AOM_AOM_PORTS_MSVC_H_
|
||||
#define AOM_AOM_PORTS_MSVC_H_
|
||||
#ifdef _MSC_VER
|
||||
|
||||
#include "config/aom_config.h"
|
||||
|
|
@ -72,4 +72,4 @@ static INLINE __m256i _mm256_insert_epi32(__m256i a, int b, const int i) {
|
|||
#endif // _MSC_VER <= 1900
|
||||
#endif // HAVE_AVX
|
||||
#endif // _MSC_VER
|
||||
#endif // AOM_PORTS_MSVC_H_
|
||||
#endif // AOM_AOM_PORTS_MSVC_H_
|
||||
|
|
|
|||
6
third_party/aom/aom_ports/ppc.h
vendored
6
third_party/aom/aom_ports/ppc.h
vendored
|
|
@ -9,8 +9,8 @@
|
|||
* PATENTS file, you can obtain it at www.aomedia.org/license/patent.
|
||||
*/
|
||||
|
||||
#ifndef AOM_PORTS_PPC_H_
|
||||
#define AOM_PORTS_PPC_H_
|
||||
#ifndef AOM_AOM_PORTS_PPC_H_
|
||||
#define AOM_AOM_PORTS_PPC_H_
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "config/aom_config.h"
|
||||
|
|
@ -27,4 +27,4 @@ int ppc_simd_caps(void);
|
|||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // AOM_PORTS_PPC_H_
|
||||
#endif // AOM_AOM_PORTS_PPC_H_
|
||||
|
|
|
|||
6
third_party/aom/aom_ports/sanitizer.h
vendored
6
third_party/aom/aom_ports/sanitizer.h
vendored
|
|
@ -9,8 +9,8 @@
|
|||
* PATENTS file, you can obtain it at www.aomedia.org/license/patent.
|
||||
*/
|
||||
|
||||
#ifndef AOM_PORTS_SANITIZER_H_
|
||||
#define AOM_PORTS_SANITIZER_H_
|
||||
#ifndef AOM_AOM_PORTS_SANITIZER_H_
|
||||
#define AOM_AOM_PORTS_SANITIZER_H_
|
||||
|
||||
// AddressSanitizer support.
|
||||
|
||||
|
|
@ -35,4 +35,4 @@
|
|||
#define ASAN_UNPOISON_MEMORY_REGION(addr, size) ((void)(addr), (void)(size))
|
||||
#endif
|
||||
|
||||
#endif // AOM_PORTS_SANITIZER_H_
|
||||
#endif // AOM_AOM_PORTS_SANITIZER_H_
|
||||
|
|
|
|||
6
third_party/aom/aom_ports/system_state.h
vendored
6
third_party/aom/aom_ports/system_state.h
vendored
|
|
@ -9,8 +9,8 @@
|
|||
* PATENTS file, you can obtain it at www.aomedia.org/license/patent.
|
||||
*/
|
||||
|
||||
#ifndef AOM_PORTS_SYSTEM_STATE_H_
|
||||
#define AOM_PORTS_SYSTEM_STATE_H_
|
||||
#ifndef AOM_AOM_PORTS_SYSTEM_STATE_H_
|
||||
#define AOM_AOM_PORTS_SYSTEM_STATE_H_
|
||||
|
||||
#include "config/aom_config.h"
|
||||
|
||||
|
|
@ -20,4 +20,4 @@ void aom_reset_mmx_state(void);
|
|||
#else
|
||||
#define aom_clear_system_state()
|
||||
#endif // ARCH_X86 || ARCH_X86_64
|
||||
#endif // AOM_PORTS_SYSTEM_STATE_H_
|
||||
#endif // AOM_AOM_PORTS_SYSTEM_STATE_H_
|
||||
|
|
|
|||
6
third_party/aom/aom_ports/x86.h
vendored
6
third_party/aom/aom_ports/x86.h
vendored
|
|
@ -9,8 +9,8 @@
|
|||
* PATENTS file, you can obtain it at www.aomedia.org/license/patent.
|
||||
*/
|
||||
|
||||
#ifndef AOM_PORTS_X86_H_
|
||||
#define AOM_PORTS_X86_H_
|
||||
#ifndef AOM_AOM_PORTS_X86_H_
|
||||
#define AOM_AOM_PORTS_X86_H_
|
||||
#include <stdlib.h>
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
|
|
@ -322,4 +322,4 @@ extern void aom_reset_mmx_state(void);
|
|||
} // extern "C"
|
||||
#endif
|
||||
|
||||
#endif // AOM_PORTS_X86_H_
|
||||
#endif // AOM_AOM_PORTS_X86_H_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue