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

Side by Side Diff: source/libvpx/vp8/common/postproc.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/vp8/common/loopfilter.c ('k') | source/libvpx/vp8/decoder/decodeframe.c » ('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 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « source/libvpx/vp8/common/loopfilter.c ('k') | source/libvpx/vp8/decoder/decodeframe.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698