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

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

Issue 897063002: Revert "libvpx: Pull from upstream" (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « source/libvpx/vp9/common/vp9_reconinter.c ('k') | source/libvpx/vp9/common/vp9_rtcd_defs.pl » ('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 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 if (right_available && bs == 4) { 708 if (right_available && bs == 4) {
709 vpx_memcpy(above_row, above_ref, r * sizeof(uint16_t)); 709 vpx_memcpy(above_row, above_ref, r * sizeof(uint16_t));
710 vpx_memset16(above_row + r, above_row[r - 1], 710 vpx_memset16(above_row + r, above_row[r - 1],
711 x0 + 2 * bs - frame_width); 711 x0 + 2 * bs - frame_width);
712 } else { 712 } else {
713 vpx_memcpy(above_row, above_ref, bs * sizeof(uint16_t)); 713 vpx_memcpy(above_row, above_ref, bs * sizeof(uint16_t));
714 vpx_memset16(above_row + bs, above_row[bs - 1], bs); 714 vpx_memset16(above_row + bs, above_row[bs - 1], bs);
715 } 715 }
716 } else if (x0 <= frame_width) { 716 } else if (x0 <= frame_width) {
717 const int r = frame_width - x0; 717 const int r = frame_width - x0;
718 vpx_memcpy(above_row, above_ref, r * sizeof(uint16_t)); 718 if (right_available && bs == 4) {
719 vpx_memset16(above_row + r, above_row[r - 1], 719 vpx_memcpy(above_row, above_ref, r * sizeof(uint16_t));
720 vpx_memset16(above_row + r, above_row[r - 1],
720 x0 + 2 * bs - frame_width); 721 x0 + 2 * bs - frame_width);
722 } else {
723 vpx_memcpy(above_row, above_ref, r * sizeof(uint16_t));
724 vpx_memset16(above_row + r, above_row[r - 1],
725 x0 + 2 * bs - frame_width);
726 }
721 } 727 }
722 // TODO(Peter) this value should probably change for high bitdepth 728 // TODO(Peter) this value should probably change for high bitdepth
723 above_row[-1] = left_available ? above_ref[-1] : (base+1); 729 above_row[-1] = left_available ? above_ref[-1] : (base+1);
724 } else { 730 } else {
725 /* faster path if the block does not need extension */ 731 /* faster path if the block does not need extension */
726 if (bs == 4 && right_available && left_available) { 732 if (bs == 4 && right_available && left_available) {
727 const_above_row = above_ref; 733 const_above_row = above_ref;
728 } else { 734 } else {
729 vpx_memcpy(above_row, above_ref, bs * sizeof(uint16_t)); 735 vpx_memcpy(above_row, above_ref, bs * sizeof(uint16_t));
730 if (bs == 4 && right_available) 736 if (bs == 4 && right_available)
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
830 if (right_available && bs == 4) { 836 if (right_available && bs == 4) {
831 vpx_memcpy(above_row, above_ref, r); 837 vpx_memcpy(above_row, above_ref, r);
832 vpx_memset(above_row + r, above_row[r - 1], 838 vpx_memset(above_row + r, above_row[r - 1],
833 x0 + 2 * bs - frame_width); 839 x0 + 2 * bs - frame_width);
834 } else { 840 } else {
835 vpx_memcpy(above_row, above_ref, bs); 841 vpx_memcpy(above_row, above_ref, bs);
836 vpx_memset(above_row + bs, above_row[bs - 1], bs); 842 vpx_memset(above_row + bs, above_row[bs - 1], bs);
837 } 843 }
838 } else if (x0 <= frame_width) { 844 } else if (x0 <= frame_width) {
839 const int r = frame_width - x0; 845 const int r = frame_width - x0;
840 vpx_memcpy(above_row, above_ref, r); 846 if (right_available && bs == 4) {
841 vpx_memset(above_row + r, above_row[r - 1], 847 vpx_memcpy(above_row, above_ref, r);
848 vpx_memset(above_row + r, above_row[r - 1],
842 x0 + 2 * bs - frame_width); 849 x0 + 2 * bs - frame_width);
850 } else {
851 vpx_memcpy(above_row, above_ref, r);
852 vpx_memset(above_row + r, above_row[r - 1],
853 x0 + 2 * bs - frame_width);
854 }
843 } 855 }
844 above_row[-1] = left_available ? above_ref[-1] : 129; 856 above_row[-1] = left_available ? above_ref[-1] : 129;
845 } else { 857 } else {
846 /* faster path if the block does not need extension */ 858 /* faster path if the block does not need extension */
847 if (bs == 4 && right_available && left_available) { 859 if (bs == 4 && right_available && left_available) {
848 const_above_row = above_ref; 860 const_above_row = above_ref;
849 } else { 861 } else {
850 vpx_memcpy(above_row, above_ref, bs); 862 vpx_memcpy(above_row, above_ref, bs);
851 if (bs == 4 && right_available) 863 if (bs == 4 && right_available)
852 vpx_memcpy(above_row + bs, above_ref + bs, bs); 864 vpx_memcpy(above_row + bs, above_ref + bs, bs);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 if (xd->cur_buf->flags & YV12_FLAG_HIGHBITDEPTH) { 899 if (xd->cur_buf->flags & YV12_FLAG_HIGHBITDEPTH) {
888 build_intra_predictors_high(xd, ref, ref_stride, dst, dst_stride, mode, 900 build_intra_predictors_high(xd, ref, ref_stride, dst, dst_stride, mode,
889 tx_size, have_top, have_left, have_right, 901 tx_size, have_top, have_left, have_right,
890 x, y, plane, xd->bd); 902 x, y, plane, xd->bd);
891 return; 903 return;
892 } 904 }
893 #endif 905 #endif
894 build_intra_predictors(xd, ref, ref_stride, dst, dst_stride, mode, tx_size, 906 build_intra_predictors(xd, ref, ref_stride, dst, dst_stride, mode, tx_size,
895 have_top, have_left, have_right, x, y, plane); 907 have_top, have_left, have_right, x, y, plane);
896 } 908 }
OLDNEW
« no previous file with comments | « source/libvpx/vp9/common/vp9_reconinter.c ('k') | source/libvpx/vp9/common/vp9_rtcd_defs.pl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698