Commit a1431526 authored by Scott LaVarnway's avatar Scott LaVarnway
Browse files

Removed unused idct functions

No longer used.

Change-Id: Id28c9247cebba183c6fa786dff96824ae100132c
parent 0c3f3bf1
......@@ -86,13 +86,6 @@ void vp9_short_iwalsh4x4_1_add_c(int16_t *in, uint8_t *dest, int dest_stride) {
}
}
void vp9_dc_only_inv_walsh_add_c(int input_dc, uint8_t *pred_ptr,
uint8_t *dst_ptr,
int pitch, int stride) {
int16_t dc = input_dc;
vp9_short_iwalsh4x4_1_add_c(&dc, dst_ptr, stride);
}
void vp9_idct4_1d_c(int16_t *input, int16_t *output) {
int16_t step[4];
int temp1, temp2;
......
This diff is collapsed.
......@@ -143,12 +143,6 @@ void vp9_idct_add_c(int16_t *input, uint8_t *dest, int stride, int eob) {
}
}
void vp9_dc_idct_add_c(int16_t *input, uint8_t *dest, int stride, int dc) {
input[0] = dc;
vp9_short_idct4x4_add(input, dest, stride);
vpx_memset(input, 0, 32);
}
void vp9_idct_add_lossless_c(int16_t *input, uint8_t *dest, int stride,
int eob) {
if (eob > 1) {
......@@ -160,13 +154,6 @@ void vp9_idct_add_lossless_c(int16_t *input, uint8_t *dest, int stride,
}
}
void vp9_dc_idct_add_lossless_c(int16_t *input, uint8_t *dest,
int stride, int dc) {
input[0] = dc;
vp9_short_iwalsh4x4_add(input, dest, stride);
vpx_memset(input, 0, 32);
}
void vp9_idct_add_8x8_c(int16_t *input, uint8_t *dest, int stride, int eob) {
// If dc is 1, then input[0] is the reconstructed value, do not need
// dequantization. Also, when dc is 1, dc is counted in eobs, namely eobs >=1.
......
......@@ -18,13 +18,6 @@
void vp9_idct_add_lossless_c(int16_t *input, unsigned char *dest, int stride,
int eob);
void vp9_dc_idct_add_lossless_c(int16_t *input, unsigned char *output,
int stride, int dc);
void vp9_dc_idct_add_y_block_lossless_c(int16_t *q, unsigned char *pre,
unsigned char *dst, int stride,
const int16_t *dc);
void vp9_idct_add_y_block_lossless_c(int16_t *q, unsigned char *dst, int stride,
struct macroblockd *xd);
......
/*
* Copyright (c) 2010 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#include "./vpx_config.h"
#include "vp9/common/vp9_blockd.h"
void vp9_idct_dequant_dc_0_2x_sse2(short *q, const short *dq,
unsigned char *pre, unsigned char *dst,
int dst_stride, const short *dc);
void vp9_idct_dequant_dc_full_2x_sse2(short *q, const short *dq,
unsigned char *pre, unsigned char *dst,
int dst_stride, const short *dc);
void vp9_idct_dequant_0_2x_sse2(short *q, const short *dq,
unsigned char *pre, unsigned char *dst,
int dst_stride, int blk_stride);
void vp9_idct_dequant_full_2x_sse2(short *q, const short *dq,
unsigned char *pre, unsigned char *dst,
int dst_stride, int blk_stride);
void vp9_dequant_dc_idct_add_y_block_sse2(short *q, const short *dq,
unsigned char *pre,
unsigned char *dst,
int stride, unsigned short *eobs,
const short *dc) {
int i;
for (i = 0; i < 4; i++) {
if (((short *)(eobs))[0] & 0xfefe)
vp9_idct_dequant_dc_full_2x_sse2(q, dq, pre, dst, stride, dc);
else
vp9_idct_dequant_dc_0_2x_sse2(q, dq, pre, dst, stride, dc);
if (((short *)(eobs))[1] & 0xfefe)
vp9_idct_dequant_dc_full_2x_sse2(q + 32, dq, pre + 8, dst + 8,
stride, dc + 2);
else
vp9_idct_dequant_dc_0_2x_sse2(q + 32, dq, pre + 8, dst + 8,
stride, dc + 2);
q += 64;
dc += 4;
pre += 64;
dst += stride * 4;
eobs += 4;
}
}
void vp9_dequant_idct_add_y_block_sse2(short *q, const short *dq,
unsigned char *pre, unsigned char *dst,
int stride, unsigned short *eobs) {
int i;
for (i = 0; i < 4; i++) {
if (((short *)(eobs))[0] & 0xfefe)
vp9_idct_dequant_full_2x_sse2(q, dq, pre, dst, stride, 16);
else
vp9_idct_dequant_0_2x_sse2(q, dq, pre, dst, stride, 16);
if (((short *)(eobs))[1] & 0xfefe)
vp9_idct_dequant_full_2x_sse2(q + 32, dq, pre + 8, dst + 8, stride, 16);
else
vp9_idct_dequant_0_2x_sse2(q + 32, dq, pre + 8, dst + 8, stride, 16);
q += 64;
pre += 64;
dst += stride * 4;
eobs += 4;
}
}
void vp9_dequant_idct_add_uv_block_sse2(short *q, const short *dq,
unsigned char *pre,
unsigned char *dstu,
unsigned char *dstv,
int stride, unsigned short *eobs) {
if (((short *)(eobs))[0] & 0xfefe)
vp9_idct_dequant_full_2x_sse2(q, dq, pre, dstu, stride, 8);
else
vp9_idct_dequant_0_2x_sse2(q, dq, pre, dstu, stride, 8);
q += 32;
pre += 32;
dstu += stride * 4;
if (((short *)(eobs))[1] & 0xfefe)
vp9_idct_dequant_full_2x_sse2(q, dq, pre, dstu, stride, 8);
else
vp9_idct_dequant_0_2x_sse2(q, dq, pre, dstu, stride, 8);
q += 32;
pre += 32;
if (((short *)(eobs))[2] & 0xfefe)
vp9_idct_dequant_full_2x_sse2(q, dq, pre, dstv, stride, 8);
else
vp9_idct_dequant_0_2x_sse2(q, dq, pre, dstv, stride, 8);
q += 32;
pre += 32;
dstv += stride * 4;
if (((short *)(eobs))[3] & 0xfefe)
vp9_idct_dequant_full_2x_sse2(q, dq, pre, dstv, stride, 8);
else
vp9_idct_dequant_0_2x_sse2(q, dq, pre, dstv, stride, 8);
}
......@@ -86,7 +86,6 @@ VP9_COMMON_SRCS-$(CONFIG_POSTPROC) += common/vp9_postproc.c
VP9_COMMON_SRCS-$(HAVE_MMX) += common/x86/vp9_iwalsh_mmx.asm
VP9_COMMON_SRCS-$(HAVE_MMX) += common/x86/vp9_recon_mmx.asm
VP9_COMMON_SRCS-$(HAVE_MMX) += common/x86/vp9_loopfilter_mmx.asm
VP9_COMMON_SRCS-$(HAVE_SSE2) += common/x86/vp9_idct_sse2.asm
VP9_COMMON_SRCS-$(HAVE_SSE2) += common/x86/vp9_iwalsh_sse2.asm
VP9_COMMON_SRCS-$(HAVE_SSE2) += common/x86/vp9_loopfilter_sse2.asm
VP9_COMMON_SRCS-$(HAVE_SSE2) += common/x86/vp9_recon_sse2.asm
......
......@@ -35,8 +35,6 @@ VP9_DX_SRCS-yes += decoder/vp9_idct_blk.h
VP9_DX_SRCS-yes := $(filter-out $(VP9_DX_SRCS_REMOVE-yes),$(VP9_DX_SRCS-yes))
VP9_DX_SRCS-$(HAVE_SSE2) += decoder/x86/vp9_idct_blk_sse2.c
VP9_DX_SRCS-$(HAVE_SSE2) += decoder/x86/vp9_dequantize_sse2.c
$(eval $(call asm_offsets_template,\
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment