Update libaom to commit ID 1e227d41f0616de9548a673a83a21ef990b62591

This commit is contained in:
trav90 2018-10-19 23:05:00 -05:00 • committed by Roy Tam
commit 368651059a
526 changed files with 34535 additions and 15900 deletions

View file

@ -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_

View file

@ -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_

View file

@ -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_

View file

@ -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;

View file

@ -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_

View file

@ -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_

View file

@ -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_

View file

@ -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_

View file

@ -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_

View file

@ -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_

View file

@ -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_

View file

@ -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_

View file

@ -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_

View file

@ -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_