commit | 49c52261361fe90a27c0bdff38f752d507e535b7 | [log] [tgz] |
---|---|---|
author | marpan@google.com <marpan@google.com@4ff67af0-8c30-449e-8e8b-ad334ec8d88c> | Mon Aug 11 21:47:18 2014 +0000 |
committer | marpan@google.com <marpan@google.com@4ff67af0-8c30-449e-8e8b-ad334ec8d88c> | Mon Aug 11 21:47:18 2014 +0000 |
tree | e674cdba9db3b55c1c8b08db608aaa3dee17f65c | |
parent | b80efbc02d98c3736b5ee1e116a6690f870a8a28 [diff] |
vp8 fix: re-allocate denoiser for spatial resize. Change has been committed upstream, see: https://gerrit.chromium.org/gerrit/#/c/71097/ https://gerrit.chromium.org/gerrit/#/c/71121/ BUG=http://code.google.com/p/chromium/issues/detail?id=392112 R=johannkoenig@google.com TBR=tomfinegan@chromium.org Review URL: https://codereview.chromium.org/452933006 git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/libvpx@288801 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
diff --git a/source/libvpx/vp8/encoder/onyx_if.c b/source/libvpx/vp8/encoder/onyx_if.c index 12e5011..8658da0 100644 --- a/source/libvpx/vp8/encoder/onyx_if.c +++ b/source/libvpx/vp8/encoder/onyx_if.c
@@ -1259,6 +1259,14 @@ vpx_free(cpi->tplist); CHECK_MEM_ERROR(cpi->tplist, vpx_malloc(sizeof(TOKENLIST) * cm->mb_rows)); + +#if CONFIG_TEMPORAL_DENOISING + if (cpi->oxcf.noise_sensitivity > 0) { + vp8_denoiser_free(&cpi->denoiser); + vp8_denoiser_allocate(&cpi->denoiser, width, height, + cm->mb_rows, cm->mb_cols); + } +#endif }