| 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 for (r = 0; r < rows + 8; r++) | 296 for (r = 0; r < rows + 8; r++) |
| 297 { | 297 { |
| 298 sumsq += s[7*pitch] * s[ 7*pitch] - s[-8*pitch] * s[-8*pitch]; | 298 sumsq += s[7*pitch] * s[ 7*pitch] - s[-8*pitch] * s[-8*pitch]; |
| 299 sum += s[7*pitch] - s[-8*pitch]; | 299 sum += s[7*pitch] - s[-8*pitch]; |
| 300 d[r&15] = s[0]; | 300 d[r&15] = s[0]; |
| 301 | 301 |
| 302 if (sumsq * 15 - sum * sum < flimit) | 302 if (sumsq * 15 - sum * sum < flimit) |
| 303 { | 303 { |
| 304 d[r&15] = (rv2[r&127] + sum + s[0]) >> 4; | 304 d[r&15] = (rv2[r&127] + sum + s[0]) >> 4; |
| 305 } | 305 } |
| 306 | 306 if (r >= 8) |
| 307 s[-8*pitch] = d[(r-8)&15]; | 307 s[-8*pitch] = d[(r-8)&15]; |
| 308 s += pitch; | 308 s += pitch; |
| 309 } | 309 } |
| 310 } | 310 } |
| 311 } | 311 } |
| 312 | 312 |
| 313 static void vp8_de_mblock(YV12_BUFFER_CONFIG *post, | 313 static void vp8_de_mblock(YV12_BUFFER_CONFIG *post, |
| 314 int q) | 314 int q) |
| 315 { | 315 { |
| 316 vp8_mbpost_proc_across_ip(post->y_buffer, post->y_stride, post->y_height, | 316 vp8_mbpost_proc_across_ip(post->y_buffer, post->y_stride, post->y_height, |
| 317 post->y_width, q2mbl(q)); | 317 post->y_width, q2mbl(q)); |
| (...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1192 | 1192 |
| 1193 *dest = oci->post_proc_buffer; | 1193 *dest = oci->post_proc_buffer; |
| 1194 | 1194 |
| 1195 /* handle problem with extending borders */ | 1195 /* handle problem with extending borders */ |
| 1196 dest->y_width = oci->Width; | 1196 dest->y_width = oci->Width; |
| 1197 dest->y_height = oci->Height; | 1197 dest->y_height = oci->Height; |
| 1198 dest->uv_height = dest->y_height / 2; | 1198 dest->uv_height = dest->y_height / 2; |
| 1199 return 0; | 1199 return 0; |
| 1200 } | 1200 } |
| 1201 #endif | 1201 #endif |
| OLD | NEW |