diff options
author | Johann <johannkoenig@google.com> | 2014-06-16 11:10:07 -0700 |
---|---|---|
committer | Patrick Tjin <pattjin@google.com> | 2015-01-21 13:22:51 -0800 |
commit | 470ef077237c82c7ab7ba2def07241a6a1f9349c (patch) | |
tree | c14a5232940efb52ebb7cba35d5e45977cb1e3d4 /x86/vpx_config.c | |
parent | 004e13f2a5a0cf8e2abf94af22cfcee4572313ce (diff) | |
download | android_external_libvpx-470ef077237c82c7ab7ba2def07241a6a1f9349c.tar.gz android_external_libvpx-470ef077237c82c7ab7ba2def07241a6a1f9349c.tar.bz2 android_external_libvpx-470ef077237c82c7ab7ba2def07241a6a1f9349c.zip |
Turn on libvpx x86 optimizations [DO NOT MERGE]
With yasm available we can use the assembly:
https://android-review.googlesource.com/#/c/96972/
Comparing with the VP9 video playback with C-reference software decode,
before and after these patches applied,
Performance data with 2 test clips:
Clips bit rate fps(after) fps(before)
vp9_720p_qp10to20_1510Kbps_30fps.webm 1510Kbps 30 12
vp9_720p_qp20to30_840Kbps_30fps.webm 840Kbps 30 13
(cherry-picked from afecaee6099284387688b9ce17ec3642ec4e5c1b)
Change-Id: I9c67e5ae302f923134e073f4bafb09fb1f3fe94d
Diffstat (limited to 'x86/vpx_config.c')
-rw-r--r-- | x86/vpx_config.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/x86/vpx_config.c b/x86/vpx_config.c new file mode 100644 index 0000000..3a9faed --- /dev/null +++ b/x86/vpx_config.c @@ -0,0 +1,9 @@ +/* Copyright (c) 2011 The WebM project authors. All Rights Reserved. */ +/* */ +/* Use of this source code is governed by a BSD-style license */ +/* that can be found in the LICENSE file in the root of the source */ +/* tree. An additional intellectual property rights grant can be found */ +/* in the file PATENTS. All contributing project authors may */ +/* be found in the AUTHORS file in the root of the source tree. */ +static const char* const cfg = "--force-target=x86-android-gcc --disable-runtime-cpu-detect --sdk-path=/usr/local/google/home/johannkoenig/android-ndk --disable-vp9-encoder --disable-examples --disable-docs --disable-sse3 --disable-ssse3 --disable-sse4_1 --disable-avx --disable-avx2 --enable-pic"; +const char *vpx_codec_build_config(void) {return cfg;} |