summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kovalev <dkovalev@google.com>2014-01-15 12:24:06 -0800
committerGerrit Code Review <gerrit@gerrit.golo.chromium.org>2014-01-15 12:24:06 -0800
commit8b5133fc4cd3d5ccc024adbf3065ecb3b5b7bbbe (patch)
tree22851af41d38c4440029b26d29ad4feae6544582
parentae5b96d3554636acb4e5d7c7ce58905f2b625ac1 (diff)
parent62a2c2b15bf4341e26ba7f0f06ba009a684e4783 (diff)
downloadlibvpx-8b5133fc4cd3d5ccc024adbf3065ecb3b5b7bbbe.tar
libvpx-8b5133fc4cd3d5ccc024adbf3065ecb3b5b7bbbe.tar.gz
libvpx-8b5133fc4cd3d5ccc024adbf3065ecb3b5b7bbbe.tar.bz2
libvpx-8b5133fc4cd3d5ccc024adbf3065ecb3b5b7bbbe.zip
Merge "Removing unused calc_partial_ssl_err() function."
-rw-r--r--vp9/encoder/vp9_picklpf.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/vp9/encoder/vp9_picklpf.c b/vp9/encoder/vp9_picklpf.c
index 58078addf..7a5282dda 100644
--- a/vp9/encoder/vp9_picklpf.c
+++ b/vp9/encoder/vp9_picklpf.c
@@ -32,44 +32,6 @@ void vp9_yv12_copy_partial_frame_c(YV12_BUFFER_CONFIG *src_ybc,
stride * (lines_to_copy + 16));
}
-static int calc_partial_ssl_err(YV12_BUFFER_CONFIG *source,
- YV12_BUFFER_CONFIG *dest, int Fraction) {
- int i, j;
- int Total = 0;
- int srcoffset, dstoffset;
- uint8_t *src = source->y_buffer;
- uint8_t *dst = dest->y_buffer;
-
- int linestocopy = (source->y_height >> (Fraction + 4));
-
- if (linestocopy < 1)
- linestocopy = 1;
-
- linestocopy <<= 4;
-
-
- srcoffset = source->y_stride * (dest->y_height >> 5) * 16;
- dstoffset = dest->y_stride * (dest->y_height >> 5) * 16;
-
- src += srcoffset;
- dst += dstoffset;
-
- // Loop through the raw Y plane and reconstruction data summing the square
- // differences.
- for (i = 0; i < linestocopy; i += 16) {
- for (j = 0; j < source->y_width; j += 16) {
- unsigned int sse;
- Total += vp9_mse16x16(src + j, source->y_stride, dst + j, dest->y_stride,
- &sse);
- }
-
- src += 16 * source->y_stride;
- dst += 16 * dest->y_stride;
- }
-
- return Total;
-}
-
// Enforce a minimum filter level based upon baseline Q
static int get_min_filter_level(VP9_COMP *cpi, int base_qindex) {
int min_filter_level;