summaryrefslogtreecommitdiff
path: root/vp9/common/vp9_rtcd_defs.pl
diff options
context:
space:
mode:
authorJackyChen <jackychen@google.com>2014-09-18 16:45:53 -0700
committerJackyChen <jackychen@google.com>2014-10-06 15:27:40 -0700
commit80465dae8811f8d62742d592b92e641a0ca0c9d9 (patch)
tree18451226eebdd1f7b817e7d2effa539c2b3e9351 /vp9/common/vp9_rtcd_defs.pl
parent63e49be340e44acbc5a3d67091875a98ba0cf7d8 (diff)
downloadlibvpx-80465dae8811f8d62742d592b92e641a0ca0c9d9.tar
libvpx-80465dae8811f8d62742d592b92e641a0ca0c9d9.tar.gz
libvpx-80465dae8811f8d62742d592b92e641a0ca0c9d9.tar.bz2
libvpx-80465dae8811f8d62742d592b92e641a0ca0c9d9.zip
Add SSE2 code and unit test for VP9 denoiser.
This SSE2 is based on VP8 denoiser's SSE2 code. In VP8, there are only 16x16 blocks in denoiser, while in VP9, there are 13 different block sizes. By adding this SSE2 code, the improvement of encoder speed is around 20%(using C code vs using SSE2 code), vary for different clips. The unit test for VP9 denoiser is to confirm that the SSE2 code is bit-exact with the C code. The unit test covers all block size. Change-Id: Ic8d8ac26db4ea40a5f146b5678a065af07eaaa3d
Diffstat (limited to 'vp9/common/vp9_rtcd_defs.pl')
-rw-r--r--vp9/common/vp9_rtcd_defs.pl8
1 files changed, 8 insertions, 0 deletions
diff --git a/vp9/common/vp9_rtcd_defs.pl b/vp9/common/vp9_rtcd_defs.pl
index 0e95141aa..a4ec99c6e 100644
--- a/vp9/common/vp9_rtcd_defs.pl
+++ b/vp9/common/vp9_rtcd_defs.pl
@@ -1057,6 +1057,14 @@ specialize qw/vp9_get_mb_ss/, "$sse2_x86inc";
add_proto qw/void vp9_subtract_block/, "int rows, int cols, int16_t *diff_ptr, ptrdiff_t diff_stride, const uint8_t *src_ptr, ptrdiff_t src_stride, const uint8_t *pred_ptr, ptrdiff_t pred_stride";
specialize qw/vp9_subtract_block neon/, "$sse2_x86inc";
+#
+# Denoiser
+#
+if (vpx_config("CONFIG_VP9_TEMPORAL_DENOISING") eq "yes") {
+ add_proto qw/int vp9_denoiser_filter/, "const uint8_t *sig, int sig_stride, const uint8_t *mc_avg, int mc_avg_stride, uint8_t *avg, int avg_stride, int increase_denoising, BLOCK_SIZE bs, int motion_magnitude";
+ specialize qw/vp9_denoiser_filter sse2/;
+}
+
if (vpx_config("CONFIG_VP9_HIGHBITDEPTH") eq "yes") {
# the transform coefficients are held in 32-bit
# values, so the assembler code for vp9_block_error can no longer be used.