summaryrefslogtreecommitdiff
path: root/vp9/common/vp9_rtcd_defs.pl
diff options
context:
space:
mode:
authorchiyotsai <chiyotsai@google.com>2019-01-16 10:53:56 -0800
committerchiyotsai <chiyotsai@google.com>2019-01-16 15:35:50 -0800
commitda5e2463fac0ca5aff84f7eae181584aa491f1b7 (patch)
tree7c41b237fda5446ad34b757c4785366c386ec204 /vp9/common/vp9_rtcd_defs.pl
parentc182725cbc9e1e4892784a24c32b1bed80047b0c (diff)
downloadlibvpx-da5e2463fac0ca5aff84f7eae181584aa491f1b7.tar
libvpx-da5e2463fac0ca5aff84f7eae181584aa491f1b7.tar.gz
libvpx-da5e2463fac0ca5aff84f7eae181584aa491f1b7.tar.bz2
libvpx-da5e2463fac0ca5aff84f7eae181584aa491f1b7.zip
Add unit test for temporal filter on VP9
The current unit tests for temporal filtering only tests single channel version of temporal filter. Since VP9 currently uses both luma and chroma channel information for temporal filtering on low bitdepth, there is no unit case in this scenario. This commit adds some basic unit tests to facilitate further development on temporal filtering. BUG=webm:1591 Change-Id: Id38ceba5305865d7148e9b2bc636acddae54d6c2
Diffstat (limited to 'vp9/common/vp9_rtcd_defs.pl')
-rw-r--r--vp9/common/vp9_rtcd_defs.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/vp9/common/vp9_rtcd_defs.pl b/vp9/common/vp9_rtcd_defs.pl
index 8bb68cfdf..3102b08a7 100644
--- a/vp9/common/vp9_rtcd_defs.pl
+++ b/vp9/common/vp9_rtcd_defs.pl
@@ -186,6 +186,8 @@ specialize qw/vp9_diamond_search_sad avx/;
if (vpx_config("CONFIG_REALTIME_ONLY") ne "yes") {
add_proto qw/void vp9_temporal_filter_apply/, "const uint8_t *frame1, unsigned int stride, const uint8_t *frame2, unsigned int block_width, unsigned int block_height, int strength, int filter_weight, uint32_t *accumulator, uint16_t *count";
specialize qw/vp9_temporal_filter_apply sse4_1/;
+
+add_proto qw/void vp9_apply_temporal_filter/, "const uint8_t *y_src, int y_src_stride, const uint8_t *y_pre, int y_pre_stride, const uint8_t *u_src, const uint8_t *v_src, int uv_src_stride, const uint8_t *u_pre, const uint8_t *v_pre, int uv_pre_stride, unsigned int block_width, unsigned int block_height, int ss_x, int ss_y, int strength, const int *const blk_fw, int use_32x32, uint32_t *y_accumulator, uint16_t *y_count, uint32_t *u_accumulator, uint16_t *u_count, uint32_t *v_accumulator, uint16_t *v_count";
}
if (vpx_config("CONFIG_VP9_HIGHBITDEPTH") eq "yes") {