Diego Biurrun
5d3d39c72e
dsputil: Move fdct function declarations to dct.h
12 years ago
Diego Biurrun
88bd7fdc82
Drop DCTELEM typedef
...
It does not help as an abstraction and adds dsputil dependencies.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years ago
Mans Rullgard
c29d49c1b3
dct-test: arm: indicate required cpu features for optimised funcs
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years ago
Diego Biurrun
d8eda37080
x86: mmx2 ---> mmxext in function names
12 years ago
Diego Biurrun
2017f0fdb7
x86: Remove some leftover declarations for non-existent functions
12 years ago
Michael Niedermayer
dd081f98dd
dct-test: fix order of evaluation bug
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Diego Biurrun
17337f54c0
x86: Split inline and external assembly #ifdefs
12 years ago
Diego Biurrun
239fdf1b4a
x86: build: replace mmx2 by mmxext
...
Refactoring mmx2/mmxext YASM code with cpuflags will force renames.
So switching to a consistent naming scheme beforehand is sensible.
The name "mmxext" is more official and widespread and also the name
of the CPU flag, as reported e.g. by the Linux kernel.
12 years ago
Mans Rullgard
ec7c501ed5
x86: remove libmpeg2 mmx(ext) idct functions
...
These functions are not faster than other mmx implementations on
any hardware I have been able to test on, and they are horribly
inaccurate. There is thus no reason to ever use them.
Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years ago
Ronald S. Bultje
ddbe71b44f
dct-test: allow to compile without HAVE_INLINE_ASM.
12 years ago
Ronald S. Bultje
79195ce565
x86/dsputil: put inline asm under HAVE_INLINE_ASM.
...
This allows compiling with compilers that don't support gcc-style
inline assembly.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
12 years ago
Ronald S. Bultje
667fb97a65
dct/fft-test: use a replacement getopt() if the system has none present.
...
This allows compiling and running these tests on systems lacking a built-
in version of getopt(), such as MSVC.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Mans Rullgard
980f81d961
Use av_gettime() in various places
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
db7d8fb4ef
dct-test: use emms_c() from libavutil instead of duplicating it
13 years ago
Michael Niedermayer
9e724d7216
dct-test: fix alignment in ff_prores_idct_put_10_sse2()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
b84c9cf7f7
dct-test: fix #if for ff_prores_idct_put_10_sse2()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
0d83edaba9
dct-test: give emms a memory clober.
...
Without this, the compiler in theory could attempt to keep
things in float registers across the emms which would cause
bad things to happen.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
461030a7ac
dct-test: perform emms before gettime().
...
This fixes the hypothetical case of a gettime implementation using floats
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
e0541c7b5e
dct-test: fix incompatible pointer types warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
a79af8e8cb
dcttest: put ff_prores_idct_put_10_sse2_wrap under HAVE_YASM
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Diego Biurrun
856c8e0a04
faandct: Remove FAAN_POSTSCALE define and related code.
...
It is not a user-accessible option and unlikely to ever be changed.
13 years ago
Martin Storsjö
0733375059
dct-test: Add the missing ff_ prefix to the altivec functions
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
89baf35996
dct-test: Remove a stray declaration of a nonexistent function
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
0f155c8601
fate: trying to fix "libavcodec/dct-test.o:(.rodata+0xdc): undefined reference to fdct_altivec"
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Martin Storsjö
c8e1b2fbc9
libavcodec: Add ff_ prefix to j_rev_dct*
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
3e2efacdd8
libavcodec: Prefix fdct_ifast, fdct_ifast248
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Clément Bœsch
8c48652ff0
dct-test: remove odivx_idct_c dead prototype.
13 years ago
Mans Rullgard
e064d46e61
dct-test: remove unused variable cropTbl
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Diego Biurrun
4dccfff9dd
tests/examples: Mark some variables only used within their files as static.
13 years ago
Diego Biurrun
f36b390275
Replace some forgotten FFmpeg references by Libav.
13 years ago
Carl Eugen Hoyos
ee93363f8f
Fix compilation of dct-test on ia32.
13 years ago
Michael Niedermayer
96b0ddeeaa
dct-test: Test ff_prores_idct_put_10_sse2()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
dfeeb85b65
dct-test: add transpose permutation support
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
db27bef747
dct-test: document the number of bits we use for testing.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
3d5971d9f7
dct-test: better term for meximum error.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Mans Rullgard
ae2e89717b
dct-test: factor out some common code and do whas was likely intended
...
This fixes some nonsensical code by moving some should-be-shared
code to separate functions and using these.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
0a72533e98
jfdctint: add 10-bit version
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
e7a972e113
simple_idct: add 10-bit version
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
2f07cb4d39
dct-test: remove write-only variable
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
74965f2644
dct-test: remove 'ref' function pointer from tables
...
The reference function can be inferred from the direction of the
transform, no need for storing it with each entry.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
dbf396d497
dct-test: exit with non-zero status if an IDCT fails
...
IDCTs are partially evaluated according to IEEE 1180-1990 (more or
less). An override is added to the table for implementations known
to not meet the spec requirements. These variants are run but not
checked for accuracy.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
7fd2c13888
dct-test: make speed test optional
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
cf2b4f884d
dct-test: remove is_idct field from tables
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
4b357756b1
dct-test: split table in two for idct and fdct
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
4f905a658b
dct-test: simplify calling dct_error()
...
Pass a pointer to the DCT descriptor instead of each field
individually.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
36fa9ef3e2
dct-test: whitespace cosmetics
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
412594ed0a
dct-test: remove commented out code
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Michael Niedermayer
007d352c1c
dct-test: Support testing bits>8
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Diego Biurrun
2e15305b70
Remove some disabled printf debug cruft.
14 years ago
Diego Biurrun
e6ff064845
Eliminate pointless '#if 1' statements without matching '#else'.
14 years ago