Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Side by Side Diff: source/libvpx/vp8/encoder/denoising.c

Issue 506203004: vp8 fix: deallocate denoiser->yv12_last_source (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebM project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 void vp8_denoiser_free(VP8_DENOISER *denoiser) 423 void vp8_denoiser_free(VP8_DENOISER *denoiser)
424 { 424 {
425 int i; 425 int i;
426 assert(denoiser); 426 assert(denoiser);
427 427
428 for (i = 0; i < MAX_REF_FRAMES ; i++) 428 for (i = 0; i < MAX_REF_FRAMES ; i++)
429 { 429 {
430 vp8_yv12_de_alloc_frame_buffer(&denoiser->yv12_running_avg[i]); 430 vp8_yv12_de_alloc_frame_buffer(&denoiser->yv12_running_avg[i]);
431 } 431 }
432 vp8_yv12_de_alloc_frame_buffer(&denoiser->yv12_mc_running_avg); 432 vp8_yv12_de_alloc_frame_buffer(&denoiser->yv12_mc_running_avg);
433 vp8_yv12_de_alloc_frame_buffer(&denoiser->yv12_last_source);
433 vpx_free(denoiser->denoise_state); 434 vpx_free(denoiser->denoise_state);
434 } 435 }
435 436
436 437
437 void vp8_denoiser_denoise_mb(VP8_DENOISER *denoiser, 438 void vp8_denoiser_denoise_mb(VP8_DENOISER *denoiser,
438 MACROBLOCK *x, 439 MACROBLOCK *x,
439 unsigned int best_sse, 440 unsigned int best_sse,
440 unsigned int zero_mv_sse, 441 unsigned int zero_mv_sse,
441 int recon_yoffset, 442 int recon_yoffset,
442 int recon_uvoffset, 443 int recon_uvoffset,
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 } 680 }
680 if (apply_filter) { 681 if (apply_filter) {
681 // Update the signal block |x|. Pixel changes are only to top and/or 682 // Update the signal block |x|. Pixel changes are only to top and/or
682 // left boundary pixels: can we avoid full block copy here. 683 // left boundary pixels: can we avoid full block copy here.
683 vp8_copy_mem16x16( 684 vp8_copy_mem16x16(
684 denoiser->yv12_running_avg[INTRA_FRAME].y_buffer + recon_yoffset, 685 denoiser->yv12_running_avg[INTRA_FRAME].y_buffer + recon_yoffset,
685 y_stride, x->thismb, 16); 686 y_stride, x->thismb, 16);
686 } 687 }
687 } 688 }
688 } 689 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698