From 83c07de4907c9a7934ec00452db61232d86fe4fb Mon Sep 17 00:00:00 2001 From: Konstantinos Margaritis Date: Fri, 23 Sep 2022 07:31:58 +0000 Subject: [PATCH] renamed variance_svp64.c to variancefuncs_svp64.c --- ...variance_svp64.c => variancefuncs_svp64.c} | 21 ------------------- 1 file changed, 21 deletions(-) rename media/video/libvpx/{variance_svp64.c => variancefuncs_svp64.c} (94%) diff --git a/media/video/libvpx/variance_svp64.c b/media/video/libvpx/variancefuncs_svp64.c similarity index 94% rename from media/video/libvpx/variance_svp64.c rename to media/video/libvpx/variancefuncs_svp64.c index cdfaa052..1dab2b87 100644 --- a/media/video/libvpx/variance_svp64.c +++ b/media/video/libvpx/variancefuncs_svp64.c @@ -21,27 +21,6 @@ static const uint8_t bilinear_filters[8][2] = { { 64, 64 }, { 48, 80 }, { 32, 96 }, { 16, 112 }, }; - -static void variance_svp64(const uint8_t *src_ptr, int src_stride, - const uint8_t *ref_ptr, int ref_stride, int w, int h, - uint32_t *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 = src_ptr[j] - ref_ptr[j]; - *sum += diff; - *sse += diff * diff; - } - - src_ptr += src_stride; - ref_ptr += ref_stride; - } -} - // Applies a 1-D 2-tap bilinear filter to the source block in either horizontal // or vertical direction to produce the filtered output block. Used to implement // the first-pass of 2-D separable filter. -- 2.30.2