summaryrefslogtreecommitdiff
path: root/vp9/common
diff options
context:
space:
mode:
authorScott LaVarnway <slavarnway@google.com>2013-02-05 08:56:05 -0800
committerGerrit Code Review <gerrit@gerrit.golo.chromium.org>2013-02-05 08:56:05 -0800
commit77440d508b54619c0220d33bd857f9f248d51ab0 (patch)
treec977da1b28d6b42ac2f562c00ad9215f93b97596 /vp9/common
parentfb4b533da9ebf03b443ec4e8f310e0b31ec49c31 (diff)
parent5780c4cbd592c92da567609f737dbf823b055cd6 (diff)
downloadlibvpx-77440d508b54619c0220d33bd857f9f248d51ab0.tar
libvpx-77440d508b54619c0220d33bd857f9f248d51ab0.tar.gz
libvpx-77440d508b54619c0220d33bd857f9f248d51ab0.tar.bz2
libvpx-77440d508b54619c0220d33bd857f9f248d51ab0.zip
Merge "Added vp9_short_idct1_32x32_c" into experimental
Diffstat (limited to 'vp9/common')
-rw-r--r--vp9/common/vp9_idctllm.c10
-rw-r--r--vp9/common/vp9_rtcd_defs.sh3
2 files changed, 13 insertions, 0 deletions
diff --git a/vp9/common/vp9_idctllm.c b/vp9/common/vp9_idctllm.c
index 7dd2776f6..85f8fd7db 100644
--- a/vp9/common/vp9_idctllm.c
+++ b/vp9/common/vp9_idctllm.c
@@ -1644,6 +1644,16 @@ void vp9_short_idct32x32_c(int16_t *input, int16_t *output, int pitch) {
}
}
+void vp9_short_idct1_32x32_c(int16_t *input, int16_t *output) {
+ int tmp;
+ int16_t out;
+ tmp = input[0] * cospi_16_64;
+ out = dct_const_round_shift(tmp);
+ tmp = out * cospi_16_64;
+ out = dct_const_round_shift(tmp);
+ *output = (out + 32) >> 6;
+}
+
#else // !CONFIG_DWTDCTHYBRID
#if DWT_TYPE == 53
diff --git a/vp9/common/vp9_rtcd_defs.sh b/vp9/common/vp9_rtcd_defs.sh
index 7822ee857..8f66e06c8 100644
--- a/vp9/common/vp9_rtcd_defs.sh
+++ b/vp9/common/vp9_rtcd_defs.sh
@@ -408,6 +408,9 @@ specialize vp9_short_idct1_16x16
prototype void vp9_short_idct32x32 "int16_t *input, int16_t *output, int pitch"
specialize vp9_short_idct32x32
+prototype void vp9_short_idct1_32x32 "int16_t *input, int16_t *output"
+specialize vp9_short_idct1_32x32
+
prototype void vp9_ihtllm "const int16_t *input, int16_t *output, int pitch, int tx_type, int tx_dim, int16_t eobs"
specialize vp9_ihtllm