2014-10-22 14:25:30 +00:00
|
|
|
language: c
|
|
|
|
|
2015-05-05 14:14:19 +00:00
|
|
|
env:
|
|
|
|
global:
|
2015-07-17 11:12:50 +00:00
|
|
|
- AS=nasm
|
2015-05-05 14:14:19 +00:00
|
|
|
- KVZ_DISABLE_AVX2=1
|
2015-07-17 11:12:50 +00:00
|
|
|
- TEST_DIM=264x130
|
|
|
|
- TEST_FRAMES=10
|
2015-07-28 09:00:42 +00:00
|
|
|
- MAKEFLAGS="--jobs=2 --environment-overrides"
|
2015-05-05 14:14:19 +00:00
|
|
|
|
2015-07-17 11:12:50 +00:00
|
|
|
sudo: false
|
2015-05-05 14:14:19 +00:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
2015-05-11 10:27:36 +00:00
|
|
|
|
2015-05-05 14:14:19 +00:00
|
|
|
include:
|
|
|
|
- compiler: clang
|
|
|
|
env: KVZ_DISABLE_AVX2=""
|
2015-07-17 11:12:50 +00:00
|
|
|
- compiler: gcc-4.8
|
|
|
|
env: KVZ_DISABLE_AVX2=""
|
2015-11-06 13:05:38 +00:00
|
|
|
|
|
|
|
# Check for external symbols without kvz_ prefix.
|
2015-11-09 10:13:20 +00:00
|
|
|
- compiler: gcc-4.8
|
|
|
|
env: KVZ_DISABLE_AVX2=""
|
|
|
|
script:
|
2015-11-06 13:05:38 +00:00
|
|
|
- cd src
|
|
|
|
- make libkvazaar.a
|
|
|
|
- (! nm -go --defined-only libkvazaar.a | grep -v ' kvz_')
|
|
|
|
|
2015-05-05 14:14:19 +00:00
|
|
|
# These valgrind tests are slow, so they are performed with the minimum
|
2015-07-17 11:12:50 +00:00
|
|
|
# number of small frames and fast settings.
|
2015-05-05 14:14:19 +00:00
|
|
|
|
|
|
|
# Tests for owf, wpp and tiles. There is lots of separate branches of
|
|
|
|
# code related to owf=0 and owf!=0, which is why all permutations are
|
|
|
|
# tried.
|
|
|
|
- env: VALGRIND_TEST="-p4 -r1 --owf=1 --threads=0 --rd=0 --no-rdoq --no-deblock --no-sao --no-signhide --subme=0 --pu-depth-inter=1-3 --pu-depth-intra=2-3"
|
|
|
|
- env: VALGRIND_TEST="-p4 -r1 --owf=0 --threads=0 --rd=0 --no-rdoq --no-deblock --no-sao --no-signhide --subme=0 --pu-depth-inter=1-3 --pu-depth-intra=2-3"
|
|
|
|
- env: VALGRIND_TEST="-p4 -r2 --owf=1 --threads=2 --wpp --rd=0 --no-rdoq --no-deblock --no-sao --no-signhide --subme=0 --pu-depth-inter=1-3 --pu-depth-intra=2-3"
|
|
|
|
- env: VALGRIND_TEST="-p4 -r2 --owf=0 --threads=2 --rd=0 --no-rdoq --no-deblock --no-sao --no-signhide --subme=0 --pu-depth-inter=1-3 --pu-depth-intra=2-3"
|
|
|
|
- env: VALGRIND_TEST="-p4 -r2 --owf=1 --threads=2 --tiles-height-split=u2 --rd=0 --no-rdoq --no-deblock --no-sao --no-signhide --subme=0 --pu-depth-inter=1-3 --pu-depth-intra=2-3"
|
|
|
|
- env: VALGRIND_TEST="-p4 -r2 --owf=0 --threads=2 --tiles-height-split=u2 --rd=0 --no-rdoq --no-deblock --no-sao --no-signhide --subme=0 --pu-depth-inter=1-3 --pu-depth-intra=2-3"
|
|
|
|
|
|
|
|
# Tests for rdoq, sao, deblock and signhide and subme.
|
|
|
|
- env: VALGRIND_TEST="-p0 -r1 --threads=2 --wpp --owf=1 --rd=0 --no-rdoq --no-deblock --no-sao --no-signhide --subme=1 --pu-depth-intra=2-3"
|
|
|
|
- env: VALGRIND_TEST="-p0 -r1 --threads=2 --wpp --owf=1 --rd=0 --no-rdoq --no-signhide --subme=0"
|
|
|
|
- env: VALGRIND_TEST="-p0 -r1 --threads=2 --wpp --owf=1 --rd=0 --no-deblock --no-sao --subme=0"
|
|
|
|
|
|
|
|
# Tests for all-intra.
|
|
|
|
- env: VALGRIND_TEST="-p1 --threads=2 --owf=1 --rd=1 --no-rdoq --no-deblock --no-sao --no-signhide"
|
|
|
|
- env: VALGRIND_TEST="-p1 --threads=2 --owf=1 --rd=2 --no-rdoq --no-deblock --no-sao --no-signhide --no-transform-skip"
|
2015-12-15 09:20:17 +00:00
|
|
|
|
|
|
|
# Tests for SMP and AMP blocks.
|
|
|
|
- env: VALGRIND_TEST="--threads=2 --owf=1 --smp"
|
|
|
|
- env: VALGRIND_TEST="--threads=2 --owf=1 --amp"
|
|
|
|
- env: VALGRIND_TEST="--threads=2 --owf=1 --smp --amp"
|
|
|
|
|
2015-06-01 13:36:49 +00:00
|
|
|
# Tests for rate control
|
|
|
|
- env: VALGRIND_TEST="--bitrate=500000 -p0 -r1 --owf=1 --threads=2 --rd=0 --no-rdoq --no-deblock --no-sao --no-signhide --subme=0 --pu-depth-inter=1-3 --pu-depth-intra=2-3"
|
|
|
|
|
2015-05-11 10:27:36 +00:00
|
|
|
# Tests for GOP, with and without OWF.
|
|
|
|
- env: TEST_FRAMES=20 VALGRIND_TEST="--gop=8 -p0 --threads=2 --wpp --owf=1 --rd=0 --no-rdoq --no-deblock --no-sao --no-signhide --subme=0 --pu-depth-inter=1-3 --pu-depth-intra=2-3"
|
2015-09-07 12:29:59 +00:00
|
|
|
- env: TEST_FRAMES=10 VALGRIND_TEST="--gop=8 -p0 --threads=2 --wpp --owf=4 --rd=0 --no-rdoq --no-deblock --no-sao --no-signhide --subme=0 --pu-depth-inter=1-3 --pu-depth-intra=2-3"
|
2015-05-11 10:27:36 +00:00
|
|
|
- env: TEST_FRAMES=20 VALGRIND_TEST="--gop=8 -p0 --threads=2 --wpp --owf=0 --rd=0 --no-rdoq --no-deblock --no-sao --no-signhide --subme=0 --pu-depth-inter=1-3 --pu-depth-intra=2-3"
|
2014-10-22 14:25:30 +00:00
|
|
|
|
2015-07-17 07:03:51 +00:00
|
|
|
# Tests trying to use invalid input dimensions
|
|
|
|
- env: EXPECTED_STATUS=1 PARAMS="-i kvazaar --input-res=1x65 -o /dev/null"
|
|
|
|
|
2015-07-17 11:12:50 +00:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
|
|
|
|
packages:
|
|
|
|
- gcc
|
|
|
|
- gcc-4.8
|
|
|
|
- nasm
|
|
|
|
- p7zip-full
|
|
|
|
- valgrind
|
2015-05-05 14:14:19 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
- source .travis-install.sh
|
|
|
|
|
|
|
|
script:
|
|
|
|
- source .travis-script.sh
|