diff options
author | Yaowu Xu <yaowu@google.com> | 2013-03-18 08:51:19 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@gerrit.golo.chromium.org> | 2013-03-18 08:51:19 -0700 |
commit | 12ade557190b5cc2847daeba23b80cbe5ae2e7f7 (patch) | |
tree | c6f508b43497cb313dacfd5fb7197b660b814315 /vp9/common | |
parent | 9a56ea7e46e44c8e0242991ab1141166537380a0 (diff) | |
parent | 005552639b276709868a4a0f86f27a737c7c6917 (diff) | |
download | libvpx-12ade557190b5cc2847daeba23b80cbe5ae2e7f7.tar libvpx-12ade557190b5cc2847daeba23b80cbe5ae2e7f7.tar.gz libvpx-12ade557190b5cc2847daeba23b80cbe5ae2e7f7.tar.bz2 libvpx-12ade557190b5cc2847daeba23b80cbe5ae2e7f7.zip |
Merge "removed reference to "LLM" and "x8"" into experimental
Diffstat (limited to 'vp9/common')
-rw-r--r-- | vp9/common/ppc/vp9_idct_altivec.asm (renamed from vp9/common/ppc/vp9_idctllm_altivec.asm) | 4 | ||||
-rw-r--r-- | vp9/common/ppc/vp9_systemdependent.c | 10 | ||||
-rw-r--r-- | vp9/common/vp9_idct.c (renamed from vp9/common/vp9_idctllm.c) | 24 | ||||
-rw-r--r-- | vp9/common/vp9_rtcd_defs.sh | 24 | ||||
-rw-r--r-- | vp9/common/x86/vp9_idct_sse2.asm (renamed from vp9/common/x86/vp9_idctllm_sse2.asm) | 0 | ||||
-rw-r--r-- | vp9/common/x86/vp9_idct_x86.c (renamed from vp9/common/x86/vp9_idctllm_x86.c) | 2 |
6 files changed, 25 insertions, 39 deletions
diff --git a/vp9/common/ppc/vp9_idctllm_altivec.asm b/vp9/common/ppc/vp9_idct_altivec.asm index 117d9cfc8..b87aa4200 100644 --- a/vp9/common/ppc/vp9_idctllm_altivec.asm +++ b/vp9/common/ppc/vp9_idct_altivec.asm @@ -9,7 +9,7 @@ ; - .globl short_idct4x4llm_ppc + .globl short_idct4x4_ppc .macro load_c V, LABEL, OFF, R0, R1 lis \R0, \LABEL@ha @@ -21,7 +21,7 @@ ;# r4 short *output ;# r5 int pitch .align 2 -short_idct4x4llm_ppc: +short_idct4x4_ppc: mfspr r11, 256 ;# get old VRSAVE oris r12, r11, 0xfff8 mtspr 256, r12 ;# set VRSAVE diff --git a/vp9/common/ppc/vp9_systemdependent.c b/vp9/common/ppc/vp9_systemdependent.c index 02035191f..ac13722d4 100644 --- a/vp9/common/ppc/vp9_systemdependent.c +++ b/vp9/common/ppc/vp9_systemdependent.c @@ -63,7 +63,7 @@ void recon_b_ppc(short *diff_ptr, unsigned char *pred_ptr, unsigned char *dst_pt void recon2b_ppc(short *diff_ptr, unsigned char *pred_ptr, unsigned char *dst_ptr, int stride); void recon4b_ppc(short *diff_ptr, unsigned char *pred_ptr, unsigned char *dst_ptr, int stride); -extern void short_idct4x4llm_ppc(short *input, short *output, int pitch); +extern void short_idct4x4_ppc(short *input, short *output, int pitch); // Generic C extern subpixel_predict_function vp9_sixtap_predict_c; @@ -83,8 +83,8 @@ void vp9_recon_b_c(short *diff_ptr, unsigned char *pred_ptr, unsigned char *dst_ void vp9_recon2b_c(short *diff_ptr, unsigned char *pred_ptr, unsigned char *dst_ptr, int stride); void vp9_recon4b_c(short *diff_ptr, unsigned char *pred_ptr, unsigned char *dst_ptr, int stride); -extern void vp9_short_idct4x4llm_1_c(short *input, short *output, int pitch); -extern void vp9_short_idct4x4llm_c(short *input, short *output, int pitch); +extern void vp9_short_idct4x4_1_c(short *input, short *output, int pitch); +extern void vp9_short_idct4x4_c(short *input, short *output, int pitch); extern void vp8_dc_only_idct_c(short input_dc, short *output, int pitch); // PPC @@ -139,8 +139,8 @@ void vp9_machine_specific_config(void) { vp9_sixtap_predict8x4 = sixtap_predict8x4_ppc; vp9_sixtap_predict = sixtap_predict_ppc; - vp8_short_idct4x4_1 = vp9_short_idct4x4llm_1_c; - vp8_short_idct4x4 = short_idct4x4llm_ppc; + vp8_short_idct4x4_1 = vp9_short_idct4x4_1_c; + vp8_short_idct4x4 = short_idct4x4_ppc; vp8_dc_only_idct = vp8_dc_only_idct_c; vp8_lf_mbvfull = loop_filter_mbv_ppc; diff --git a/vp9/common/vp9_idctllm.c b/vp9/common/vp9_idct.c index e2106250f..3ec093f73 100644 --- a/vp9/common/vp9_idctllm.c +++ b/vp9/common/vp9_idct.c @@ -8,20 +8,6 @@ * be found in the AUTHORS file in the root of the source tree. */ - -/**************************************************************************** - * Notes: - * - * This implementation makes use of 16 bit fixed point verio of two multiply - * constants: - * 1. sqrt(2) * cos (pi/8) - * 2. sqrt(2) * sin (pi/8) - * Becuase the first constant is bigger than 1, to maintain the same 16 bit - * fixed point precision as the second one, we use a trick of - * x * a = x + x*(a-1) - * so - * x * sqrt(2) * cos (pi/8) = x + x * (sqrt(2) *cos(pi/8)-1). - **************************************************************************/ #include <assert.h> #include <math.h> @@ -32,7 +18,7 @@ #include "vp9/common/vp9_common.h" #include "vp9/common/vp9_idct.h" -void vp9_short_inv_walsh4x4_x8_c(int16_t *input, int16_t *output, int pitch) { +void vp9_short_iwalsh4x4_c(int16_t *input, int16_t *output, int pitch) { int i; int a1, b1, c1, d1; int16_t *ip = input; @@ -73,7 +59,7 @@ void vp9_short_inv_walsh4x4_x8_c(int16_t *input, int16_t *output, int pitch) { } } -void vp9_short_inv_walsh4x4_1_x8_c(int16_t *in, int16_t *out, int pitch) { +void vp9_short_iwalsh4x4_1_c(int16_t *in, int16_t *out, int pitch) { int i; int16_t tmp[4]; int16_t *ip = in; @@ -99,7 +85,7 @@ void vp9_dc_only_inv_walsh_add_c(int input_dc, uint8_t *pred_ptr, int r, c; int16_t dc = input_dc; int16_t tmp[4 * 4]; - vp9_short_inv_walsh4x4_1_x8_c(&dc, tmp, 4 << 1); + vp9_short_iwalsh4x4_1_c(&dc, tmp, 4 << 1); for (r = 0; r < 4; r++) { for (c = 0; c < 4; c++) @@ -130,7 +116,7 @@ void vp9_idct4_1d_c(int16_t *input, int16_t *output) { output[3] = step[0] - step[3]; } -void vp9_short_idct4x4llm_c(int16_t *input, int16_t *output, int pitch) { +void vp9_short_idct4x4_c(int16_t *input, int16_t *output, int pitch) { int16_t out[4 * 4]; int16_t *outptr = out; const int half_pitch = pitch >> 1; @@ -156,7 +142,7 @@ void vp9_short_idct4x4llm_c(int16_t *input, int16_t *output, int pitch) { } } -void vp9_short_idct4x4llm_1_c(int16_t *input, int16_t *output, int pitch) { +void vp9_short_idct4x4_1_c(int16_t *input, int16_t *output, int pitch) { int i; int a1; int16_t *op = output; diff --git a/vp9/common/vp9_rtcd_defs.sh b/vp9/common/vp9_rtcd_defs.sh index 911fcc55e..0c2a5c94a 100644 --- a/vp9/common/vp9_rtcd_defs.sh +++ b/vp9/common/vp9_rtcd_defs.sh @@ -279,11 +279,11 @@ specialize vp9_convolve8_avg_vert ssse3 # # dct # -prototype void vp9_short_idct4x4llm_1 "int16_t *input, int16_t *output, int pitch" -specialize vp9_short_idct4x4llm_1 +prototype void vp9_short_idct4x4_1 "int16_t *input, int16_t *output, int pitch" +specialize vp9_short_idct4x4_1 -prototype void vp9_short_idct4x4llm "int16_t *input, int16_t *output, int pitch" -specialize vp9_short_idct4x4llm sse2 +prototype void vp9_short_idct4x4 "int16_t *input, int16_t *output, int pitch" +specialize vp9_short_idct4x4 sse2 prototype void vp9_short_idct8x8 "int16_t *input, int16_t *output, int pitch" specialize vp9_short_idct8x8 @@ -330,10 +330,10 @@ specialize vp9_idct4_1d sse2 prototype void vp9_dc_only_idct_add "int input_dc, uint8_t *pred_ptr, uint8_t *dst_ptr, int pitch, int stride" specialize vp9_dc_only_idct_add sse2 -prototype void vp9_short_inv_walsh4x4_1_x8 "int16_t *input, int16_t *output, int pitch" -specialize vp9_short_inv_walsh4x4_1_x8 -prototype void vp9_short_inv_walsh4x4_x8 "int16_t *input, int16_t *output, int pitch" -specialize vp9_short_inv_walsh4x4_x8 +prototype void vp9_short_iwalsh4x4_1 "int16_t *input, int16_t *output, int pitch" +specialize vp9_short_iwalsh4x4_1 +prototype void vp9_short_iwalsh4x4 "int16_t *input, int16_t *output, int pitch" +specialize vp9_short_iwalsh4x4 prototype void vp9_dc_only_inv_walsh_add "int input_dc, uint8_t *pred_ptr, uint8_t *dst_ptr, int pitch, int stride" specialize vp9_dc_only_inv_walsh_add @@ -600,11 +600,11 @@ specialize vp9_short_fdct32x32 prototype void vp9_short_fdct16x16 "int16_t *InputData, int16_t *OutputData, int pitch" specialize vp9_short_fdct16x16 sse2 -prototype void vp9_short_walsh4x4_x8 "int16_t *InputData, int16_t *OutputData, int pitch" -specialize vp9_short_walsh4x4_x8 +prototype void vp9_short_walsh4x4 "int16_t *InputData, int16_t *OutputData, int pitch" +specialize vp9_short_walsh4x4 -prototype void vp9_short_walsh8x4_x8 "int16_t *InputData, int16_t *OutputData, int pitch" -specialize vp9_short_walsh8x4_x8 +prototype void vp9_short_walsh8x4 "int16_t *InputData, int16_t *OutputData, int pitch" +specialize vp9_short_walsh8x4 # # Motion search diff --git a/vp9/common/x86/vp9_idctllm_sse2.asm b/vp9/common/x86/vp9_idct_sse2.asm index 8f3c6dfc3..8f3c6dfc3 100644 --- a/vp9/common/x86/vp9_idctllm_sse2.asm +++ b/vp9/common/x86/vp9_idct_sse2.asm diff --git a/vp9/common/x86/vp9_idctllm_x86.c b/vp9/common/x86/vp9_idct_x86.c index 3d7a1481c..6a35823bd 100644 --- a/vp9/common/x86/vp9_idctllm_x86.c +++ b/vp9/common/x86/vp9_idct_x86.c @@ -74,7 +74,7 @@ void vp9_dc_only_idct_add_sse2(int input_dc, uint8_t *pred_ptr, *(int *)dst_ptr = _mm_cvtsi128_si32(p1); } -void vp9_short_idct4x4llm_sse2(int16_t *input, int16_t *output, int pitch) { +void vp9_short_idct4x4_sse2(int16_t *input, int16_t *output, int pitch) { const __m128i zero = _mm_setzero_si128(); const __m128i eight = _mm_set1_epi16(8); const __m128i cst = _mm_setr_epi16((int16_t)cospi_16_64, (int16_t)cospi_16_64, |