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

Side by Side Diff: source/libvpx/vp9/encoder/vp9_temporal_filter.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
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 692 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 703
704 for (frame = 0; frame < frames_to_blur; ++frame) { 704 for (frame = 0; frame < frames_to_blur; ++frame) {
705 if (cm->mi_cols * MI_SIZE != frames[frame]->y_width || 705 if (cm->mi_cols * MI_SIZE != frames[frame]->y_width ||
706 cm->mi_rows * MI_SIZE != frames[frame]->y_height) { 706 cm->mi_rows * MI_SIZE != frames[frame]->y_height) {
707 if (vp9_realloc_frame_buffer(&cpi->svc.scaled_frames[frame_used], 707 if (vp9_realloc_frame_buffer(&cpi->svc.scaled_frames[frame_used],
708 cm->width, cm->height, 708 cm->width, cm->height,
709 cm->subsampling_x, cm->subsampling_y, 709 cm->subsampling_x, cm->subsampling_y,
710 #if CONFIG_VP9_HIGHBITDEPTH 710 #if CONFIG_VP9_HIGHBITDEPTH
711 cm->use_highbitdepth, 711 cm->use_highbitdepth,
712 #endif 712 #endif
713 VP9_ENC_BORDER_IN_PIXELS, NULL, NULL, 713 VP9_ENC_BORDER_IN_PIXELS,
714 NULL)) { 714 cm->byte_alignment,
715 NULL, NULL, NULL)) {
715 vpx_internal_error(&cm->error, VPX_CODEC_MEM_ERROR, 716 vpx_internal_error(&cm->error, VPX_CODEC_MEM_ERROR,
716 "Failed to reallocate alt_ref_buffer"); 717 "Failed to reallocate alt_ref_buffer");
717 } 718 }
718 frames[frame] = vp9_scale_if_required( 719 frames[frame] = vp9_scale_if_required(
719 cm, frames[frame], &cpi->svc.scaled_frames[frame_used]); 720 cm, frames[frame], &cpi->svc.scaled_frames[frame_used]);
720 ++frame_used; 721 ++frame_used;
721 } 722 }
722 } 723 }
723 cm->mi = cm->mip + cm->mi_stride + 1; 724 cm->mi = cm->mip + cm->mi_stride + 1;
724 xd->mi = cm->mi; 725 xd->mi = cm->mi;
(...skipping 13 matching lines...) Expand all
738 frames[0]->y_crop_height, 739 frames[0]->y_crop_height,
739 frames[0]->y_crop_width, 740 frames[0]->y_crop_width,
740 frames[0]->y_crop_height); 741 frames[0]->y_crop_height);
741 #endif // CONFIG_VP9_HIGHBITDEPTH 742 #endif // CONFIG_VP9_HIGHBITDEPTH
742 } 743 }
743 } 744 }
744 745
745 temporal_filter_iterate_c(cpi, frames, frames_to_blur, 746 temporal_filter_iterate_c(cpi, frames, frames_to_blur,
746 frames_to_blur_backward, strength, &sf); 747 frames_to_blur_backward, strength, &sf);
747 } 748 }
OLDNEW
« no previous file with comments | « source/libvpx/vp9/encoder/vp9_svc_layercontext.c ('k') | source/libvpx/vp9/encoder/vp9_tokenize.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698