| Index: source/libvpx/vp9/encoder/vp9_variance.h
|
| diff --git a/source/libvpx/vp9/encoder/vp9_variance.h b/source/libvpx/vp9/encoder/vp9_variance.h
|
| index 8fc47a85057391d668e82678ebd058a5a035d439..0a8739510f42a6b35d40260210d252bb479d39eb 100644
|
| --- a/source/libvpx/vp9/encoder/vp9_variance.h
|
| +++ b/source/libvpx/vp9/encoder/vp9_variance.h
|
| @@ -18,60 +18,6 @@
|
| extern "C" {
|
| #endif
|
|
|
| -// TODO(johannkoenig): All functions which depend on
|
| -// [highbd_][8|10|12_]variance should be refactored or moved to vpx_dsp.
|
| -static void variance(const uint8_t *a, int a_stride,
|
| - const uint8_t *b, int b_stride,
|
| - int w, int h, unsigned int *sse, int *sum) {
|
| - int i, j;
|
| -
|
| - *sum = 0;
|
| - *sse = 0;
|
| -
|
| - for (i = 0; i < h; i++) {
|
| - for (j = 0; j < w; j++) {
|
| - const int diff = a[j] - b[j];
|
| - *sum += diff;
|
| - *sse += diff * diff;
|
| - }
|
| -
|
| - a += a_stride;
|
| - b += b_stride;
|
| - }
|
| -}
|
| -
|
| -#if CONFIG_VP9_HIGHBITDEPTH
|
| -static void highbd_variance64(const uint8_t *a8, int a_stride,
|
| - const uint8_t *b8, int b_stride,
|
| - int w, int h, uint64_t *sse, uint64_t *sum) {
|
| - int i, j;
|
| -
|
| - uint16_t *a = CONVERT_TO_SHORTPTR(a8);
|
| - uint16_t *b = CONVERT_TO_SHORTPTR(b8);
|
| - *sum = 0;
|
| - *sse = 0;
|
| -
|
| - for (i = 0; i < h; i++) {
|
| - for (j = 0; j < w; j++) {
|
| - const int diff = a[j] - b[j];
|
| - *sum += diff;
|
| - *sse += diff * diff;
|
| - }
|
| - a += a_stride;
|
| - b += b_stride;
|
| - }
|
| -}
|
| -static void highbd_8_variance(const uint8_t *a8, int a_stride,
|
| - const uint8_t *b8, int b_stride,
|
| - int w, int h, unsigned int *sse, int *sum) {
|
| - uint64_t sse_long = 0;
|
| - uint64_t sum_long = 0;
|
| - highbd_variance64(a8, a_stride, b8, b_stride, w, h, &sse_long, &sum_long);
|
| - *sse = (unsigned int)sse_long;
|
| - *sum = (int)sum_long;
|
| -}
|
| -#endif
|
| -
|
| typedef unsigned int(*vp9_sad_fn_t)(const uint8_t *src_ptr,
|
| int source_stride,
|
| const uint8_t *ref_ptr,
|
|
|