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

Side by Side Diff: source/libvpx/vp9/common/vp9_loopfilter.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_idct.c ('k') | source/libvpx/vp9/common/vp9_mfqe.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 950 matching lines...) Expand 10 before | Expand all | Expand 10 after
961 break; 961 break;
962 } 962 }
963 } 963 }
964 } 964 }
965 break; 965 break;
966 } 966 }
967 } 967 }
968 break; 968 break;
969 } 969 }
970 // The largest loopfilter we have is 16x16 so we use the 16x16 mask 970 // The largest loopfilter we have is 16x16 so we use the 16x16 mask
971 // for 32x32 transforms also also. 971 // for 32x32 transforms also.
972 lfm->left_y[TX_16X16] |= lfm->left_y[TX_32X32]; 972 lfm->left_y[TX_16X16] |= lfm->left_y[TX_32X32];
973 lfm->above_y[TX_16X16] |= lfm->above_y[TX_32X32]; 973 lfm->above_y[TX_16X16] |= lfm->above_y[TX_32X32];
974 lfm->left_uv[TX_16X16] |= lfm->left_uv[TX_32X32]; 974 lfm->left_uv[TX_16X16] |= lfm->left_uv[TX_32X32];
975 lfm->above_uv[TX_16X16] |= lfm->above_uv[TX_32X32]; 975 lfm->above_uv[TX_16X16] |= lfm->above_uv[TX_32X32];
976 976
977 // We do at least 8 tap filter on every 32x32 even if the transform size 977 // We do at least 8 tap filter on every 32x32 even if the transform size
978 // is 4x4. So if the 4x4 is set on a border pixel add it to the 8x8 and 978 // is 4x4. So if the 4x4 is set on a border pixel add it to the 8x8 and
979 // remove it from the 4x4. 979 // remove it from the 4x4.
980 lfm->left_y[TX_8X8] |= lfm->left_y[TX_4X4] & left_border; 980 lfm->left_y[TX_8X8] |= lfm->left_y[TX_4X4] & left_border;
981 lfm->left_y[TX_4X4] &= ~left_border; 981 lfm->left_y[TX_4X4] &= ~left_border;
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
1635 lf_data->y_only = 0; 1635 lf_data->y_only = 0;
1636 vpx_memcpy(lf_data->planes, planes, sizeof(lf_data->planes)); 1636 vpx_memcpy(lf_data->planes, planes, sizeof(lf_data->planes));
1637 } 1637 }
1638 1638
1639 int vp9_loop_filter_worker(LFWorkerData *const lf_data, void *unused) { 1639 int vp9_loop_filter_worker(LFWorkerData *const lf_data, void *unused) {
1640 (void)unused; 1640 (void)unused;
1641 vp9_loop_filter_rows(lf_data->frame_buffer, lf_data->cm, lf_data->planes, 1641 vp9_loop_filter_rows(lf_data->frame_buffer, lf_data->cm, lf_data->planes,
1642 lf_data->start, lf_data->stop, lf_data->y_only); 1642 lf_data->start, lf_data->stop, lf_data->y_only);
1643 return 1; 1643 return 1;
1644 } 1644 }
OLDNEW
« no previous file with comments | « source/libvpx/vp9/common/vp9_idct.c ('k') | source/libvpx/vp9/common/vp9_mfqe.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698