2014-02-28 02:11:46 +04:00
|
|
|
LIBVPX_TEST_SRCS-yes += acm_random.h
|
2013-06-18 09:58:40 +04:00
|
|
|
LIBVPX_TEST_SRCS-yes += clear_system_state.h
|
2014-02-28 02:11:46 +04:00
|
|
|
LIBVPX_TEST_SRCS-yes += codec_factory.h
|
|
|
|
LIBVPX_TEST_SRCS-yes += md5_helper.h
|
2012-11-28 01:08:05 +04:00
|
|
|
LIBVPX_TEST_SRCS-yes += register_state_check.h
|
2012-05-17 03:25:51 +04:00
|
|
|
LIBVPX_TEST_SRCS-yes += test.mk
|
2012-06-25 20:58:09 +04:00
|
|
|
LIBVPX_TEST_SRCS-yes += test_libvpx.cc
|
2014-02-28 02:11:46 +04:00
|
|
|
LIBVPX_TEST_SRCS-yes += test_vectors.cc
|
|
|
|
LIBVPX_TEST_SRCS-yes += test_vectors.h
|
2012-06-28 21:37:53 +04:00
|
|
|
LIBVPX_TEST_SRCS-yes += util.h
|
2012-10-04 23:59:36 +04:00
|
|
|
LIBVPX_TEST_SRCS-yes += video_source.h
|
2012-06-23 22:20:41 +04:00
|
|
|
|
2012-06-29 23:15:00 +04:00
|
|
|
##
|
|
|
|
## BLACK BOX TESTS
|
|
|
|
##
|
|
|
|
## Black box tests only use the public API.
|
|
|
|
##
|
2014-06-13 03:53:13 +04:00
|
|
|
LIBVPX_TEST_SRCS-yes += ../md5_utils.h ../md5_utils.c
|
2014-02-28 02:11:46 +04:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_DECODERS) += ivf_video_source.h
|
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS) += ../y4minput.h ../y4minput.c
|
2014-03-15 01:35:47 +04:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS) += aq_segment_test.cc
|
2014-02-22 06:33:09 +04:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS) += datarate_test.cc
|
2013-01-15 18:43:35 +04:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS) += error_resilience_test.cc
|
2013-01-18 23:51:12 +04:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS) += i420_video_source.h
|
2014-11-21 01:34:40 +03:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS) += resize_test.cc
|
2014-01-18 01:52:23 +04:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS) += y4m_video_source.h
|
2014-10-16 03:40:12 +04:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS) += yuv_video_source.h
|
2014-02-28 02:11:46 +04:00
|
|
|
|
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP8_ENCODER) += altref_test.cc
|
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP8_ENCODER) += config_test.cc
|
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP8_ENCODER) += cq_test.cc
|
2012-06-29 23:15:00 +04:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP8_ENCODER) += keyframe_test.cc
|
2014-02-28 02:11:46 +04:00
|
|
|
|
2014-12-15 23:00:09 +03:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP9_DECODER) += byte_alignment_test.cc
|
2014-02-28 02:11:46 +04:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP9_DECODER) += external_frame_buffer_test.cc
|
2014-09-22 20:49:32 +04:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP9_DECODER) += invalid_file_test.cc
|
2014-06-24 01:59:20 +04:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP9_DECODER) += user_priv_test.cc
|
2015-01-27 23:26:28 +03:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP9_DECODER) += vp9_frame_parallel_test.cc
|
2015-09-16 07:18:32 +03:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += active_map_refresh_test.cc
|
2014-03-12 03:40:57 +04:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += active_map_test.cc
|
2013-06-06 17:07:09 +04:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += borders_test.cc
|
2013-07-03 01:14:16 +04:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += cpu_speed_test.cc
|
2014-07-17 17:31:50 +04:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += frame_size_tests.cc
|
2013-07-09 21:54:36 +04:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += vp9_lossless_test.cc
|
2014-10-16 03:40:12 +04:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += vp9_end_to_end_test.cc
|
2014-12-16 22:10:20 +03:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += vp9_ethread_test.cc
|
2012-10-04 23:59:36 +04:00
|
|
|
|
2013-01-18 23:51:12 +04:00
|
|
|
LIBVPX_TEST_SRCS-yes += decode_test_driver.cc
|
|
|
|
LIBVPX_TEST_SRCS-yes += decode_test_driver.h
|
2015-03-10 01:52:29 +03:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS) += encode_test_driver.cc
|
2014-02-28 02:11:46 +04:00
|
|
|
LIBVPX_TEST_SRCS-yes += encode_test_driver.h
|
2013-01-15 18:43:35 +04:00
|
|
|
|
2014-12-09 23:44:45 +03:00
|
|
|
## IVF writing.
|
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS) += ../ivfenc.c ../ivfenc.h
|
|
|
|
|
2014-06-13 03:53:13 +04:00
|
|
|
## Y4m parsing.
|
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS) += y4m_test.cc ../y4menc.c ../y4menc.h
|
|
|
|
|
2013-06-13 23:42:05 +04:00
|
|
|
## WebM Parsing
|
2014-04-18 22:24:02 +04:00
|
|
|
ifeq ($(CONFIG_WEBM_IO), yes)
|
2014-04-03 11:41:14 +04:00
|
|
|
LIBWEBM_PARSER_SRCS += ../third_party/libwebm/mkvparser.cpp
|
|
|
|
LIBWEBM_PARSER_SRCS += ../third_party/libwebm/mkvreader.cpp
|
|
|
|
LIBWEBM_PARSER_SRCS += ../third_party/libwebm/mkvparser.hpp
|
|
|
|
LIBWEBM_PARSER_SRCS += ../third_party/libwebm/mkvreader.hpp
|
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_DECODERS) += $(LIBWEBM_PARSER_SRCS)
|
2014-04-15 01:19:50 +04:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_DECODERS) += ../tools_common.h
|
2014-04-03 11:41:14 +04:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_DECODERS) += ../webmdec.cc
|
2014-04-15 01:19:50 +04:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_DECODERS) += ../webmdec.h
|
2013-06-13 23:42:05 +04:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_DECODERS) += webm_video_source.h
|
2015-05-21 21:49:11 +03:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP9_DECODER) += vp9_skip_loopfilter_test.cc
|
2014-04-18 22:24:02 +04:00
|
|
|
endif
|
2013-01-15 18:43:35 +04:00
|
|
|
|
2014-08-10 05:35:40 +04:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_DECODERS) += decode_api_test.cc
|
2013-06-13 23:42:05 +04:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_DECODERS) += test_vector_test.cc
|
2014-02-28 02:11:46 +04:00
|
|
|
|
2014-04-18 22:24:02 +04:00
|
|
|
# Currently we only support decoder perf tests for vp9. Also they read from WebM
|
|
|
|
# files, so WebM IO is required.
|
|
|
|
ifeq ($(CONFIG_DECODE_PERF_TESTS)$(CONFIG_VP9_DECODER)$(CONFIG_WEBM_IO), \
|
|
|
|
yesyesyes)
|
2013-11-16 00:29:26 +04:00
|
|
|
LIBVPX_TEST_SRCS-yes += decode_perf_test.cc
|
|
|
|
endif
|
2013-03-16 05:21:55 +04:00
|
|
|
|
2014-07-21 21:57:16 +04:00
|
|
|
# encode perf tests are vp9 only
|
|
|
|
ifeq ($(CONFIG_ENCODE_PERF_TESTS)$(CONFIG_VP9_ENCODER), yesyes)
|
|
|
|
LIBVPX_TEST_SRCS-yes += encode_perf_test.cc
|
|
|
|
endif
|
|
|
|
|
2012-06-29 23:15:00 +04:00
|
|
|
##
|
|
|
|
## WHITE BOX TESTS
|
|
|
|
##
|
|
|
|
## Whitebox tests invoke functions not exposed via the public API. Certain
|
|
|
|
## shared library builds don't make these functions accessible.
|
|
|
|
##
|
|
|
|
ifeq ($(CONFIG_SHARED),)
|
|
|
|
|
2012-11-07 22:40:37 +04:00
|
|
|
## VP8
|
2015-11-25 09:35:15 +03:00
|
|
|
ifeq ($(CONFIG_VP8),yes)
|
2012-11-07 22:40:37 +04:00
|
|
|
|
2012-06-29 23:15:00 +04:00
|
|
|
# These tests require both the encoder and decoder to be built.
|
|
|
|
ifeq ($(CONFIG_VP8_ENCODER)$(CONFIG_VP8_DECODER),yesyes)
|
2012-11-07 22:40:37 +04:00
|
|
|
LIBVPX_TEST_SRCS-yes += vp8_boolcoder_test.cc
|
2014-11-21 02:39:56 +03:00
|
|
|
LIBVPX_TEST_SRCS-yes += vp8_fragments_test.cc
|
2012-06-29 23:15:00 +04:00
|
|
|
endif
|
|
|
|
|
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_POSTPROC) += pp_filter_test.cc
|
2014-02-28 02:11:46 +04:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP8_DECODER) += vp8_decrypt_test.cc
|
2015-11-25 05:50:35 +03:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP8_ENCODER) += quantize_test.cc
|
2012-07-20 18:55:07 +04:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP8_ENCODER) += set_roi.cc
|
2013-02-23 04:23:36 +04:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP8_ENCODER) += variance_test.cc
|
2012-11-07 04:59:01 +04:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP8_ENCODER) += vp8_fdct4x4_test.cc
|
|
|
|
|
2014-02-28 02:11:46 +04:00
|
|
|
LIBVPX_TEST_SRCS-yes += idct_test.cc
|
|
|
|
LIBVPX_TEST_SRCS-yes += sixtap_predict_test.cc
|
2014-07-19 00:53:53 +04:00
|
|
|
LIBVPX_TEST_SRCS-yes += vpx_scale_test.cc
|
2014-02-28 02:11:46 +04:00
|
|
|
|
2014-10-08 02:30:23 +04:00
|
|
|
ifeq ($(CONFIG_VP8_ENCODER)$(CONFIG_TEMPORAL_DENOISING),yesyes)
|
|
|
|
LIBVPX_TEST_SRCS-$(HAVE_SSE2) += vp8_denoiser_sse2_test.cc
|
|
|
|
endif
|
|
|
|
|
2012-11-07 22:40:37 +04:00
|
|
|
endif # VP8
|
|
|
|
|
|
|
|
## VP9
|
2015-11-25 09:35:15 +03:00
|
|
|
ifeq ($(CONFIG_VP9),yes)
|
2012-11-07 22:40:37 +04:00
|
|
|
|
|
|
|
# These tests require both the encoder and decoder to be built.
|
|
|
|
ifeq ($(CONFIG_VP9_ENCODER)$(CONFIG_VP9_DECODER),yesyes)
|
2012-12-23 19:20:10 +04:00
|
|
|
# IDCT test currently depends on FDCT function
|
|
|
|
LIBVPX_TEST_SRCS-yes += idct8x8_test.cc
|
2013-12-13 22:05:40 +04:00
|
|
|
LIBVPX_TEST_SRCS-yes += partial_idct_test.cc
|
2013-03-06 00:23:34 +04:00
|
|
|
LIBVPX_TEST_SRCS-yes += superframe_test.cc
|
[WIP] Add column-based tiling.
This patch adds column-based tiling. The idea is to make each tile
independently decodable (after reading the common frame header) and
also independendly encodable (minus within-frame cost adjustments in
the RD loop) to speed-up hardware & software en/decoders if they used
multi-threading. Column-based tiling has the added advantage (over
other tiling methods) that it minimizes realtime use-case latency,
since all threads can start encoding data as soon as the first SB-row
worth of data is available to the encoder.
There is some test code that does random tile ordering in the decoder,
to confirm that each tile is indeed independently decodable from other
tiles in the same frame. At tile edges, all contexts assume default
values (i.e. 0, 0 motion vector, no coefficients, DC intra4x4 mode),
and motion vector search and ordering do not cross tiles in the same
frame.
t log
Tile independence is not maintained between frames ATM, i.e. tile 0 of
frame 1 is free to use motion vectors that point into any tile of frame
0. We support 1 (i.e. no tiling), 2 or 4 column-tiles.
The loopfilter crosses tile boundaries. I discussed this briefly with Aki
and he says that's OK. An in-loop loopfilter would need to do some sync
between tile threads, but that shouldn't be a big issue.
Resuls: with tiling disabled, we go up slightly because of improved edge
use in the intra4x4 prediction. With 2 tiles, we lose about ~1% on derf,
~0.35% on HD and ~0.55% on STD/HD. With 4 tiles, we lose another ~1.5%
on derf ~0.77% on HD and ~0.85% on STD/HD. Most of this loss is
concentrated in the low-bitrate end of clips, and most of it is because
of the loss of edges at tile boundaries and the resulting loss of intra
predictors.
TODO:
- more tiles (perhaps allow row-based tiling also, and max. 8 tiles)?
- maybe optionally (for EC purposes), motion vectors themselves
should not cross tile edges, or we should emulate such borders as
if they were off-frame, to limit error propagation to within one
tile only. This doesn't have to be the default behaviour but could
be an optional bitstream flag.
Change-Id: I5951c3a0742a767b20bc9fb5af685d9892c2c96f
2013-02-01 21:35:28 +04:00
|
|
|
LIBVPX_TEST_SRCS-yes += tile_independence_test.cc
|
2014-02-28 02:11:46 +04:00
|
|
|
LIBVPX_TEST_SRCS-yes += vp9_boolcoder_test.cc
|
2014-12-12 04:34:32 +03:00
|
|
|
LIBVPX_TEST_SRCS-yes += vp9_encoder_parms_get_to_decoder.cc
|
|
|
|
endif
|
2012-11-07 22:40:37 +04:00
|
|
|
|
2015-11-25 09:35:15 +03:00
|
|
|
LIBVPX_TEST_SRCS-yes += convolve_test.cc
|
|
|
|
LIBVPX_TEST_SRCS-yes += lpf_8_test.cc
|
|
|
|
LIBVPX_TEST_SRCS-yes += vp9_intrapred_test.cc
|
2014-04-16 01:10:58 +04:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP9_DECODER) += vp9_decrypt_test.cc
|
2015-11-25 05:50:35 +03:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP9_DECODER) += vp9_thread_test.cc
|
2013-02-23 04:18:08 +04:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += dct16x16_test.cc
|
2013-02-26 21:07:49 +04:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += dct32x32_test.cc
|
2014-02-28 02:11:46 +04:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += fdct4x4_test.cc
|
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += fdct8x8_test.cc
|
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += variance_test.cc
|
2014-10-08 03:36:14 +04:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += vp9_avg_test.cc
|
2014-10-16 16:38:46 +04:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += vp9_error_block_test.cc
|
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += vp9_quantize_test.cc
|
2015-11-25 05:50:35 +03:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += vp9_subtract_test.cc
|
2013-01-15 18:43:35 +04:00
|
|
|
|
2014-05-15 06:45:20 +04:00
|
|
|
ifeq ($(CONFIG_VP9_ENCODER),yes)
|
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_SPATIAL_SVC) += svc_test.cc
|
2015-04-17 21:13:18 +03:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_INTERNAL_STATS) += blockiness_test.cc
|
2015-04-21 20:05:37 +03:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_INTERNAL_STATS) += consistency_test.cc
|
2014-05-15 06:45:20 +04:00
|
|
|
endif
|
|
|
|
|
2014-10-08 02:30:23 +04:00
|
|
|
ifeq ($(CONFIG_VP9_ENCODER)$(CONFIG_VP9_TEMPORAL_DENOISING),yesyes)
|
|
|
|
LIBVPX_TEST_SRCS-$(HAVE_SSE2) += vp9_denoiser_sse2_test.cc
|
2014-09-19 03:45:53 +04:00
|
|
|
endif
|
2015-04-02 02:39:06 +03:00
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP9_ENCODER) += vp9_arf_freq_test.cc
|
2014-09-19 03:45:53 +04:00
|
|
|
|
2012-11-07 22:40:37 +04:00
|
|
|
endif # VP9
|
|
|
|
|
2015-11-25 05:50:35 +03:00
|
|
|
## VP10
|
|
|
|
ifeq ($(CONFIG_VP10),yes)
|
|
|
|
|
|
|
|
LIBVPX_TEST_SRCS-yes += vp10_inv_txfm_test.cc
|
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_VP10_ENCODER) += vp10_dct_test.cc
|
|
|
|
|
|
|
|
endif # VP10
|
|
|
|
|
|
|
|
## Multi-codec / unconditional whitebox tests.
|
|
|
|
LIBVPX_TEST_SRCS-$(CONFIG_ENCODERS) += sad_test.cc
|
2012-06-29 23:15:00 +04:00
|
|
|
|
2015-11-25 05:42:20 +03:00
|
|
|
TEST_INTRA_PRED_SPEED_SRCS-yes := test_intra_pred_speed.cc
|
|
|
|
TEST_INTRA_PRED_SPEED_SRCS-yes += ../md5_utils.h ../md5_utils.c
|
2015-05-12 05:36:59 +03:00
|
|
|
|
2014-02-28 02:03:55 +04:00
|
|
|
endif # CONFIG_SHARED
|
2012-06-29 23:15:00 +04:00
|
|
|
|
2014-10-04 03:18:58 +04:00
|
|
|
include $(SRC_PATH_BARE)/test/test-data.mk
|