summaryrefslogtreecommitdiff
path: root/libavcodec/dct-test.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-01-12 04:10:04 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-01-12 04:15:20 +0100
commit2ce4543286a80e962a98967f7a8d8ffa8eb5b4a7 (patch)
tree3c495afcaa7dbc65dd363074bee3febb7e22d65d /libavcodec/dct-test.c
parentb00a8b4d194f1bf23343f3f42138affa1fe26641 (diff)
avcodec/dct-test: add support for C prores IDCT
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dct-test.c')
-rw-r--r--libavcodec/dct-test.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavcodec/dct-test.c b/libavcodec/dct-test.c
index dc439c6195..bc1af8e19a 100644
--- a/libavcodec/dct-test.c
+++ b/libavcodec/dct-test.c
@@ -99,6 +99,15 @@ static const struct algo fdct_tab[] = {
{ 0 }
};
+static void ff_prores_idct_wrap(int16_t *dst){
+ DECLARE_ALIGNED(16, static int16_t, qmat)[64];
+ int i;
+
+ for(i=0; i<64; i++){
+ qmat[i]=4;
+ }
+ ff_prores_idct(dst, qmat);
+}
#if ARCH_X86_64 && HAVE_MMX && HAVE_YASM
void ff_prores_idct_put_10_sse2(uint16_t *dst, int linesize,
int16_t *block, int16_t *qmat);
@@ -125,6 +134,7 @@ static const struct algo idct_tab[] = {
{ "REF-DBL", ff_ref_idct, NO_PERM },
{ "INT", ff_j_rev_dct, MMX_PERM },
{ "SIMPLE-C", ff_simple_idct_8, NO_PERM },
+ { "PR-C", ff_prores_idct_wrap, NO_PERM, 0, 1 },
#if HAVE_MMX_INLINE
{ "SIMPLE-MMX", ff_simple_idct_mmx, MMX_SIMPLE_PERM, AV_CPU_FLAG_MMX },