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 950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 } |
OLD | NEW |