| 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 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 * SPECIAL NOTES : None. | 511 * SPECIAL NOTES : None. |
| 512 * | 512 * |
| 513 ****************************************************************************/ | 513 ****************************************************************************/ |
| 514 void vp8_plane_add_noise_c(unsigned char *Start, char *noise, | 514 void vp8_plane_add_noise_c(unsigned char *Start, char *noise, |
| 515 char blackclamp[16], | 515 char blackclamp[16], |
| 516 char whiteclamp[16], | 516 char whiteclamp[16], |
| 517 char bothclamp[16], | 517 char bothclamp[16], |
| 518 unsigned int Width, unsigned int Height, int Pitch) | 518 unsigned int Width, unsigned int Height, int Pitch) |
| 519 { | 519 { |
| 520 unsigned int i, j; | 520 unsigned int i, j; |
| 521 (void)bothclamp; |
| 521 | 522 |
| 522 for (i = 0; i < Height; i++) | 523 for (i = 0; i < Height; i++) |
| 523 { | 524 { |
| 524 unsigned char *Pos = Start + i * Pitch; | 525 unsigned char *Pos = Start + i * Pitch; |
| 525 char *Ref = (char *)(noise + (rand() & 0xff)); | 526 char *Ref = (char *)(noise + (rand() & 0xff)); |
| 526 | 527 |
| 527 for (j = 0; j < Width; j++) | 528 for (j = 0; j < Width; j++) |
| 528 { | 529 { |
| 529 if (Pos[j] < blackclamp[0]) | 530 if (Pos[j] < blackclamp[0]) |
| 530 Pos[j] = blackclamp[0]; | 531 Pos[j] = blackclamp[0]; |
| (...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1196 | 1197 |
| 1197 *dest = oci->post_proc_buffer; | 1198 *dest = oci->post_proc_buffer; |
| 1198 | 1199 |
| 1199 /* handle problem with extending borders */ | 1200 /* handle problem with extending borders */ |
| 1200 dest->y_width = oci->Width; | 1201 dest->y_width = oci->Width; |
| 1201 dest->y_height = oci->Height; | 1202 dest->y_height = oci->Height; |
| 1202 dest->uv_height = dest->y_height / 2; | 1203 dest->uv_height = dest->y_height / 2; |
| 1203 return 0; | 1204 return 0; |
| 1204 } | 1205 } |
| 1205 #endif | 1206 #endif |
| OLD | NEW |