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

Side by Side Diff: source/libvpx/vp9/common/vp9_entropymode.c

Issue 812033011: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 5 years, 11 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 | « source/libvpx/vp9/common/vp9_entropymode.h ('k') | source/libvpx/vp9/common/vp9_idct.h » ('j') | 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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 vp9_zero(lf->last_ref_deltas); 446 vp9_zero(lf->last_ref_deltas);
447 vp9_zero(lf->last_mode_deltas); 447 vp9_zero(lf->last_mode_deltas);
448 set_default_lf_deltas(lf); 448 set_default_lf_deltas(lf);
449 449
450 // To force update of the sharpness 450 // To force update of the sharpness
451 lf->last_sharpness_level = -1; 451 lf->last_sharpness_level = -1;
452 452
453 vp9_default_coef_probs(cm); 453 vp9_default_coef_probs(cm);
454 vp9_init_mode_probs(cm->fc); 454 vp9_init_mode_probs(cm->fc);
455 vp9_init_mv_probs(cm); 455 vp9_init_mv_probs(cm);
456 cm->fc->initialized = 1;
456 457
457 if (cm->frame_type == KEY_FRAME || 458 if (cm->frame_type == KEY_FRAME ||
458 cm->error_resilient_mode || cm->reset_frame_context == 3) { 459 cm->error_resilient_mode || cm->reset_frame_context == 3) {
459 // Reset all frame contexts. 460 // Reset all frame contexts.
460 for (i = 0; i < FRAME_CONTEXTS; ++i) 461 for (i = 0; i < FRAME_CONTEXTS; ++i)
461 cm->frame_contexts[i] = *cm->fc; 462 cm->frame_contexts[i] = *cm->fc;
462 } else if (cm->reset_frame_context == 2) { 463 } else if (cm->reset_frame_context == 2) {
463 // Reset only the frame context specified in the frame header. 464 // Reset only the frame context specified in the frame header.
464 cm->frame_contexts[cm->frame_context_idx] = *cm->fc; 465 cm->frame_contexts[cm->frame_context_idx] = *cm->fc;
465 } 466 }
466 467
467 // prev_mip will only be allocated in encoder. 468 // prev_mip will only be allocated in encoder.
468 if (frame_is_intra_only(cm) && cm->prev_mip) 469 if (frame_is_intra_only(cm) && cm->prev_mip)
469 vpx_memset(cm->prev_mip, 0, cm->mi_stride * (cm->mi_rows + 1) * 470 vpx_memset(cm->prev_mip, 0, cm->mi_stride * (cm->mi_rows + 1) *
470 sizeof(*cm->prev_mip)); 471 sizeof(*cm->prev_mip));
471 472
472 vpx_memset(cm->mip, 0, cm->mi_stride * (cm->mi_rows + 1) * sizeof(*cm->mip));
473
474 vp9_zero(cm->ref_frame_sign_bias); 473 vp9_zero(cm->ref_frame_sign_bias);
475 474
476 cm->frame_context_idx = 0; 475 cm->frame_context_idx = 0;
477 } 476 }
OLDNEW
« no previous file with comments | « source/libvpx/vp9/common/vp9_entropymode.h ('k') | source/libvpx/vp9/common/vp9_idct.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698