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

Side by Side Diff: libvpx/source/libvpx/vp8/encoder/sad_c.c

Issue 7624054: Revert r97185 "Update libvpx snapshot to v0.9.7-p1 (Cayuga)." (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party
Patch Set: Created 9 years, 4 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 | « libvpx/source/libvpx/vp8/encoder/rdopt.c ('k') | libvpx/source/libvpx/vp8/encoder/ssim.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
11 11
12 #include <stdlib.h> 12 #include <stdlib.h>
13 #include "vpx_ports/config.h"
14 #include "vpx/vpx_integer.h"
15 13
16 unsigned int vp8_sad16x16_c( 14 unsigned int vp8_sad16x16_c(
17 const unsigned char *src_ptr, 15 const unsigned char *src_ptr,
18 int src_stride, 16 int src_stride,
19 const unsigned char *ref_ptr, 17 const unsigned char *ref_ptr,
20 int ref_stride, 18 int ref_stride,
21 int max_sad) 19 int max_sad)
22 { 20 {
23 21
24 int r, c; 22 int r, c;
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 unsigned char *ref_ptr[], 330 unsigned char *ref_ptr[],
333 int ref_stride, 331 int ref_stride,
334 unsigned int *sad_array 332 unsigned int *sad_array
335 ) 333 )
336 { 334 {
337 sad_array[0] = vp8_sad4x4_c(src_ptr, src_stride, ref_ptr[0], ref_stride, 0x7 fffffff); 335 sad_array[0] = vp8_sad4x4_c(src_ptr, src_stride, ref_ptr[0], ref_stride, 0x7 fffffff);
338 sad_array[1] = vp8_sad4x4_c(src_ptr, src_stride, ref_ptr[1], ref_stride, 0x7 fffffff); 336 sad_array[1] = vp8_sad4x4_c(src_ptr, src_stride, ref_ptr[1], ref_stride, 0x7 fffffff);
339 sad_array[2] = vp8_sad4x4_c(src_ptr, src_stride, ref_ptr[2], ref_stride, 0x7 fffffff); 337 sad_array[2] = vp8_sad4x4_c(src_ptr, src_stride, ref_ptr[2], ref_stride, 0x7 fffffff);
340 sad_array[3] = vp8_sad4x4_c(src_ptr, src_stride, ref_ptr[3], ref_stride, 0x7 fffffff); 338 sad_array[3] = vp8_sad4x4_c(src_ptr, src_stride, ref_ptr[3], ref_stride, 0x7 fffffff);
341 } 339 }
342
343 /* Copy 2 macroblocks to a buffer */
344 void vp8_copy32xn_c(
345 unsigned char *src_ptr,
346 int src_stride,
347 unsigned char *dst_ptr,
348 int dst_stride,
349 int height)
350 {
351 int r;
352
353 for (r = 0; r < height; r++)
354 {
355 #if !(CONFIG_FAST_UNALIGNED)
356 dst_ptr[0] = src_ptr[0];
357 dst_ptr[1] = src_ptr[1];
358 dst_ptr[2] = src_ptr[2];
359 dst_ptr[3] = src_ptr[3];
360 dst_ptr[4] = src_ptr[4];
361 dst_ptr[5] = src_ptr[5];
362 dst_ptr[6] = src_ptr[6];
363 dst_ptr[7] = src_ptr[7];
364 dst_ptr[8] = src_ptr[8];
365 dst_ptr[9] = src_ptr[9];
366 dst_ptr[10] = src_ptr[10];
367 dst_ptr[11] = src_ptr[11];
368 dst_ptr[12] = src_ptr[12];
369 dst_ptr[13] = src_ptr[13];
370 dst_ptr[14] = src_ptr[14];
371 dst_ptr[15] = src_ptr[15];
372 dst_ptr[16] = src_ptr[16];
373 dst_ptr[17] = src_ptr[17];
374 dst_ptr[18] = src_ptr[18];
375 dst_ptr[19] = src_ptr[19];
376 dst_ptr[20] = src_ptr[20];
377 dst_ptr[21] = src_ptr[21];
378 dst_ptr[22] = src_ptr[22];
379 dst_ptr[23] = src_ptr[23];
380 dst_ptr[24] = src_ptr[24];
381 dst_ptr[25] = src_ptr[25];
382 dst_ptr[26] = src_ptr[26];
383 dst_ptr[27] = src_ptr[27];
384 dst_ptr[28] = src_ptr[28];
385 dst_ptr[29] = src_ptr[29];
386 dst_ptr[30] = src_ptr[30];
387 dst_ptr[31] = src_ptr[31];
388 #else
389 ((uint32_t *)dst_ptr)[0] = ((uint32_t *)src_ptr)[0] ;
390 ((uint32_t *)dst_ptr)[1] = ((uint32_t *)src_ptr)[1] ;
391 ((uint32_t *)dst_ptr)[2] = ((uint32_t *)src_ptr)[2] ;
392 ((uint32_t *)dst_ptr)[3] = ((uint32_t *)src_ptr)[3] ;
393 ((uint32_t *)dst_ptr)[4] = ((uint32_t *)src_ptr)[4] ;
394 ((uint32_t *)dst_ptr)[5] = ((uint32_t *)src_ptr)[5] ;
395 ((uint32_t *)dst_ptr)[6] = ((uint32_t *)src_ptr)[6] ;
396 ((uint32_t *)dst_ptr)[7] = ((uint32_t *)src_ptr)[7] ;
397 #endif
398 src_ptr += src_stride;
399 dst_ptr += dst_stride;
400
401 }
402 }
OLDNEW
« no previous file with comments | « libvpx/source/libvpx/vp8/encoder/rdopt.c ('k') | libvpx/source/libvpx/vp8/encoder/ssim.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698