mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-06 16:56:55 +08:00
Documentation update for GYP and envionment variables
Bug: libyuv:816, libyuv:804 Change-Id: I73a6960b2cc6f3ca31c43c44ccd8b01f5e9e7013 Test" Untested Reviewed-on: https://chromium-review.googlesource.com/1205053 Reviewed-by: Nico Weber <thakis@chromium.org> Commit-Queue: Frank Barchard <fbarchard@chromium.org>
This commit is contained in:
parent
759188cf02
commit
9a07219dc8
@ -1,6 +1,6 @@
|
|||||||
Name: libyuv
|
Name: libyuv
|
||||||
URL: http://code.google.com/p/libyuv/
|
URL: http://code.google.com/p/libyuv/
|
||||||
Version: 1716
|
Version: 1717
|
||||||
License: BSD
|
License: BSD
|
||||||
License File: LICENSE
|
License File: LICENSE
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,10 @@ For test purposes, environment variables can be set to control libyuv behavior.
|
|||||||
|
|
||||||
By default the cpu is detected and the most advanced form of SIMD is used. But you can disable instruction sets selectively, or completely, falling back on C code. Set the variable to 1 to disable the specified instruction set.
|
By default the cpu is detected and the most advanced form of SIMD is used. But you can disable instruction sets selectively, or completely, falling back on C code. Set the variable to 1 to disable the specified instruction set.
|
||||||
|
|
||||||
|
## All CPUs
|
||||||
LIBYUV_DISABLE_ASM
|
LIBYUV_DISABLE_ASM
|
||||||
|
|
||||||
|
## Intel CPUs
|
||||||
LIBYUV_DISABLE_X86
|
LIBYUV_DISABLE_X86
|
||||||
LIBYUV_DISABLE_SSE2
|
LIBYUV_DISABLE_SSE2
|
||||||
LIBYUV_DISABLE_SSSE3
|
LIBYUV_DISABLE_SSSE3
|
||||||
@ -14,12 +17,25 @@ By default the cpu is detected and the most advanced form of SIMD is used. But
|
|||||||
LIBYUV_DISABLE_SSE42
|
LIBYUV_DISABLE_SSE42
|
||||||
LIBYUV_DISABLE_AVX
|
LIBYUV_DISABLE_AVX
|
||||||
LIBYUV_DISABLE_AVX2
|
LIBYUV_DISABLE_AVX2
|
||||||
LIBYUV_DISABLE_AVX512BW
|
|
||||||
LIBYUV_DISABLE_ERMS
|
LIBYUV_DISABLE_ERMS
|
||||||
LIBYUV_DISABLE_FMA3
|
LIBYUV_DISABLE_FMA3
|
||||||
LIBYUV_DISABLE_MSA
|
LIBYUV_DISABLE_F16C
|
||||||
|
LIBYUV_DISABLE_AVX512BW
|
||||||
|
LIBYUV_DISABLE_AVX512VL
|
||||||
|
LIBYUV_DISABLE_AVX512VBMI
|
||||||
|
LIBYUV_DISABLE_AVX512VBMI2
|
||||||
|
LIBYUV_DISABLE_AVX512VBITALG
|
||||||
|
LIBYUV_DISABLE_AVX512VPOPCNTDQ
|
||||||
|
LIBYUV_DISABLE_GFNI
|
||||||
|
|
||||||
|
## ARM CPUs
|
||||||
|
|
||||||
LIBYUV_DISABLE_NEON
|
LIBYUV_DISABLE_NEON
|
||||||
|
|
||||||
|
## MIPS CPUs
|
||||||
|
LIBYUV_DISABLE_MSA
|
||||||
|
LIBYUV_DISABLE_MMI
|
||||||
|
|
||||||
# Test Width/Height/Repeat
|
# Test Width/Height/Repeat
|
||||||
|
|
||||||
The unittests default to a small image (128x72) to run fast. This can be set by environment variable to test a specific resolutions.
|
The unittests default to a small image (128x72) to run fast. This can be set by environment variable to test a specific resolutions.
|
||||||
|
|||||||
@ -27,7 +27,7 @@ Then you'll get a .gclient file like:
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
For iOS add `;target_os=['ios'];` to your OSX .gclient and run `GYP_DEFINES="OS=ios" gclient sync.`
|
For iOS add `;target_os=['ios'];` to your OSX .gclient and run `gclient sync.`
|
||||||
|
|
||||||
Browse the Git reprository: https://chromium.googlesource.com/libyuv/libyuv/+/master
|
Browse the Git reprository: https://chromium.googlesource.com/libyuv/libyuv/+/master
|
||||||
|
|
||||||
@ -48,11 +48,8 @@ For Android add `;target_os=['android'];` to your Linux .gclient
|
|||||||
|
|
||||||
Then run:
|
Then run:
|
||||||
|
|
||||||
export GYP_DEFINES="OS=android"
|
|
||||||
gclient sync
|
gclient sync
|
||||||
|
|
||||||
The sync will generate native build files for your environment using gyp (Windows: Visual Studio, OSX: XCode, Linux: make). This generation can also be forced manually: `gclient runhooks`
|
|
||||||
|
|
||||||
To get just the source (not buildable):
|
To get just the source (not buildable):
|
||||||
|
|
||||||
git clone https://chromium.googlesource.com/libyuv/libyuv
|
git clone https://chromium.googlesource.com/libyuv/libyuv
|
||||||
@ -135,8 +132,8 @@ ia32
|
|||||||
|
|
||||||
mips
|
mips
|
||||||
|
|
||||||
gn gen out/Release "--args=is_debug=false target_os=\"android\" target_cpu=\"mips64el\" mips_arch_variant=\"r6\" mips_use_msa=true is_component_build=true is_clang=true"
|
gn gen out/Release "--args=is_debug=false target_os=\"android\" target_cpu=\"mips64el\" mips_arch_variant=\"r6\" mips_use_msa=true is_component_build=true"
|
||||||
gn gen out/Debug "--args=is_debug=true target_os=\"android\" target_cpu=\"mips64el\" mips_arch_variant=\"r6\" mips_use_msa=true is_component_build=true is_clang=true"
|
gn gen out/Debug "--args=is_debug=true target_os=\"android\" target_cpu=\"mips64el\" mips_arch_variant=\"r6\" mips_use_msa=true is_component_build=true"
|
||||||
ninja -v -C out/Debug libyuv_unittest
|
ninja -v -C out/Debug libyuv_unittest
|
||||||
ninja -v -C out/Release libyuv_unittest
|
ninja -v -C out/Release libyuv_unittest
|
||||||
|
|
||||||
@ -182,8 +179,8 @@ Running test with C code:
|
|||||||
|
|
||||||
mips
|
mips
|
||||||
|
|
||||||
gn gen out/Release "--args=is_debug=false target_os=\"linux\" target_cpu=\"mips64el\" mips_arch_variant=\"loongson3\" mips_use_mmi=true is_component_build=false is_clang=false use_sysroot=false use_gold=false"
|
gn gen out/Release "--args=is_debug=false target_os=\"linux\" target_cpu=\"mips64el\" mips_arch_variant=\"loongson3\" mips_use_mmi=true is_component_build=false use_sysroot=false use_gold=false"
|
||||||
gn gen out/Debug "--args=is_debug=true target_os=\"linux\" target_cpu=\"mips64el\" mips_arch_variant=\"loongson3\" mips_use_mmi=true is_component_build=false is_clang=false use_sysroot=false use_gold=false"
|
gn gen out/Debug "--args=is_debug=true target_os=\"linux\" target_cpu=\"mips64el\" mips_arch_variant=\"loongson3\" mips_use_mmi=true is_component_build=false use_sysroot=false use_gold=false"
|
||||||
ninja -v -C out/Debug libyuv_unittest
|
ninja -v -C out/Debug libyuv_unittest
|
||||||
ninja -v -C out/Release libyuv_unittest
|
ninja -v -C out/Release libyuv_unittest
|
||||||
|
|
||||||
|
|||||||
@ -11,6 +11,6 @@
|
|||||||
#ifndef INCLUDE_LIBYUV_VERSION_H_
|
#ifndef INCLUDE_LIBYUV_VERSION_H_
|
||||||
#define INCLUDE_LIBYUV_VERSION_H_
|
#define INCLUDE_LIBYUV_VERSION_H_
|
||||||
|
|
||||||
#define LIBYUV_VERSION 1716
|
#define LIBYUV_VERSION 1717
|
||||||
|
|
||||||
#endif // INCLUDE_LIBYUV_VERSION_H_
|
#endif // INCLUDE_LIBYUV_VERSION_H_
|
||||||
|
|||||||
@ -66,6 +66,9 @@ int TestCpuEnv(int cpu_info) {
|
|||||||
if (TestEnv("LIBYUV_DISABLE_MSA")) {
|
if (TestEnv("LIBYUV_DISABLE_MSA")) {
|
||||||
cpu_info &= ~libyuv::kCpuHasMSA;
|
cpu_info &= ~libyuv::kCpuHasMSA;
|
||||||
}
|
}
|
||||||
|
if (TestEnv("LIBYUV_DISABLE_MMI")) {
|
||||||
|
cpu_info &= ~libyuv::kCpuHasMMI;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
#if !defined(__pnacl__) && !defined(__CLR_VER) && \
|
#if !defined(__pnacl__) && !defined(__CLR_VER) && \
|
||||||
(defined(__x86_64__) || defined(_M_X64) || defined(__i386__) || \
|
(defined(__x86_64__) || defined(_M_X64) || defined(__i386__) || \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user