summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorClément Bœsch <clement@stupeflix.com>2016-06-22 13:44:29 +0200
committerClément Bœsch <clement@stupeflix.com>2016-06-22 13:44:34 +0200
commit5d48e4eafa6c4559683892b8638d10508125f3cf (patch)
tree0d5becbd08d6ae319497dd32cbe9b67f4670cc5e /libavcodec
parent989a614b707dcff8abdffe28dc24ec64a83b2837 (diff)
parenta6a750c7ef240b72ce01e9653343a0ddf247d196 (diff)
Merge commit 'a6a750c7ef240b72ce01e9653343a0ddf247d196'
* commit 'a6a750c7ef240b72ce01e9653343a0ddf247d196': tests: Move all test programs to a subdirectory Merged-by: Clément Bœsch <clement@stupeflix.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/Makefile2
-rw-r--r--libavcodec/tests/.gitignore16
-rw-r--r--libavcodec/tests/arm/dct.c (renamed from libavcodec/arm/dct-test.c)2
-rw-r--r--libavcodec/tests/avfft.c (renamed from libavcodec/avfft-test.c)2
-rw-r--r--libavcodec/tests/cabac.c (renamed from libavcodec/cabac-test.c)4
-rw-r--r--libavcodec/tests/dct.c (renamed from libavcodec/dct-test.c)23
-rw-r--r--libavcodec/tests/fft-fixed.c (renamed from libavcodec/fft-fixed-test.c)2
-rw-r--r--libavcodec/tests/fft-fixed32.c (renamed from libavcodec/fft-fixed32-test.c)2
-rw-r--r--libavcodec/tests/fft.c (renamed from libavcodec/fft-test.c)6
-rw-r--r--libavcodec/tests/golomb.c (renamed from libavcodec/golomb-test.c)6
-rw-r--r--libavcodec/tests/iirfilter.c (renamed from libavcodec/iirfilter-test.c)2
-rw-r--r--libavcodec/tests/imgconvert.c (renamed from libavcodec/imgconvert-test.c)2
-rw-r--r--libavcodec/tests/jpeg2000dwt.c (renamed from libavcodec/jpeg2000dwt-test.c)2
-rw-r--r--libavcodec/tests/mathops.c (renamed from libavcodec/mathops-test.c)2
-rw-r--r--libavcodec/tests/motion.c (renamed from libavcodec/motion-test.c)2
-rw-r--r--libavcodec/tests/options.c (renamed from libavcodec/options-test.c)2
-rw-r--r--libavcodec/tests/ppc/dct.c (renamed from libavcodec/ppc/dct-test.c)2
-rw-r--r--libavcodec/tests/rangecoder.c (renamed from libavcodec/rangecoder-test.c)2
-rw-r--r--libavcodec/tests/snowenc.c (renamed from libavcodec/snowenc-test.c)2
-rw-r--r--libavcodec/tests/utils.c (renamed from libavcodec/utils-test.c)2
-rw-r--r--libavcodec/tests/x86/dct.c (renamed from libavcodec/x86/dct-test.c)6
21 files changed, 54 insertions, 37 deletions
diff --git a/libavcodec/Makefile b/libavcodec/Makefile
index 91df1ac998..7c3aa69590 100644
--- a/libavcodec/Makefile
+++ b/libavcodec/Makefile
@@ -1042,7 +1042,7 @@ HOSTPROGS = aacps_tablegen \
CLEANFILES = *_tables.c *_tables.h *_tablegen$(HOSTEXESUF)
-$(SUBDIR)dct-test$(EXESUF): $(SUBDIR)dctref.o $(SUBDIR)aandcttab.o
+$(SUBDIR)tests/dct$(EXESUF): $(SUBDIR)dctref.o $(SUBDIR)aandcttab.o
$(SUBDIR)dv_tablegen$(HOSTEXESUF): $(SUBDIR)dvdata_host.o
TRIG_TABLES = cos cos_fixed sin
diff --git a/libavcodec/tests/.gitignore b/libavcodec/tests/.gitignore
new file mode 100644
index 0000000000..d8ab947abe
--- /dev/null
+++ b/libavcodec/tests/.gitignore
@@ -0,0 +1,16 @@
+/avfft
+/cabac
+/dct
+/fft
+/fft-fixed
+/fft-fixed32
+/golomb
+/iirfilter
+/imgconvert
+/jpeg2000dwt
+/mathops
+/motion
+/options
+/rangecoder
+/snowenc
+/utils
diff --git a/libavcodec/arm/dct-test.c b/libavcodec/tests/arm/dct.c
index f9076b394f..596d369a99 100644
--- a/libavcodec/arm/dct-test.c
+++ b/libavcodec/tests/arm/dct.c
@@ -18,7 +18,7 @@
#include "config.h"
-#include "idct.h"
+#include "libavcodec/arm/idct.h"
static const struct algo fdct_tab_arch[] = {
{ 0 }
diff --git a/libavcodec/avfft-test.c b/libavcodec/tests/avfft.c
index c2d4cc44f7..6bc48ea870 100644
--- a/libavcodec/avfft-test.c
+++ b/libavcodec/tests/avfft.c
@@ -18,7 +18,7 @@
#include "config.h"
#include "libavutil/mem.h"
-#include "avfft.h"
+#include "libavcodec/avfft.h"
int main(int argc, char **argv)
{
diff --git a/libavcodec/cabac-test.c b/libavcodec/tests/cabac.c
index 47f31e997c..affe4eb141 100644
--- a/libavcodec/cabac-test.c
+++ b/libavcodec/tests/cabac.c
@@ -18,12 +18,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "cabac.c"
+#include "libavcodec/cabac.c"
#define SIZE 10240
#include "libavutil/lfg.h"
-#include "avcodec.h"
+#include "libavcodec/avcodec.h"
static inline void put_cabac_bit(CABACContext *c, int b){
put_bits(&c->pb, 1, b);
diff --git a/libavcodec/dct-test.c b/libavcodec/tests/dct.c
index df1b75db87..5303fdff8f 100644
--- a/libavcodec/dct-test.c
+++ b/libavcodec/tests/dct.c
@@ -36,17 +36,18 @@
#include "libavutil/cpu.h"
#include "libavutil/common.h"
+#include "libavutil/internal.h"
#include "libavutil/lfg.h"
#include "libavutil/time.h"
-#include "dct.h"
-#include "idctdsp.h"
-#include "simple_idct.h"
-#include "xvididct.h"
-#include "aandcttab.h"
-#include "faandct.h"
-#include "faanidct.h"
-#include "dctref.h"
+#include "libavcodec/dct.h"
+#include "libavcodec/idctdsp.h"
+#include "libavcodec/simple_idct.h"
+#include "libavcodec/xvididct.h"
+#include "libavcodec/aandcttab.h"
+#include "libavcodec/faandct.h"
+#include "libavcodec/faanidct.h"
+#include "libavcodec/dctref.h"
struct algo {
const char *name;
@@ -94,11 +95,11 @@ static const struct algo idct_tab[] = {
};
#if ARCH_ARM
-#include "arm/dct-test.c"
+#include "arm/dct.c"
#elif ARCH_PPC
-#include "ppc/dct-test.c"
+#include "ppc/dct.c"
#elif ARCH_X86
-#include "x86/dct-test.c"
+#include "x86/dct.c"
#else
static const struct algo fdct_tab_arch[] = { { 0 } };
static const struct algo idct_tab_arch[] = { { 0 } };
diff --git a/libavcodec/fft-fixed-test.c b/libavcodec/tests/fft-fixed.c
index 330211ebf6..fe1b57a3f6 100644
--- a/libavcodec/fft-fixed-test.c
+++ b/libavcodec/tests/fft-fixed.c
@@ -17,4 +17,4 @@
*/
#define FFT_FLOAT 0
-#include "fft-test.c"
+#include "fft.c"
diff --git a/libavcodec/fft-fixed32-test.c b/libavcodec/tests/fft-fixed32.c
index 4bd11cea61..f33494f7f3 100644
--- a/libavcodec/fft-fixed32-test.c
+++ b/libavcodec/tests/fft-fixed32.c
@@ -18,4 +18,4 @@
#define FFT_FLOAT 0
#define FFT_FIXED_32 1
-#include "fft-test.c"
+#include "fft.c"
diff --git a/libavcodec/fft-test.c b/libavcodec/tests/fft.c
index d647fde119..4717303155 100644
--- a/libavcodec/fft-test.c
+++ b/libavcodec/tests/fft.c
@@ -39,10 +39,10 @@
#include "libavutil/mathematics.h"
#include "libavutil/time.h"
-#include "fft.h"
+#include "libavcodec/fft.h"
#if FFT_FLOAT
-#include "dct.h"
-#include "rdft.h"
+#include "libavcodec/dct.h"
+#include "libavcodec/rdft.h"
#endif
/* reference fft */
diff --git a/libavcodec/golomb-test.c b/libavcodec/tests/golomb.c
index 2dfe917144..965367b7be 100644
--- a/libavcodec/golomb-test.c
+++ b/libavcodec/tests/golomb.c
@@ -23,9 +23,9 @@
#include "libavutil/mem.h"
-#include "get_bits.h"
-#include "golomb.h"
-#include "put_bits.h"
+#include "libavcodec/get_bits.h"
+#include "libavcodec/golomb.h"
+#include "libavcodec/put_bits.h"
#define COUNT 8191
#define SIZE (COUNT * 4)
diff --git a/libavcodec/iirfilter-test.c b/libavcodec/tests/iirfilter.c
index cd250a385f..60cc6fc43d 100644
--- a/libavcodec/iirfilter-test.c
+++ b/libavcodec/tests/iirfilter.c
@@ -22,7 +22,7 @@
#include "libavutil/libm.h"
-#include "iirfilter.h"
+#include "libavcodec/iirfilter.h"
#define FILT_ORDER 4
#define SIZE 1024
diff --git a/libavcodec/imgconvert-test.c b/libavcodec/tests/imgconvert.c
index 96004d79c2..c598d461d3 100644
--- a/libavcodec/imgconvert-test.c
+++ b/libavcodec/tests/imgconvert.c
@@ -19,7 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "imgconvert.c"
+#include "libavcodec/imgconvert.c"
#if FF_API_AVPICTURE
FF_DISABLE_DEPRECATION_WARNINGS
diff --git a/libavcodec/jpeg2000dwt-test.c b/libavcodec/tests/jpeg2000dwt.c
index 30f1ce1ef7..80b33bee79 100644
--- a/libavcodec/jpeg2000dwt-test.c
+++ b/libavcodec/tests/jpeg2000dwt.c
@@ -20,7 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "jpeg2000dwt.c"
+#include "libavcodec/jpeg2000dwt.c"
#include "libavutil/lfg.h"
diff --git a/libavcodec/mathops-test.c b/libavcodec/tests/mathops.c
index d47f1442df..33a059cad8 100644
--- a/libavcodec/mathops-test.c
+++ b/libavcodec/tests/mathops.c
@@ -16,7 +16,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "mathops.h"
+#include "libavcodec/mathops.h"
#include <stdlib.h>
diff --git a/libavcodec/motion-test.c b/libavcodec/tests/motion.c
index ebcf4aafa4..d89f9408c2 100644
--- a/libavcodec/motion-test.c
+++ b/libavcodec/tests/motion.c
@@ -28,7 +28,7 @@
#include <string.h>
#include "config.h"
-#include "me_cmp.h"
+#include "libavcodec/me_cmp.h"
#include "libavutil/internal.h"
#include "libavutil/lfg.h"
#include "libavutil/mem.h"
diff --git a/libavcodec/options-test.c b/libavcodec/tests/options.c
index 0b064e64d4..7f0ee1d807 100644
--- a/libavcodec/options-test.c
+++ b/libavcodec/tests/options.c
@@ -19,7 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "options.c"
+#include "libavcodec/options.c"
static int dummy_init(AVCodecContext *ctx)
{
diff --git a/libavcodec/ppc/dct-test.c b/libavcodec/tests/ppc/dct.c
index 2328516ca4..d95db525af 100644
--- a/libavcodec/ppc/dct-test.c
+++ b/libavcodec/tests/ppc/dct.c
@@ -18,7 +18,7 @@
#include "config.h"
-#include "fdct.h"
+#include "libavcodec/ppc/fdct.h"
static const struct algo fdct_tab_arch[] = {
#if HAVE_ALTIVEC
diff --git a/libavcodec/rangecoder-test.c b/libavcodec/tests/rangecoder.c
index 2892949033..2da5c0ce33 100644
--- a/libavcodec/rangecoder-test.c
+++ b/libavcodec/tests/rangecoder.c
@@ -22,7 +22,7 @@
#include "libavutil/lfg.h"
#include "libavutil/log.h"
-#include "rangecoder.h"
+#include "libavcodec/rangecoder.h"
#define SIZE 10240
diff --git a/libavcodec/snowenc-test.c b/libavcodec/tests/snowenc.c
index e1ed86f5c7..d5f94e8a61 100644
--- a/libavcodec/snowenc-test.c
+++ b/libavcodec/tests/snowenc.c
@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "snowenc.c"
+#include "libavcodec/snowenc.c"
#undef malloc
#undef free
diff --git a/libavcodec/utils-test.c b/libavcodec/tests/utils.c
index 7b3b718bd1..e2891fb389 100644
--- a/libavcodec/utils-test.c
+++ b/libavcodec/tests/utils.c
@@ -16,7 +16,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "avcodec.h"
+#include "libavcodec/avcodec.h"
int main(void){
AVCodec *codec = NULL;
diff --git a/libavcodec/x86/dct-test.c b/libavcodec/tests/x86/dct.c
index 28ede16670..b6cdfb346c 100644
--- a/libavcodec/x86/dct-test.c
+++ b/libavcodec/tests/x86/dct.c
@@ -18,9 +18,9 @@
#include "config.h"
-#include "fdct.h"
-#include "xvididct.h"
-#include "simple_idct.h"
+#include "libavcodec/x86/fdct.h"
+#include "libavcodec/x86/xvididct.h"
+#include "libavcodec/x86/simple_idct.h"
#if (CONFIG_PRORES_DECODER || CONFIG_PRORES_LGPL_DECODER) && ARCH_X86_64 && HAVE_YASM
void ff_prores_idct_put_10_sse2(uint16_t *dst, int linesize,