OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |