| 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 | 
| 11 | 11 | 
| 12 #include <stdlib.h> | 12 #include <stdlib.h> | 
|  | 13 #include "vpx_ports/config.h" | 
|  | 14 #include "vpx/vpx_integer.h" | 
| 13 | 15 | 
| 14 unsigned int vp8_sad16x16_c( | 16 unsigned int vp8_sad16x16_c( | 
| 15     const unsigned char *src_ptr, | 17     const unsigned char *src_ptr, | 
| 16     int  src_stride, | 18     int  src_stride, | 
| 17     const unsigned char *ref_ptr, | 19     const unsigned char *ref_ptr, | 
| 18     int  ref_stride, | 20     int  ref_stride, | 
| 19     int max_sad) | 21     int max_sad) | 
| 20 { | 22 { | 
| 21 | 23 | 
| 22     int r, c; | 24     int r, c; | 
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 330     unsigned char *ref_ptr[], | 332     unsigned char *ref_ptr[], | 
| 331     int  ref_stride, | 333     int  ref_stride, | 
| 332     unsigned int *sad_array | 334     unsigned int *sad_array | 
| 333 ) | 335 ) | 
| 334 { | 336 { | 
| 335     sad_array[0] = vp8_sad4x4_c(src_ptr, src_stride, ref_ptr[0], ref_stride, 0x7
     fffffff); | 337     sad_array[0] = vp8_sad4x4_c(src_ptr, src_stride, ref_ptr[0], ref_stride, 0x7
     fffffff); | 
| 336     sad_array[1] = vp8_sad4x4_c(src_ptr, src_stride, ref_ptr[1], ref_stride, 0x7
     fffffff); | 338     sad_array[1] = vp8_sad4x4_c(src_ptr, src_stride, ref_ptr[1], ref_stride, 0x7
     fffffff); | 
| 337     sad_array[2] = vp8_sad4x4_c(src_ptr, src_stride, ref_ptr[2], ref_stride, 0x7
     fffffff); | 339     sad_array[2] = vp8_sad4x4_c(src_ptr, src_stride, ref_ptr[2], ref_stride, 0x7
     fffffff); | 
| 338     sad_array[3] = vp8_sad4x4_c(src_ptr, src_stride, ref_ptr[3], ref_stride, 0x7
     fffffff); | 340     sad_array[3] = vp8_sad4x4_c(src_ptr, src_stride, ref_ptr[3], ref_stride, 0x7
     fffffff); | 
| 339 } | 341 } | 
|  | 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 } | 
| OLD | NEW | 
|---|