| Index: source/libvpx/vp8/common/x86/variance_sse2.c
|
| diff --git a/source/libvpx/vp8/common/x86/variance_sse2.c b/source/libvpx/vp8/common/x86/variance_sse2.c
|
| index 1fe127bf2c6aea384ad3382471cf2608a81d8fab..f6dfb27871db78bbe7b845e5a193b6de755c0f85 100644
|
| --- a/source/libvpx/vp8/common/x86/variance_sse2.c
|
| +++ b/source/libvpx/vp8/common/x86/variance_sse2.c
|
| @@ -8,6 +8,7 @@
|
| * be found in the AUTHORS file in the root of the source tree.
|
| */
|
|
|
| +#include "./vp8_rtcd.h"
|
| #include "vpx_config.h"
|
| #include "vp8/common/variance.h"
|
| #include "vpx_ports/mem.h"
|
| @@ -30,38 +31,6 @@ extern void vp8_filter_block2d_bil4x4_var_mmx
|
| unsigned int *sumsquared
|
| );
|
|
|
| -extern unsigned int vp8_get4x4var_mmx
|
| -(
|
| - const unsigned char *src_ptr,
|
| - int source_stride,
|
| - const unsigned char *ref_ptr,
|
| - int recon_stride,
|
| - unsigned int *SSE,
|
| - int *Sum
|
| -);
|
| -
|
| -unsigned int vp8_get_mb_ss_sse2
|
| -(
|
| - const short *src_ptr
|
| -);
|
| -unsigned int vp8_get16x16var_sse2
|
| -(
|
| - const unsigned char *src_ptr,
|
| - int source_stride,
|
| - const unsigned char *ref_ptr,
|
| - int recon_stride,
|
| - unsigned int *SSE,
|
| - int *Sum
|
| -);
|
| -unsigned int vp8_get8x8var_sse2
|
| -(
|
| - const unsigned char *src_ptr,
|
| - int source_stride,
|
| - const unsigned char *ref_ptr,
|
| - int recon_stride,
|
| - unsigned int *SSE,
|
| - int *Sum
|
| -);
|
| void vp8_filter_block2d_bil_var_sse2
|
| (
|
| const unsigned char *ref_ptr,
|
| @@ -135,115 +104,6 @@ void vp8_half_vert_variance16x_h_sse2
|
| unsigned int *sumsquared
|
| );
|
|
|
| -unsigned int vp8_variance4x4_wmt(
|
| - const unsigned char *src_ptr,
|
| - int source_stride,
|
| - const unsigned char *ref_ptr,
|
| - int recon_stride,
|
| - unsigned int *sse)
|
| -{
|
| - unsigned int var;
|
| - int avg;
|
| -
|
| - vp8_get4x4var_mmx(src_ptr, source_stride, ref_ptr, recon_stride, &var, &avg) ;
|
| - *sse = var;
|
| - return (var - (((unsigned int)avg * avg) >> 4));
|
| -
|
| -}
|
| -
|
| -unsigned int vp8_variance8x8_wmt
|
| -(
|
| - const unsigned char *src_ptr,
|
| - int source_stride,
|
| - const unsigned char *ref_ptr,
|
| - int recon_stride,
|
| - unsigned int *sse)
|
| -{
|
| - unsigned int var;
|
| - int avg;
|
| -
|
| - vp8_get8x8var_sse2(src_ptr, source_stride, ref_ptr, recon_stride, &var, &avg) ;
|
| - *sse = var;
|
| - return (var - (((unsigned int)avg * avg) >> 6));
|
| -
|
| -}
|
| -
|
| -
|
| -unsigned int vp8_variance16x16_wmt
|
| -(
|
| - const unsigned char *src_ptr,
|
| - int source_stride,
|
| - const unsigned char *ref_ptr,
|
| - int recon_stride,
|
| - unsigned int *sse)
|
| -{
|
| - unsigned int sse0;
|
| - int sum0;
|
| -
|
| -
|
| - vp8_get16x16var_sse2(src_ptr, source_stride, ref_ptr, recon_stride, &sse0, &sum0) ;
|
| - *sse = sse0;
|
| - return (sse0 - (((unsigned int)sum0 * sum0) >> 8));
|
| -}
|
| -unsigned int vp8_mse16x16_wmt(
|
| - const unsigned char *src_ptr,
|
| - int source_stride,
|
| - const unsigned char *ref_ptr,
|
| - int recon_stride,
|
| - unsigned int *sse)
|
| -{
|
| -
|
| - unsigned int sse0;
|
| - int sum0;
|
| - vp8_get16x16var_sse2(src_ptr, source_stride, ref_ptr, recon_stride, &sse0, &sum0) ;
|
| - *sse = sse0;
|
| - return sse0;
|
| -
|
| -}
|
| -
|
| -
|
| -unsigned int vp8_variance16x8_wmt
|
| -(
|
| - const unsigned char *src_ptr,
|
| - int source_stride,
|
| - const unsigned char *ref_ptr,
|
| - int recon_stride,
|
| - unsigned int *sse)
|
| -{
|
| - unsigned int sse0, sse1, var;
|
| - int sum0, sum1, avg;
|
| -
|
| - vp8_get8x8var_sse2(src_ptr, source_stride, ref_ptr, recon_stride, &sse0, &sum0) ;
|
| - vp8_get8x8var_sse2(src_ptr + 8, source_stride, ref_ptr + 8, recon_stride, &sse1, &sum1);
|
| -
|
| - var = sse0 + sse1;
|
| - avg = sum0 + sum1;
|
| - *sse = var;
|
| - return (var - (((unsigned int)avg * avg) >> 7));
|
| -
|
| -}
|
| -
|
| -unsigned int vp8_variance8x16_wmt
|
| -(
|
| - const unsigned char *src_ptr,
|
| - int source_stride,
|
| - const unsigned char *ref_ptr,
|
| - int recon_stride,
|
| - unsigned int *sse)
|
| -{
|
| - unsigned int sse0, sse1, var;
|
| - int sum0, sum1, avg;
|
| -
|
| - vp8_get8x8var_sse2(src_ptr, source_stride, ref_ptr, recon_stride, &sse0, &sum0) ;
|
| - vp8_get8x8var_sse2(src_ptr + 8 * source_stride, source_stride, ref_ptr + 8 * recon_stride, recon_stride, &sse1, &sum1) ;
|
| -
|
| - var = sse0 + sse1;
|
| - avg = sum0 + sum1;
|
| - *sse = var;
|
| - return (var - (((unsigned int)avg * avg) >> 7));
|
| -
|
| -}
|
| -
|
| unsigned int vp8_sub_pixel_variance4x4_wmt
|
| (
|
| const unsigned char *src_ptr,
|
|
|