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

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

Issue 452933006: vp8 fix: re-allocate denoiser for spatial resize. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 4 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) 2010 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2010 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 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after
1252 { 1252 {
1253 vpx_free(cpi->mt_current_mb_col); 1253 vpx_free(cpi->mt_current_mb_col);
1254 CHECK_MEM_ERROR(cpi->mt_current_mb_col, 1254 CHECK_MEM_ERROR(cpi->mt_current_mb_col,
1255 vpx_malloc(sizeof(*cpi->mt_current_mb_col) * cm->mb_rows)); 1255 vpx_malloc(sizeof(*cpi->mt_current_mb_col) * cm->mb_rows));
1256 } 1256 }
1257 1257
1258 #endif 1258 #endif
1259 1259
1260 vpx_free(cpi->tplist); 1260 vpx_free(cpi->tplist);
1261 CHECK_MEM_ERROR(cpi->tplist, vpx_malloc(sizeof(TOKENLIST) * cm->mb_rows)); 1261 CHECK_MEM_ERROR(cpi->tplist, vpx_malloc(sizeof(TOKENLIST) * cm->mb_rows));
1262
1263 #if CONFIG_TEMPORAL_DENOISING
1264 if (cpi->oxcf.noise_sensitivity > 0) {
1265 vp8_denoiser_free(&cpi->denoiser);
1266 vp8_denoiser_allocate(&cpi->denoiser, width, height,
1267 cm->mb_rows, cm->mb_cols);
1268 }
1269 #endif
1262 } 1270 }
1263 1271
1264 1272
1265 /* Quant MOD */ 1273 /* Quant MOD */
1266 static const int q_trans[] = 1274 static const int q_trans[] =
1267 { 1275 {
1268 0, 1, 2, 3, 4, 5, 7, 8, 1276 0, 1, 2, 3, 4, 5, 7, 8,
1269 9, 10, 12, 13, 15, 17, 18, 19, 1277 9, 10, 12, 13, 15, 17, 18, 19,
1270 20, 21, 23, 24, 25, 26, 27, 28, 1278 20, 21, 23, 24, 25, 26, 27, 28,
1271 29, 30, 31, 33, 35, 37, 39, 41, 1279 29, 30, 31, 33, 35, 37, 39, 41,
(...skipping 4271 matching lines...) Expand 10 before | Expand all | Expand 10 after
5543 } 5551 }
5544 5552
5545 return Total; 5553 return Total;
5546 } 5554 }
5547 5555
5548 5556
5549 int vp8_get_quantizer(VP8_COMP *cpi) 5557 int vp8_get_quantizer(VP8_COMP *cpi)
5550 { 5558 {
5551 return cpi->common.base_qindex; 5559 return cpi->common.base_qindex;
5552 } 5560 }
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