diff options
author | Marco Nelissen <marcone@google.com> | 2017-04-04 08:41:32 -0700 |
---|---|---|
committer | gitbuildkicker <android-build@google.com> | 2017-04-19 10:59:08 -0700 |
commit | a7c0c9176e722456993da3439d156b8fe8c13061 (patch) | |
tree | b428fcd3614cc8c868155283ca5ef65770cbd09b | |
parent | 6f5927de29337fa532c64d0ef8c7cb68f7c89889 (diff) | |
download | libvpx-a7c0c9176e722456993da3439d156b8fe8c13061.tar.gz |
Limit vpx decoder to 4K framesandroid-7.1.1_r50android-7.1.1_r48android-7.1.1_r45android-7.1.1_r42
Bug: 34360591
Change-Id: If66c3498b9a7052219af2dcaa2ef33e1408a8587
(cherry picked from commit 8c714fb5bb5199f6072595c905d226b6f2e858c0)
-rw-r--r-- | config/arm-neon/vpx_config.asm | 2 | ||||
-rw-r--r-- | config/arm-neon/vpx_config.c | 2 | ||||
-rw-r--r-- | config/arm-neon/vpx_config.h | 4 | ||||
-rw-r--r-- | config/arm/vpx_config.asm | 2 | ||||
-rw-r--r-- | config/arm/vpx_config.c | 2 | ||||
-rw-r--r-- | config/arm/vpx_config.h | 4 | ||||
-rw-r--r-- | config/arm64/vpx_config.asm | 2 | ||||
-rw-r--r-- | config/arm64/vpx_config.c | 2 | ||||
-rw-r--r-- | config/arm64/vpx_config.h | 4 | ||||
-rw-r--r-- | config/generic/vpx_config.asm | 2 | ||||
-rw-r--r-- | config/generic/vpx_config.c | 2 | ||||
-rw-r--r-- | config/generic/vpx_config.h | 4 | ||||
-rw-r--r-- | config/mips32-dspr2/vpx_config.c | 2 | ||||
-rw-r--r-- | config/mips32-dspr2/vpx_config.h | 4 | ||||
-rw-r--r-- | config/mips32/vpx_config.c | 2 | ||||
-rw-r--r-- | config/mips32/vpx_config.h | 4 | ||||
-rw-r--r-- | config/mips64/vpx_config.c | 2 | ||||
-rw-r--r-- | config/mips64/vpx_config.h | 4 | ||||
-rw-r--r-- | config/x86/vpx_config.asm | 2 | ||||
-rw-r--r-- | config/x86/vpx_config.c | 2 | ||||
-rw-r--r-- | config/x86/vpx_config.h | 4 | ||||
-rw-r--r-- | config/x86_64/vpx_config.asm | 2 | ||||
-rw-r--r-- | config/x86_64/vpx_config.c | 2 | ||||
-rw-r--r-- | config/x86_64/vpx_config.h | 4 | ||||
-rwxr-xr-x | generate_config.sh | 2 |
25 files changed, 43 insertions, 25 deletions
diff --git a/config/arm-neon/vpx_config.asm b/config/arm-neon/vpx_config.asm index 5b623b8cb..0004a04f9 100644 --- a/config/arm-neon/vpx_config.asm +++ b/config/arm-neon/vpx_config.asm @@ -82,7 +82,7 @@ .equ CONFIG_COEFFICIENT_RANGE_CHECKING , 0 .equ CONFIG_VP9_HIGHBITDEPTH , 0 .equ CONFIG_EXPERIMENTAL , 0 -.equ CONFIG_SIZE_LIMIT , 0 +.equ CONFIG_SIZE_LIMIT , 1 .equ CONFIG_SPATIAL_SVC , 0 .equ CONFIG_FP_MB_STATS , 0 .equ CONFIG_EMULATE_HARDWARE , 0 diff --git a/config/arm-neon/vpx_config.c b/config/arm-neon/vpx_config.c index 48dd6068c..0eb0a305c 100644 --- a/config/arm-neon/vpx_config.c +++ b/config/arm-neon/vpx_config.c @@ -6,5 +6,5 @@ /* in the file PATENTS. All contributing project authors may */ /* be found in the AUTHORS file in the root of the source tree. */ #include "vpx/vpx_codec.h" -static const char* const cfg = "--target=armv7-linux-gcc --enable-external-build --enable-realtime-only --enable-pic --disable-runtime-cpu-detect"; +static const char* const cfg = "--target=armv7-linux-gcc --enable-external-build --enable-realtime-only --enable-pic --disable-runtime-cpu-detect --disable-install-docs --size-limit=4096x3072"; const char *vpx_codec_build_config(void) {return cfg;} diff --git a/config/arm-neon/vpx_config.h b/config/arm-neon/vpx_config.h index d9d5f1ca3..113591195 100644 --- a/config/arm-neon/vpx_config.h +++ b/config/arm-neon/vpx_config.h @@ -91,9 +91,11 @@ #define CONFIG_COEFFICIENT_RANGE_CHECKING 0 #define CONFIG_VP9_HIGHBITDEPTH 0 #define CONFIG_EXPERIMENTAL 0 -#define CONFIG_SIZE_LIMIT 0 +#define CONFIG_SIZE_LIMIT 1 #define CONFIG_SPATIAL_SVC 0 #define CONFIG_FP_MB_STATS 0 #define CONFIG_EMULATE_HARDWARE 0 #define CONFIG_MISC_FIXES 0 +#define DECODE_WIDTH_LIMIT 4096 +#define DECODE_HEIGHT_LIMIT 3072 #endif /* VPX_CONFIG_H */ diff --git a/config/arm/vpx_config.asm b/config/arm/vpx_config.asm index 992fdee9c..3d570b8d5 100644 --- a/config/arm/vpx_config.asm +++ b/config/arm/vpx_config.asm @@ -82,7 +82,7 @@ .equ CONFIG_COEFFICIENT_RANGE_CHECKING , 0 .equ CONFIG_VP9_HIGHBITDEPTH , 0 .equ CONFIG_EXPERIMENTAL , 0 -.equ CONFIG_SIZE_LIMIT , 0 +.equ CONFIG_SIZE_LIMIT , 1 .equ CONFIG_SPATIAL_SVC , 0 .equ CONFIG_FP_MB_STATS , 0 .equ CONFIG_EMULATE_HARDWARE , 0 diff --git a/config/arm/vpx_config.c b/config/arm/vpx_config.c index a45c0d2fa..415043c76 100644 --- a/config/arm/vpx_config.c +++ b/config/arm/vpx_config.c @@ -6,5 +6,5 @@ /* in the file PATENTS. All contributing project authors may */ /* be found in the AUTHORS file in the root of the source tree. */ #include "vpx/vpx_codec.h" -static const char* const cfg = "--target=armv6-linux-gcc --enable-external-build --enable-realtime-only --enable-pic --disable-runtime-cpu-detect"; +static const char* const cfg = "--target=armv6-linux-gcc --enable-external-build --enable-realtime-only --enable-pic --disable-runtime-cpu-detect --disable-install-docs --size-limit=4096x3072"; const char *vpx_codec_build_config(void) {return cfg;} diff --git a/config/arm/vpx_config.h b/config/arm/vpx_config.h index d6d280949..df975a7b9 100644 --- a/config/arm/vpx_config.h +++ b/config/arm/vpx_config.h @@ -91,9 +91,11 @@ #define CONFIG_COEFFICIENT_RANGE_CHECKING 0 #define CONFIG_VP9_HIGHBITDEPTH 0 #define CONFIG_EXPERIMENTAL 0 -#define CONFIG_SIZE_LIMIT 0 +#define CONFIG_SIZE_LIMIT 1 #define CONFIG_SPATIAL_SVC 0 #define CONFIG_FP_MB_STATS 0 #define CONFIG_EMULATE_HARDWARE 0 #define CONFIG_MISC_FIXES 0 +#define DECODE_WIDTH_LIMIT 4096 +#define DECODE_HEIGHT_LIMIT 3072 #endif /* VPX_CONFIG_H */ diff --git a/config/arm64/vpx_config.asm b/config/arm64/vpx_config.asm index d7d6652e9..9ebee2a43 100644 --- a/config/arm64/vpx_config.asm +++ b/config/arm64/vpx_config.asm @@ -82,7 +82,7 @@ .equ CONFIG_COEFFICIENT_RANGE_CHECKING , 0 .equ CONFIG_VP9_HIGHBITDEPTH , 0 .equ CONFIG_EXPERIMENTAL , 0 -.equ CONFIG_SIZE_LIMIT , 0 +.equ CONFIG_SIZE_LIMIT , 1 .equ CONFIG_SPATIAL_SVC , 0 .equ CONFIG_FP_MB_STATS , 0 .equ CONFIG_EMULATE_HARDWARE , 0 diff --git a/config/arm64/vpx_config.c b/config/arm64/vpx_config.c index 50e1a4ba1..ff9121723 100644 --- a/config/arm64/vpx_config.c +++ b/config/arm64/vpx_config.c @@ -6,5 +6,5 @@ /* in the file PATENTS. All contributing project authors may */ /* be found in the AUTHORS file in the root of the source tree. */ #include "vpx/vpx_codec.h" -static const char* const cfg = "--force-target=armv8-linux-gcc --enable-external-build --enable-realtime-only --enable-pic --disable-runtime-cpu-detect"; +static const char* const cfg = "--force-target=armv8-linux-gcc --enable-external-build --enable-realtime-only --enable-pic --disable-runtime-cpu-detect --disable-install-docs --size-limit=4096x3072"; const char *vpx_codec_build_config(void) {return cfg;} diff --git a/config/arm64/vpx_config.h b/config/arm64/vpx_config.h index 981aa3e91..dd19905d0 100644 --- a/config/arm64/vpx_config.h +++ b/config/arm64/vpx_config.h @@ -91,9 +91,11 @@ #define CONFIG_COEFFICIENT_RANGE_CHECKING 0 #define CONFIG_VP9_HIGHBITDEPTH 0 #define CONFIG_EXPERIMENTAL 0 -#define CONFIG_SIZE_LIMIT 0 +#define CONFIG_SIZE_LIMIT 1 #define CONFIG_SPATIAL_SVC 0 #define CONFIG_FP_MB_STATS 0 #define CONFIG_EMULATE_HARDWARE 0 #define CONFIG_MISC_FIXES 0 +#define DECODE_WIDTH_LIMIT 4096 +#define DECODE_HEIGHT_LIMIT 3072 #endif /* VPX_CONFIG_H */ diff --git a/config/generic/vpx_config.asm b/config/generic/vpx_config.asm index c3530a2b0..6db17d565 100644 --- a/config/generic/vpx_config.asm +++ b/config/generic/vpx_config.asm @@ -82,7 +82,7 @@ .equ CONFIG_COEFFICIENT_RANGE_CHECKING , 0 .equ CONFIG_VP9_HIGHBITDEPTH , 0 .equ CONFIG_EXPERIMENTAL , 0 -.equ CONFIG_SIZE_LIMIT , 0 +.equ CONFIG_SIZE_LIMIT , 1 .equ CONFIG_SPATIAL_SVC , 0 .equ CONFIG_FP_MB_STATS , 0 .equ CONFIG_EMULATE_HARDWARE , 0 diff --git a/config/generic/vpx_config.c b/config/generic/vpx_config.c index 269eb8237..c6d3e14c5 100644 --- a/config/generic/vpx_config.c +++ b/config/generic/vpx_config.c @@ -6,5 +6,5 @@ /* in the file PATENTS. All contributing project authors may */ /* be found in the AUTHORS file in the root of the source tree. */ #include "vpx/vpx_codec.h" -static const char* const cfg = "--target=generic-gnu --enable-external-build --enable-realtime-only --enable-pic --disable-runtime-cpu-detect"; +static const char* const cfg = "--target=generic-gnu --enable-external-build --enable-realtime-only --enable-pic --disable-runtime-cpu-detect --disable-install-docs --size-limit=4096x3072"; const char *vpx_codec_build_config(void) {return cfg;} diff --git a/config/generic/vpx_config.h b/config/generic/vpx_config.h index 50da70424..7daa81ca2 100644 --- a/config/generic/vpx_config.h +++ b/config/generic/vpx_config.h @@ -91,9 +91,11 @@ #define CONFIG_COEFFICIENT_RANGE_CHECKING 0 #define CONFIG_VP9_HIGHBITDEPTH 0 #define CONFIG_EXPERIMENTAL 0 -#define CONFIG_SIZE_LIMIT 0 +#define CONFIG_SIZE_LIMIT 1 #define CONFIG_SPATIAL_SVC 0 #define CONFIG_FP_MB_STATS 0 #define CONFIG_EMULATE_HARDWARE 0 #define CONFIG_MISC_FIXES 0 +#define DECODE_WIDTH_LIMIT 4096 +#define DECODE_HEIGHT_LIMIT 3072 #endif /* VPX_CONFIG_H */ diff --git a/config/mips32-dspr2/vpx_config.c b/config/mips32-dspr2/vpx_config.c index b2f14a386..1aa002457 100644 --- a/config/mips32-dspr2/vpx_config.c +++ b/config/mips32-dspr2/vpx_config.c @@ -6,5 +6,5 @@ /* in the file PATENTS. All contributing project authors may */ /* be found in the AUTHORS file in the root of the source tree. */ #include "vpx/vpx_codec.h" -static const char* const cfg = "--target=mips32-linux-gcc --enable-dspr2 --enable-external-build --enable-realtime-only --enable-pic --disable-runtime-cpu-detect"; +static const char* const cfg = "--target=mips32-linux-gcc --enable-dspr2 --enable-external-build --enable-realtime-only --enable-pic --disable-runtime-cpu-detect --disable-install-docs --size-limit=4096x3072"; const char *vpx_codec_build_config(void) {return cfg;} diff --git a/config/mips32-dspr2/vpx_config.h b/config/mips32-dspr2/vpx_config.h index 4e8961cfb..2d009c778 100644 --- a/config/mips32-dspr2/vpx_config.h +++ b/config/mips32-dspr2/vpx_config.h @@ -91,9 +91,11 @@ #define CONFIG_COEFFICIENT_RANGE_CHECKING 0 #define CONFIG_VP9_HIGHBITDEPTH 0 #define CONFIG_EXPERIMENTAL 0 -#define CONFIG_SIZE_LIMIT 0 +#define CONFIG_SIZE_LIMIT 1 #define CONFIG_SPATIAL_SVC 0 #define CONFIG_FP_MB_STATS 0 #define CONFIG_EMULATE_HARDWARE 0 #define CONFIG_MISC_FIXES 0 +#define DECODE_WIDTH_LIMIT 4096 +#define DECODE_HEIGHT_LIMIT 3072 #endif /* VPX_CONFIG_H */ diff --git a/config/mips32/vpx_config.c b/config/mips32/vpx_config.c index 81edcc9f5..d3b127f03 100644 --- a/config/mips32/vpx_config.c +++ b/config/mips32/vpx_config.c @@ -6,5 +6,5 @@ /* in the file PATENTS. All contributing project authors may */ /* be found in the AUTHORS file in the root of the source tree. */ #include "vpx/vpx_codec.h" -static const char* const cfg = "--target=mips32-linux-gcc --disable-dspr2 --enable-external-build --enable-realtime-only --enable-pic --disable-runtime-cpu-detect"; +static const char* const cfg = "--target=mips32-linux-gcc --disable-dspr2 --enable-external-build --enable-realtime-only --enable-pic --disable-runtime-cpu-detect --disable-install-docs --size-limit=4096x3072"; const char *vpx_codec_build_config(void) {return cfg;} diff --git a/config/mips32/vpx_config.h b/config/mips32/vpx_config.h index 82c9cf52f..b276df164 100644 --- a/config/mips32/vpx_config.h +++ b/config/mips32/vpx_config.h @@ -91,9 +91,11 @@ #define CONFIG_COEFFICIENT_RANGE_CHECKING 0 #define CONFIG_VP9_HIGHBITDEPTH 0 #define CONFIG_EXPERIMENTAL 0 -#define CONFIG_SIZE_LIMIT 0 +#define CONFIG_SIZE_LIMIT 1 #define CONFIG_SPATIAL_SVC 0 #define CONFIG_FP_MB_STATS 0 #define CONFIG_EMULATE_HARDWARE 0 #define CONFIG_MISC_FIXES 0 +#define DECODE_WIDTH_LIMIT 4096 +#define DECODE_HEIGHT_LIMIT 3072 #endif /* VPX_CONFIG_H */ diff --git a/config/mips64/vpx_config.c b/config/mips64/vpx_config.c index 3b3bb4915..95b2a2afa 100644 --- a/config/mips64/vpx_config.c +++ b/config/mips64/vpx_config.c @@ -6,5 +6,5 @@ /* in the file PATENTS. All contributing project authors may */ /* be found in the AUTHORS file in the root of the source tree. */ #include "vpx/vpx_codec.h" -static const char* const cfg = "--target=mips64-linux-gcc --enable-external-build --enable-realtime-only --enable-pic --disable-runtime-cpu-detect"; +static const char* const cfg = "--target=mips64-linux-gcc --enable-external-build --enable-realtime-only --enable-pic --disable-runtime-cpu-detect --disable-install-docs --size-limit=4096x3072"; const char *vpx_codec_build_config(void) {return cfg;} diff --git a/config/mips64/vpx_config.h b/config/mips64/vpx_config.h index b6cc04bcc..910e7acd2 100644 --- a/config/mips64/vpx_config.h +++ b/config/mips64/vpx_config.h @@ -91,9 +91,11 @@ #define CONFIG_COEFFICIENT_RANGE_CHECKING 0 #define CONFIG_VP9_HIGHBITDEPTH 0 #define CONFIG_EXPERIMENTAL 0 -#define CONFIG_SIZE_LIMIT 0 +#define CONFIG_SIZE_LIMIT 1 #define CONFIG_SPATIAL_SVC 0 #define CONFIG_FP_MB_STATS 0 #define CONFIG_EMULATE_HARDWARE 0 #define CONFIG_MISC_FIXES 0 +#define DECODE_WIDTH_LIMIT 4096 +#define DECODE_HEIGHT_LIMIT 3072 #endif /* VPX_CONFIG_H */ diff --git a/config/x86/vpx_config.asm b/config/x86/vpx_config.asm index b6557bb89..576889d16 100644 --- a/config/x86/vpx_config.asm +++ b/config/x86/vpx_config.asm @@ -79,7 +79,7 @@ %define CONFIG_COEFFICIENT_RANGE_CHECKING 0 %define CONFIG_VP9_HIGHBITDEPTH 0 %define CONFIG_EXPERIMENTAL 0 -%define CONFIG_SIZE_LIMIT 0 +%define CONFIG_SIZE_LIMIT 1 %define CONFIG_SPATIAL_SVC 0 %define CONFIG_FP_MB_STATS 0 %define CONFIG_EMULATE_HARDWARE 0 diff --git a/config/x86/vpx_config.c b/config/x86/vpx_config.c index 4b7c558e4..77a386493 100644 --- a/config/x86/vpx_config.c +++ b/config/x86/vpx_config.c @@ -6,5 +6,5 @@ /* in the file PATENTS. All contributing project authors may */ /* be found in the AUTHORS file in the root of the source tree. */ #include "vpx/vpx_codec.h" -static const char* const cfg = "--target=x86-linux-gcc --disable-sse4_1 --disable-avx --disable-avx2 --as=yasm --enable-external-build --enable-realtime-only --enable-pic --disable-runtime-cpu-detect"; +static const char* const cfg = "--target=x86-linux-gcc --disable-sse4_1 --disable-avx --disable-avx2 --as=yasm --enable-external-build --enable-realtime-only --enable-pic --disable-runtime-cpu-detect --disable-install-docs --size-limit=4096x3072"; const char *vpx_codec_build_config(void) {return cfg;} diff --git a/config/x86/vpx_config.h b/config/x86/vpx_config.h index a51685796..8de167306 100644 --- a/config/x86/vpx_config.h +++ b/config/x86/vpx_config.h @@ -91,9 +91,11 @@ #define CONFIG_COEFFICIENT_RANGE_CHECKING 0 #define CONFIG_VP9_HIGHBITDEPTH 0 #define CONFIG_EXPERIMENTAL 0 -#define CONFIG_SIZE_LIMIT 0 +#define CONFIG_SIZE_LIMIT 1 #define CONFIG_SPATIAL_SVC 0 #define CONFIG_FP_MB_STATS 0 #define CONFIG_EMULATE_HARDWARE 0 #define CONFIG_MISC_FIXES 0 +#define DECODE_WIDTH_LIMIT 4096 +#define DECODE_HEIGHT_LIMIT 3072 #endif /* VPX_CONFIG_H */ diff --git a/config/x86_64/vpx_config.asm b/config/x86_64/vpx_config.asm index 774d73fb7..7558badae 100644 --- a/config/x86_64/vpx_config.asm +++ b/config/x86_64/vpx_config.asm @@ -79,7 +79,7 @@ %define CONFIG_COEFFICIENT_RANGE_CHECKING 0 %define CONFIG_VP9_HIGHBITDEPTH 0 %define CONFIG_EXPERIMENTAL 0 -%define CONFIG_SIZE_LIMIT 0 +%define CONFIG_SIZE_LIMIT 1 %define CONFIG_SPATIAL_SVC 0 %define CONFIG_FP_MB_STATS 0 %define CONFIG_EMULATE_HARDWARE 0 diff --git a/config/x86_64/vpx_config.c b/config/x86_64/vpx_config.c index 2561717a3..9aa0640aa 100644 --- a/config/x86_64/vpx_config.c +++ b/config/x86_64/vpx_config.c @@ -6,5 +6,5 @@ /* in the file PATENTS. All contributing project authors may */ /* be found in the AUTHORS file in the root of the source tree. */ #include "vpx/vpx_codec.h" -static const char* const cfg = "--target=x86_64-linux-gcc --disable-sse4_1 --disable-avx --disable-avx2 --as=yasm --enable-external-build --enable-realtime-only --enable-pic --disable-runtime-cpu-detect"; +static const char* const cfg = "--target=x86_64-linux-gcc --disable-sse4_1 --disable-avx --disable-avx2 --as=yasm --enable-external-build --enable-realtime-only --enable-pic --disable-runtime-cpu-detect --disable-install-docs --size-limit=4096x3072"; const char *vpx_codec_build_config(void) {return cfg;} diff --git a/config/x86_64/vpx_config.h b/config/x86_64/vpx_config.h index 9278f1e8b..fc64f53fe 100644 --- a/config/x86_64/vpx_config.h +++ b/config/x86_64/vpx_config.h @@ -91,9 +91,11 @@ #define CONFIG_COEFFICIENT_RANGE_CHECKING 0 #define CONFIG_VP9_HIGHBITDEPTH 0 #define CONFIG_EXPERIMENTAL 0 -#define CONFIG_SIZE_LIMIT 0 +#define CONFIG_SIZE_LIMIT 1 #define CONFIG_SPATIAL_SVC 0 #define CONFIG_FP_MB_STATS 0 #define CONFIG_EMULATE_HARDWARE 0 #define CONFIG_MISC_FIXES 0 +#define DECODE_WIDTH_LIMIT 4096 +#define DECODE_HEIGHT_LIMIT 3072 #endif /* VPX_CONFIG_H */ diff --git a/generate_config.sh b/generate_config.sh index 6c6adae47..56c7994e8 100755 --- a/generate_config.sh +++ b/generate_config.sh @@ -147,7 +147,7 @@ cp -R $LIBVPX_SRC_DIR $TEMP_DIR cd $TEMP_DIR echo "Generate config files." -all_platforms="--enable-external-build --enable-realtime-only --enable-pic --disable-runtime-cpu-detect" +all_platforms="--enable-external-build --enable-realtime-only --enable-pic --disable-runtime-cpu-detect --disable-install-docs --size-limit=4096x3072" intel="--disable-sse4_1 --disable-avx --disable-avx2 --as=yasm" gen_config_files x86 "--target=x86-linux-gcc ${intel} ${all_platforms}" gen_config_files x86_64 "--target=x86_64-linux-gcc ${intel} ${all_platforms}" |