2010-05-18 17:58:33 +02:00
|
|
|
/*
|
2010-09-09 14:16:39 +02:00
|
|
|
* Copyright (c) 2010 The WebM project authors. All Rights Reserved.
|
2010-05-18 17:58:33 +02:00
|
|
|
*
|
2010-06-18 18:39:21 +02:00
|
|
|
* Use of this source code is governed by a BSD-style license
|
2010-06-04 22:19:40 +02:00
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
2010-06-18 18:39:21 +02:00
|
|
|
* in the file PATENTS. All contributing project authors may
|
2010-06-04 22:19:40 +02:00
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
2010-05-18 17:58:33 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
2012-11-27 22:59:17 +01:00
|
|
|
#include "vp9/common/vp9_sadmxn.h"
|
2012-12-23 16:20:10 +01:00
|
|
|
#include "./vpx_config.h"
|
2011-06-28 15:14:13 +02:00
|
|
|
#include "vpx/vpx_integer.h"
|
2013-02-28 17:10:08 +01:00
|
|
|
#include "./vp9_rtcd.h"
|
2010-05-18 17:58:33 +02:00
|
|
|
|
2013-01-06 03:20:25 +01:00
|
|
|
unsigned int vp9_sad64x64_c(const uint8_t *src_ptr,
|
|
|
|
int src_stride,
|
|
|
|
const uint8_t *ref_ptr,
|
|
|
|
int ref_stride,
|
2013-02-28 17:10:08 +01:00
|
|
|
unsigned int max_sad) {
|
2013-01-06 03:20:25 +01:00
|
|
|
return sad_mx_n_c(src_ptr, src_stride, ref_ptr, ref_stride, 64, 64);
|
|
|
|
}
|
|
|
|
|
2012-12-19 00:31:19 +01:00
|
|
|
unsigned int vp9_sad32x32_c(const uint8_t *src_ptr,
|
2012-08-20 23:43:34 +02:00
|
|
|
int src_stride,
|
2012-12-19 00:31:19 +01:00
|
|
|
const uint8_t *ref_ptr,
|
2012-08-20 23:43:34 +02:00
|
|
|
int ref_stride,
|
2013-02-28 17:10:08 +01:00
|
|
|
unsigned int max_sad) {
|
2012-08-20 23:43:34 +02:00
|
|
|
return sad_mx_n_c(src_ptr, src_stride, ref_ptr, ref_stride, 32, 32);
|
|
|
|
}
|
|
|
|
|
2012-12-19 00:31:19 +01:00
|
|
|
unsigned int vp9_sad16x16_c(const uint8_t *src_ptr,
|
2012-08-20 23:43:34 +02:00
|
|
|
int src_stride,
|
2012-12-19 00:31:19 +01:00
|
|
|
const uint8_t *ref_ptr,
|
2012-08-20 23:43:34 +02:00
|
|
|
int ref_stride,
|
2013-02-28 17:10:08 +01:00
|
|
|
unsigned int max_sad) {
|
2012-08-20 23:43:34 +02:00
|
|
|
return sad_mx_n_c(src_ptr, src_stride, ref_ptr, ref_stride, 16, 16);
|
|
|
|
}
|
2010-05-18 17:58:33 +02:00
|
|
|
|
2012-12-19 00:31:19 +01:00
|
|
|
unsigned int vp9_sad8x8_c(const uint8_t *src_ptr,
|
2012-10-30 22:25:33 +01:00
|
|
|
int src_stride,
|
2012-12-19 00:31:19 +01:00
|
|
|
const uint8_t *ref_ptr,
|
2012-10-30 22:25:33 +01:00
|
|
|
int ref_stride,
|
2013-02-28 17:10:08 +01:00
|
|
|
unsigned int max_sad) {
|
2012-07-14 00:21:29 +02:00
|
|
|
return sad_mx_n_c(src_ptr, src_stride, ref_ptr, ref_stride, 8, 8);
|
2010-05-18 17:58:33 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-12-19 00:31:19 +01:00
|
|
|
unsigned int vp9_sad16x8_c(const uint8_t *src_ptr,
|
2012-10-30 22:25:33 +01:00
|
|
|
int src_stride,
|
2012-12-19 00:31:19 +01:00
|
|
|
const uint8_t *ref_ptr,
|
2012-10-30 22:25:33 +01:00
|
|
|
int ref_stride,
|
2013-02-28 17:10:08 +01:00
|
|
|
unsigned int max_sad) {
|
2012-07-14 00:21:29 +02:00
|
|
|
return sad_mx_n_c(src_ptr, src_stride, ref_ptr, ref_stride, 16, 8);
|
2010-05-18 17:58:33 +02:00
|
|
|
}
|
|
|
|
|
2012-12-19 00:31:19 +01:00
|
|
|
unsigned int vp9_sad8x16_c(const uint8_t *src_ptr,
|
2012-10-30 22:25:33 +01:00
|
|
|
int src_stride,
|
2012-12-19 00:31:19 +01:00
|
|
|
const uint8_t *ref_ptr,
|
2012-10-30 22:25:33 +01:00
|
|
|
int ref_stride,
|
2013-02-28 17:10:08 +01:00
|
|
|
unsigned int max_sad) {
|
2012-07-14 00:21:29 +02:00
|
|
|
return sad_mx_n_c(src_ptr, src_stride, ref_ptr, ref_stride, 8, 16);
|
2010-05-18 17:58:33 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-12-19 00:31:19 +01:00
|
|
|
unsigned int vp9_sad4x4_c(const uint8_t *src_ptr,
|
2012-10-30 22:25:33 +01:00
|
|
|
int src_stride,
|
2012-12-19 00:31:19 +01:00
|
|
|
const uint8_t *ref_ptr,
|
2012-10-30 22:25:33 +01:00
|
|
|
int ref_stride,
|
2013-02-28 17:10:08 +01:00
|
|
|
unsigned int max_sad) {
|
2012-07-14 00:21:29 +02:00
|
|
|
return sad_mx_n_c(src_ptr, src_stride, ref_ptr, ref_stride, 4, 4);
|
2010-05-18 17:58:33 +02:00
|
|
|
}
|
2012-08-20 23:43:34 +02:00
|
|
|
|
2013-01-06 03:20:25 +01:00
|
|
|
void vp9_sad64x64x3_c(const uint8_t *src_ptr,
|
|
|
|
int src_stride,
|
|
|
|
const uint8_t *ref_ptr,
|
|
|
|
int ref_stride,
|
|
|
|
unsigned int *sad_array) {
|
2013-02-28 17:10:08 +01:00
|
|
|
sad_array[0] = vp9_sad64x64(src_ptr, src_stride, ref_ptr, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[1] = vp9_sad64x64(src_ptr, src_stride, ref_ptr + 1, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[2] = vp9_sad64x64(src_ptr, src_stride, ref_ptr + 2, ref_stride,
|
|
|
|
0x7fffffff);
|
2013-01-06 03:20:25 +01:00
|
|
|
}
|
|
|
|
|
2012-12-19 00:31:19 +01:00
|
|
|
void vp9_sad32x32x3_c(const uint8_t *src_ptr,
|
2012-08-20 23:43:34 +02:00
|
|
|
int src_stride,
|
2012-12-19 00:31:19 +01:00
|
|
|
const uint8_t *ref_ptr,
|
2012-08-20 23:43:34 +02:00
|
|
|
int ref_stride,
|
2012-12-19 00:31:19 +01:00
|
|
|
unsigned int *sad_array) {
|
2013-02-28 17:10:08 +01:00
|
|
|
sad_array[0] = vp9_sad32x32(src_ptr, src_stride,
|
|
|
|
ref_ptr, ref_stride, 0x7fffffff);
|
|
|
|
sad_array[1] = vp9_sad32x32(src_ptr, src_stride,
|
|
|
|
ref_ptr + 1, ref_stride, 0x7fffffff);
|
|
|
|
sad_array[2] = vp9_sad32x32(src_ptr, src_stride,
|
|
|
|
ref_ptr + 2, ref_stride, 0x7fffffff);
|
2012-08-20 23:43:34 +02:00
|
|
|
}
|
|
|
|
|
2013-01-06 03:20:25 +01:00
|
|
|
void vp9_sad64x64x8_c(const uint8_t *src_ptr,
|
|
|
|
int src_stride,
|
|
|
|
const uint8_t *ref_ptr,
|
|
|
|
int ref_stride,
|
2013-02-28 17:32:14 +01:00
|
|
|
unsigned int *sad_array) {
|
|
|
|
sad_array[0] = vp9_sad64x64(src_ptr, src_stride,
|
|
|
|
ref_ptr, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[1] = vp9_sad64x64(src_ptr, src_stride,
|
|
|
|
ref_ptr + 1, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[2] = vp9_sad64x64(src_ptr, src_stride,
|
|
|
|
ref_ptr + 2, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[3] = vp9_sad64x64(src_ptr, src_stride,
|
|
|
|
ref_ptr + 3, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[4] = vp9_sad64x64(src_ptr, src_stride,
|
|
|
|
ref_ptr + 4, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[5] = vp9_sad64x64(src_ptr, src_stride,
|
|
|
|
ref_ptr + 5, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[6] = vp9_sad64x64(src_ptr, src_stride,
|
|
|
|
ref_ptr + 6, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[7] = vp9_sad64x64(src_ptr, src_stride,
|
|
|
|
ref_ptr + 7, ref_stride,
|
|
|
|
0x7fffffff);
|
2013-01-06 03:20:25 +01:00
|
|
|
}
|
|
|
|
|
2012-12-19 00:31:19 +01:00
|
|
|
void vp9_sad32x32x8_c(const uint8_t *src_ptr,
|
2012-08-20 23:43:34 +02:00
|
|
|
int src_stride,
|
2012-12-19 00:31:19 +01:00
|
|
|
const uint8_t *ref_ptr,
|
2012-08-20 23:43:34 +02:00
|
|
|
int ref_stride,
|
2013-02-28 17:32:14 +01:00
|
|
|
unsigned int *sad_array) {
|
|
|
|
sad_array[0] = vp9_sad32x32(src_ptr, src_stride,
|
|
|
|
ref_ptr, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[1] = vp9_sad32x32(src_ptr, src_stride,
|
|
|
|
ref_ptr + 1, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[2] = vp9_sad32x32(src_ptr, src_stride,
|
|
|
|
ref_ptr + 2, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[3] = vp9_sad32x32(src_ptr, src_stride,
|
|
|
|
ref_ptr + 3, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[4] = vp9_sad32x32(src_ptr, src_stride,
|
|
|
|
ref_ptr + 4, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[5] = vp9_sad32x32(src_ptr, src_stride,
|
|
|
|
ref_ptr + 5, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[6] = vp9_sad32x32(src_ptr, src_stride,
|
|
|
|
ref_ptr + 6, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[7] = vp9_sad32x32(src_ptr, src_stride,
|
|
|
|
ref_ptr + 7, ref_stride,
|
|
|
|
0x7fffffff);
|
2012-08-20 23:43:34 +02:00
|
|
|
}
|
|
|
|
|
2012-12-19 00:31:19 +01:00
|
|
|
void vp9_sad16x16x3_c(const uint8_t *src_ptr,
|
2012-10-30 22:25:33 +01:00
|
|
|
int src_stride,
|
2012-12-19 00:31:19 +01:00
|
|
|
const uint8_t *ref_ptr,
|
2012-10-30 22:25:33 +01:00
|
|
|
int ref_stride,
|
|
|
|
unsigned int *sad_array) {
|
2013-02-28 17:10:08 +01:00
|
|
|
sad_array[0] = vp9_sad16x16(src_ptr, src_stride,
|
|
|
|
ref_ptr, ref_stride, 0x7fffffff);
|
|
|
|
sad_array[1] = vp9_sad16x16(src_ptr, src_stride,
|
|
|
|
ref_ptr + 1, ref_stride, 0x7fffffff);
|
|
|
|
sad_array[2] = vp9_sad16x16(src_ptr, src_stride,
|
|
|
|
ref_ptr + 2, ref_stride, 0x7fffffff);
|
2010-05-18 17:58:33 +02:00
|
|
|
}
|
|
|
|
|
2012-12-19 00:31:19 +01:00
|
|
|
void vp9_sad16x16x8_c(const uint8_t *src_ptr,
|
2012-10-30 22:25:33 +01:00
|
|
|
int src_stride,
|
2012-12-19 00:31:19 +01:00
|
|
|
const uint8_t *ref_ptr,
|
2012-10-30 22:25:33 +01:00
|
|
|
int ref_stride,
|
2013-02-28 17:32:14 +01:00
|
|
|
uint32_t *sad_array) {
|
|
|
|
sad_array[0] = vp9_sad16x16(src_ptr, src_stride,
|
|
|
|
ref_ptr, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[1] = vp9_sad16x16(src_ptr, src_stride,
|
|
|
|
ref_ptr + 1, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[2] = vp9_sad16x16(src_ptr, src_stride,
|
|
|
|
ref_ptr + 2, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[3] = vp9_sad16x16(src_ptr, src_stride,
|
|
|
|
ref_ptr + 3, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[4] = vp9_sad16x16(src_ptr, src_stride,
|
|
|
|
ref_ptr + 4, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[5] = vp9_sad16x16(src_ptr, src_stride,
|
|
|
|
ref_ptr + 5, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[6] = vp9_sad16x16(src_ptr, src_stride,
|
|
|
|
ref_ptr + 6, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[7] = vp9_sad16x16(src_ptr, src_stride,
|
|
|
|
ref_ptr + 7, ref_stride,
|
|
|
|
0x7fffffff);
|
2010-10-27 14:45:24 +02:00
|
|
|
}
|
|
|
|
|
2012-12-19 00:31:19 +01:00
|
|
|
void vp9_sad16x8x3_c(const uint8_t *src_ptr,
|
2012-10-30 22:25:33 +01:00
|
|
|
int src_stride,
|
2012-12-19 00:31:19 +01:00
|
|
|
const uint8_t *ref_ptr,
|
2012-10-30 22:25:33 +01:00
|
|
|
int ref_stride,
|
|
|
|
unsigned int *sad_array) {
|
2013-02-28 17:10:08 +01:00
|
|
|
sad_array[0] = vp9_sad16x8(src_ptr, src_stride,
|
|
|
|
ref_ptr, ref_stride, 0x7fffffff);
|
|
|
|
sad_array[1] = vp9_sad16x8(src_ptr, src_stride,
|
|
|
|
ref_ptr + 1, ref_stride, 0x7fffffff);
|
|
|
|
sad_array[2] = vp9_sad16x8(src_ptr, src_stride,
|
|
|
|
ref_ptr + 2, ref_stride, 0x7fffffff);
|
2010-05-18 17:58:33 +02:00
|
|
|
}
|
|
|
|
|
2012-12-19 00:31:19 +01:00
|
|
|
void vp9_sad16x8x8_c(const uint8_t *src_ptr,
|
2012-10-30 22:25:33 +01:00
|
|
|
int src_stride,
|
2012-12-19 00:31:19 +01:00
|
|
|
const uint8_t *ref_ptr,
|
2012-10-30 22:25:33 +01:00
|
|
|
int ref_stride,
|
2013-02-28 17:32:14 +01:00
|
|
|
uint32_t *sad_array) {
|
|
|
|
sad_array[0] = vp9_sad16x8(src_ptr, src_stride,
|
|
|
|
ref_ptr, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[1] = vp9_sad16x8(src_ptr, src_stride,
|
|
|
|
ref_ptr + 1, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[2] = vp9_sad16x8(src_ptr, src_stride,
|
|
|
|
ref_ptr + 2, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[3] = vp9_sad16x8(src_ptr, src_stride,
|
|
|
|
ref_ptr + 3, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[4] = vp9_sad16x8(src_ptr, src_stride,
|
|
|
|
ref_ptr + 4, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[5] = vp9_sad16x8(src_ptr, src_stride,
|
|
|
|
ref_ptr + 5, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[6] = vp9_sad16x8(src_ptr, src_stride,
|
|
|
|
ref_ptr + 6, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[7] = vp9_sad16x8(src_ptr, src_stride,
|
|
|
|
ref_ptr + 7, ref_stride,
|
|
|
|
0x7fffffff);
|
2010-10-27 14:45:24 +02:00
|
|
|
}
|
|
|
|
|
2012-12-19 00:31:19 +01:00
|
|
|
void vp9_sad8x8x3_c(const uint8_t *src_ptr,
|
2012-10-30 22:25:33 +01:00
|
|
|
int src_stride,
|
2012-12-19 00:31:19 +01:00
|
|
|
const uint8_t *ref_ptr,
|
2012-10-30 22:25:33 +01:00
|
|
|
int ref_stride,
|
|
|
|
unsigned int *sad_array) {
|
2013-02-28 17:10:08 +01:00
|
|
|
sad_array[0] = vp9_sad8x8(src_ptr, src_stride,
|
|
|
|
ref_ptr, ref_stride, 0x7fffffff);
|
|
|
|
sad_array[1] = vp9_sad8x8(src_ptr, src_stride,
|
|
|
|
ref_ptr + 1, ref_stride, 0x7fffffff);
|
|
|
|
sad_array[2] = vp9_sad8x8(src_ptr, src_stride,
|
|
|
|
ref_ptr + 2, ref_stride, 0x7fffffff);
|
2010-05-18 17:58:33 +02:00
|
|
|
}
|
|
|
|
|
2012-12-19 00:31:19 +01:00
|
|
|
void vp9_sad8x8x8_c(const uint8_t *src_ptr,
|
2012-10-30 22:25:33 +01:00
|
|
|
int src_stride,
|
2012-12-19 00:31:19 +01:00
|
|
|
const uint8_t *ref_ptr,
|
2012-10-30 22:25:33 +01:00
|
|
|
int ref_stride,
|
2013-02-28 17:32:14 +01:00
|
|
|
uint32_t *sad_array) {
|
|
|
|
sad_array[0] = vp9_sad8x8(src_ptr, src_stride,
|
|
|
|
ref_ptr, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[1] = vp9_sad8x8(src_ptr, src_stride,
|
|
|
|
ref_ptr + 1, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[2] = vp9_sad8x8(src_ptr, src_stride,
|
|
|
|
ref_ptr + 2, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[3] = vp9_sad8x8(src_ptr, src_stride,
|
|
|
|
ref_ptr + 3, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[4] = vp9_sad8x8(src_ptr, src_stride,
|
|
|
|
ref_ptr + 4, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[5] = vp9_sad8x8(src_ptr, src_stride,
|
|
|
|
ref_ptr + 5, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[6] = vp9_sad8x8(src_ptr, src_stride,
|
|
|
|
ref_ptr + 6, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[7] = vp9_sad8x8(src_ptr, src_stride,
|
|
|
|
ref_ptr + 7, ref_stride,
|
|
|
|
0x7fffffff);
|
2010-10-27 14:45:24 +02:00
|
|
|
}
|
|
|
|
|
2012-12-19 00:31:19 +01:00
|
|
|
void vp9_sad8x16x3_c(const uint8_t *src_ptr,
|
2012-10-30 22:25:33 +01:00
|
|
|
int src_stride,
|
2012-12-19 00:31:19 +01:00
|
|
|
const uint8_t *ref_ptr,
|
2012-10-30 22:25:33 +01:00
|
|
|
int ref_stride,
|
|
|
|
unsigned int *sad_array) {
|
2013-02-28 17:10:08 +01:00
|
|
|
sad_array[0] = vp9_sad8x16(src_ptr, src_stride,
|
|
|
|
ref_ptr, ref_stride, 0x7fffffff);
|
|
|
|
sad_array[1] = vp9_sad8x16(src_ptr, src_stride,
|
|
|
|
ref_ptr + 1, ref_stride, 0x7fffffff);
|
|
|
|
sad_array[2] = vp9_sad8x16(src_ptr, src_stride,
|
|
|
|
ref_ptr + 2, ref_stride, 0x7fffffff);
|
2010-05-18 17:58:33 +02:00
|
|
|
}
|
|
|
|
|
2012-12-19 00:31:19 +01:00
|
|
|
void vp9_sad8x16x8_c(const uint8_t *src_ptr,
|
2012-10-30 22:25:33 +01:00
|
|
|
int src_stride,
|
2012-12-19 00:31:19 +01:00
|
|
|
const uint8_t *ref_ptr,
|
2012-10-30 22:25:33 +01:00
|
|
|
int ref_stride,
|
2013-02-28 17:32:14 +01:00
|
|
|
uint32_t *sad_array) {
|
|
|
|
sad_array[0] = vp9_sad8x16(src_ptr, src_stride,
|
|
|
|
ref_ptr, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[1] = vp9_sad8x16(src_ptr, src_stride,
|
|
|
|
ref_ptr + 1, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[2] = vp9_sad8x16(src_ptr, src_stride,
|
|
|
|
ref_ptr + 2, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[3] = vp9_sad8x16(src_ptr, src_stride,
|
|
|
|
ref_ptr + 3, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[4] = vp9_sad8x16(src_ptr, src_stride,
|
|
|
|
ref_ptr + 4, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[5] = vp9_sad8x16(src_ptr, src_stride,
|
|
|
|
ref_ptr + 5, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[6] = vp9_sad8x16(src_ptr, src_stride,
|
|
|
|
ref_ptr + 6, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[7] = vp9_sad8x16(src_ptr, src_stride,
|
|
|
|
ref_ptr + 7, ref_stride,
|
|
|
|
0x7fffffff);
|
2010-10-27 14:45:24 +02:00
|
|
|
}
|
|
|
|
|
2012-12-19 00:31:19 +01:00
|
|
|
void vp9_sad4x4x3_c(const uint8_t *src_ptr,
|
2012-10-30 22:25:33 +01:00
|
|
|
int src_stride,
|
2012-12-19 00:31:19 +01:00
|
|
|
const uint8_t *ref_ptr,
|
2012-10-30 22:25:33 +01:00
|
|
|
int ref_stride,
|
|
|
|
unsigned int *sad_array) {
|
2013-02-28 17:10:08 +01:00
|
|
|
sad_array[0] = vp9_sad4x4(src_ptr, src_stride,
|
|
|
|
ref_ptr, ref_stride, 0x7fffffff);
|
|
|
|
sad_array[1] = vp9_sad4x4(src_ptr, src_stride,
|
|
|
|
ref_ptr + 1, ref_stride, 0x7fffffff);
|
|
|
|
sad_array[2] = vp9_sad4x4(src_ptr, src_stride,
|
|
|
|
ref_ptr + 2, ref_stride, 0x7fffffff);
|
2010-05-18 17:58:33 +02:00
|
|
|
}
|
|
|
|
|
2012-12-19 00:31:19 +01:00
|
|
|
void vp9_sad4x4x8_c(const uint8_t *src_ptr,
|
2012-10-30 22:25:33 +01:00
|
|
|
int src_stride,
|
2012-12-19 00:31:19 +01:00
|
|
|
const uint8_t *ref_ptr,
|
2012-10-30 22:25:33 +01:00
|
|
|
int ref_stride,
|
2013-02-28 17:32:14 +01:00
|
|
|
uint32_t *sad_array) {
|
|
|
|
sad_array[0] = vp9_sad4x4(src_ptr, src_stride,
|
|
|
|
ref_ptr, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[1] = vp9_sad4x4(src_ptr, src_stride,
|
|
|
|
ref_ptr + 1, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[2] = vp9_sad4x4(src_ptr, src_stride,
|
|
|
|
ref_ptr + 2, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[3] = vp9_sad4x4(src_ptr, src_stride,
|
|
|
|
ref_ptr + 3, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[4] = vp9_sad4x4(src_ptr, src_stride,
|
|
|
|
ref_ptr + 4, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[5] = vp9_sad4x4(src_ptr, src_stride,
|
|
|
|
ref_ptr + 5, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[6] = vp9_sad4x4(src_ptr, src_stride,
|
|
|
|
ref_ptr + 6, ref_stride,
|
|
|
|
0x7fffffff);
|
|
|
|
sad_array[7] = vp9_sad4x4(src_ptr, src_stride,
|
|
|
|
ref_ptr + 7, ref_stride,
|
|
|
|
0x7fffffff);
|
2010-10-27 14:45:24 +02:00
|
|
|
}
|
|
|
|
|
2013-01-06 03:20:25 +01:00
|
|
|
void vp9_sad64x64x4d_c(const uint8_t *src_ptr,
|
|
|
|
int src_stride,
|
2013-03-01 21:43:41 +01:00
|
|
|
const uint8_t* const ref_ptr[],
|
2013-01-06 03:20:25 +01:00
|
|
|
int ref_stride,
|
|
|
|
unsigned int *sad_array) {
|
2013-02-28 17:10:08 +01:00
|
|
|
sad_array[0] = vp9_sad64x64(src_ptr, src_stride,
|
|
|
|
ref_ptr[0], ref_stride, 0x7fffffff);
|
|
|
|
sad_array[1] = vp9_sad64x64(src_ptr, src_stride,
|
|
|
|
ref_ptr[1], ref_stride, 0x7fffffff);
|
|
|
|
sad_array[2] = vp9_sad64x64(src_ptr, src_stride,
|
|
|
|
ref_ptr[2], ref_stride, 0x7fffffff);
|
|
|
|
sad_array[3] = vp9_sad64x64(src_ptr, src_stride,
|
|
|
|
ref_ptr[3], ref_stride, 0x7fffffff);
|
2013-01-06 03:20:25 +01:00
|
|
|
}
|
|
|
|
|
2012-12-19 00:31:19 +01:00
|
|
|
void vp9_sad32x32x4d_c(const uint8_t *src_ptr,
|
2012-08-20 23:43:34 +02:00
|
|
|
int src_stride,
|
2013-03-01 21:43:41 +01:00
|
|
|
const uint8_t* const ref_ptr[],
|
2012-08-20 23:43:34 +02:00
|
|
|
int ref_stride,
|
2012-12-19 00:31:19 +01:00
|
|
|
unsigned int *sad_array) {
|
2013-02-28 17:10:08 +01:00
|
|
|
sad_array[0] = vp9_sad32x32(src_ptr, src_stride,
|
|
|
|
ref_ptr[0], ref_stride, 0x7fffffff);
|
|
|
|
sad_array[1] = vp9_sad32x32(src_ptr, src_stride,
|
|
|
|
ref_ptr[1], ref_stride, 0x7fffffff);
|
|
|
|
sad_array[2] = vp9_sad32x32(src_ptr, src_stride,
|
|
|
|
ref_ptr[2], ref_stride, 0x7fffffff);
|
|
|
|
sad_array[3] = vp9_sad32x32(src_ptr, src_stride,
|
|
|
|
ref_ptr[3], ref_stride, 0x7fffffff);
|
2012-08-20 23:43:34 +02:00
|
|
|
}
|
|
|
|
|
2012-12-19 00:31:19 +01:00
|
|
|
void vp9_sad16x16x4d_c(const uint8_t *src_ptr,
|
2012-10-30 22:25:33 +01:00
|
|
|
int src_stride,
|
2013-03-01 21:43:41 +01:00
|
|
|
const uint8_t* const ref_ptr[],
|
2012-10-30 22:25:33 +01:00
|
|
|
int ref_stride,
|
|
|
|
unsigned int *sad_array) {
|
2013-02-28 17:10:08 +01:00
|
|
|
sad_array[0] = vp9_sad16x16(src_ptr, src_stride,
|
|
|
|
ref_ptr[0], ref_stride, 0x7fffffff);
|
|
|
|
sad_array[1] = vp9_sad16x16(src_ptr, src_stride,
|
|
|
|
ref_ptr[1], ref_stride, 0x7fffffff);
|
|
|
|
sad_array[2] = vp9_sad16x16(src_ptr, src_stride,
|
|
|
|
ref_ptr[2], ref_stride, 0x7fffffff);
|
|
|
|
sad_array[3] = vp9_sad16x16(src_ptr, src_stride,
|
|
|
|
ref_ptr[3], ref_stride, 0x7fffffff);
|
2010-05-18 17:58:33 +02:00
|
|
|
}
|
|
|
|
|
2012-12-19 00:31:19 +01:00
|
|
|
void vp9_sad16x8x4d_c(const uint8_t *src_ptr,
|
2012-10-30 22:25:33 +01:00
|
|
|
int src_stride,
|
2013-03-01 21:43:41 +01:00
|
|
|
const uint8_t* const ref_ptr[],
|
2012-10-30 22:25:33 +01:00
|
|
|
int ref_stride,
|
|
|
|
unsigned int *sad_array) {
|
2013-02-28 17:10:08 +01:00
|
|
|
sad_array[0] = vp9_sad16x8(src_ptr, src_stride,
|
|
|
|
ref_ptr[0], ref_stride, 0x7fffffff);
|
|
|
|
sad_array[1] = vp9_sad16x8(src_ptr, src_stride,
|
|
|
|
ref_ptr[1], ref_stride, 0x7fffffff);
|
|
|
|
sad_array[2] = vp9_sad16x8(src_ptr, src_stride,
|
|
|
|
ref_ptr[2], ref_stride, 0x7fffffff);
|
|
|
|
sad_array[3] = vp9_sad16x8(src_ptr, src_stride,
|
|
|
|
ref_ptr[3], ref_stride, 0x7fffffff);
|
2010-05-18 17:58:33 +02:00
|
|
|
}
|
|
|
|
|
2012-12-19 00:31:19 +01:00
|
|
|
void vp9_sad8x8x4d_c(const uint8_t *src_ptr,
|
2012-10-30 22:25:33 +01:00
|
|
|
int src_stride,
|
2013-03-01 21:43:41 +01:00
|
|
|
const uint8_t* const ref_ptr[],
|
2012-10-30 22:25:33 +01:00
|
|
|
int ref_stride,
|
|
|
|
unsigned int *sad_array) {
|
2013-02-28 17:10:08 +01:00
|
|
|
sad_array[0] = vp9_sad8x8(src_ptr, src_stride,
|
|
|
|
ref_ptr[0], ref_stride, 0x7fffffff);
|
|
|
|
sad_array[1] = vp9_sad8x8(src_ptr, src_stride,
|
|
|
|
ref_ptr[1], ref_stride, 0x7fffffff);
|
|
|
|
sad_array[2] = vp9_sad8x8(src_ptr, src_stride,
|
|
|
|
ref_ptr[2], ref_stride, 0x7fffffff);
|
|
|
|
sad_array[3] = vp9_sad8x8(src_ptr, src_stride,
|
|
|
|
ref_ptr[3], ref_stride, 0x7fffffff);
|
2010-05-18 17:58:33 +02:00
|
|
|
}
|
|
|
|
|
2012-12-19 00:31:19 +01:00
|
|
|
void vp9_sad8x16x4d_c(const uint8_t *src_ptr,
|
2012-10-30 22:25:33 +01:00
|
|
|
int src_stride,
|
2013-03-01 21:43:41 +01:00
|
|
|
const uint8_t* const ref_ptr[],
|
2012-10-30 22:25:33 +01:00
|
|
|
int ref_stride,
|
|
|
|
unsigned int *sad_array) {
|
2013-02-28 17:10:08 +01:00
|
|
|
sad_array[0] = vp9_sad8x16(src_ptr, src_stride,
|
|
|
|
ref_ptr[0], ref_stride, 0x7fffffff);
|
|
|
|
sad_array[1] = vp9_sad8x16(src_ptr, src_stride,
|
|
|
|
ref_ptr[1], ref_stride, 0x7fffffff);
|
|
|
|
sad_array[2] = vp9_sad8x16(src_ptr, src_stride,
|
|
|
|
ref_ptr[2], ref_stride, 0x7fffffff);
|
|
|
|
sad_array[3] = vp9_sad8x16(src_ptr, src_stride,
|
|
|
|
ref_ptr[3], ref_stride, 0x7fffffff);
|
2010-05-18 17:58:33 +02:00
|
|
|
}
|
|
|
|
|
2012-12-19 00:31:19 +01:00
|
|
|
void vp9_sad4x4x4d_c(const uint8_t *src_ptr,
|
2012-10-30 22:25:33 +01:00
|
|
|
int src_stride,
|
2013-03-01 21:43:41 +01:00
|
|
|
const uint8_t* const ref_ptr[],
|
2012-10-30 22:25:33 +01:00
|
|
|
int ref_stride,
|
|
|
|
unsigned int *sad_array) {
|
2013-02-28 17:10:08 +01:00
|
|
|
sad_array[0] = vp9_sad4x4(src_ptr, src_stride,
|
|
|
|
ref_ptr[0], ref_stride, 0x7fffffff);
|
|
|
|
sad_array[1] = vp9_sad4x4(src_ptr, src_stride,
|
|
|
|
ref_ptr[1], ref_stride, 0x7fffffff);
|
|
|
|
sad_array[2] = vp9_sad4x4(src_ptr, src_stride,
|
|
|
|
ref_ptr[2], ref_stride, 0x7fffffff);
|
|
|
|
sad_array[3] = vp9_sad4x4(src_ptr, src_stride,
|
|
|
|
ref_ptr[3], ref_stride, 0x7fffffff);
|
2010-05-18 17:58:33 +02:00
|
|
|
}
|
2013-02-28 17:10:08 +01:00
|
|
|
|