aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-03-08 18:43:33 +0000
committerMåns Rullgård <mans@mansr.com>2010-03-08 18:43:33 +0000
commit6a81329593fcb10ab912de283a5a8f3e360fb815 (patch)
treea5ecaf69ede4f01875807a5bf81ce4f6f29ccaaf
parent2f8ba7fc74848de65a2edfc88984438ab1a1aa8d (diff)
downloadffmpeg-6a81329593fcb10ab912de283a5a8f3e360fb815.tar.gz
Move dctref prototypes to a header file
Originally committed as revision 22331 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/dct-test.c6
-rw-r--r--libavcodec/dctref.c2
-rw-r--r--libavcodec/dctref.h31
3 files changed, 34 insertions, 5 deletions
diff --git a/libavcodec/dct-test.c b/libavcodec/dct-test.c
index 80285476de..bc0dc1fdac 100644
--- a/libavcodec/dct-test.c
+++ b/libavcodec/dct-test.c
@@ -40,16 +40,12 @@
#include "faandct.h"
#include "faanidct.h"
#include "x86/idct_xvid.h"
+#include "dctref.h"
#undef printf
void *fast_memcpy(void *a, const void *b, size_t c){return memcpy(a,b,c);};
-/* reference fdct/idct */
-void ff_ref_fdct(DCTELEM *block);
-void ff_ref_idct(DCTELEM *block);
-void ff_ref_dct_init(void);
-
void ff_mmx_idct(DCTELEM *data);
void ff_mmxext_idct(DCTELEM *data);
diff --git a/libavcodec/dctref.c b/libavcodec/dctref.c
index faad057a9a..c915ed6fd7 100644
--- a/libavcodec/dctref.c
+++ b/libavcodec/dctref.c
@@ -30,6 +30,8 @@
*/
#include "libavutil/mathematics.h"
+#include "dctref.h"
+
static double coefficients[8 * 8];
/**
diff --git a/libavcodec/dctref.h b/libavcodec/dctref.h
new file mode 100644
index 0000000000..adbaf689e2
--- /dev/null
+++ b/libavcodec/dctref.h
@@ -0,0 +1,31 @@
+/*
+ * reference discrete cosine transform (double precision)
+ * Copyright (C) 2009 Dylan Yudaken
+ *
+ * This file is part of FFmpeg.
+ *
+ * FFmpeg is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * FFmpeg is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with FFmpeg; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef AVCODEC_DCTREF_H
+#define AVCODEC_DCTREF_H
+
+#include "dsputil.h"
+
+void ff_ref_fdct(DCTELEM *block);
+void ff_ref_idct(DCTELEM *block);
+void ff_ref_dct_init(void);
+
+#endif