Michael Niedermayer
0e699676f9
avcodec/snow: mark dwt init as av_cold
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Carl Eugen Hoyos
b38910c979
Fix compilation with !HAVE_6REGS.
...
Can be tested with:
$ ./configure --cc='cc -m32' --disable-optimizations --enable-pic
11 years ago
Michael Niedermayer
1cd107f637
avcodec/x86/snowdsp: add missing clobbers to inner_add_yblock_bw_8_obmc_16_bh_even_sse2() and inner_add_yblock_bw_16_obmc_32_sse2()
...
Note, these functions are currently disabled
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
30981a966f
lavc: split snow and dirac DWTs
...
There is only about 4 lines of common code, so it alot cleaner
when seperated.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Diego Biurrun
a0c5917f86
Drop Snow codec
...
Snow is a toy codec with no real-world use and horrible code.
12 years ago
Diego Biurrun
bcc45d6348
x86: avcodec: Drop silly "_mmx" suffixes from filenames
12 years ago
Mans Rullgard
c318626ce2
x86: rename libavutil/x86_cpu.h to libavutil/x86/asm.h
...
This puts x86-specific things in the x86/ subdirectory where they
belong.
Signed-off-by: Mans Rullgard <mans@mansr.com>
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
Ronald S. Bultje
8123e0901f
x86: place some inline asm under #if HAVE_INLINE_ASM
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Ronald S. Bultje
d9669eab0b
dwt: remove variable-length arrays
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Ronald S. Bultje
bec207f9f9
snowdsp: explicitily state instruction size.
...
Fixes a compile error with clang at -O0.
13 years ago
Reimar Döffinger
5c13b5bb39
Add operand size to add instructions.
...
In these cases it can't be guessed from the operands (at least
not necessarily), and it seems some clang versions refuse to
compiler it.
Fixes ticket #303 .
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
İsmail Dönmez
9276bdddca
snowdsp: Explicitly state the operand sizes
...
Fixes compilation with clang's builtin assembler
Patch by İsmail Dönmez, ismail at namtrac dot org
Originally committed as revision 25331 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Stefano Sabatini
c6c98d0897
Move mm_support() from libavcodec to libavutil, make it a public
...
function and rename it to av_get_cpu_flags().
Originally committed as revision 25076 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Stefano Sabatini
7160bb716b
Rename FF_MM_ symbols related to CPU features flags as AV_CPU_FLAG_
...
symbols, and move them from libavcodec/avcodec.h to libavutil/cpu.h.
Originally committed as revision 25040 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Måns Rullgård
c0ec9918b0
Remove global mm_flags variable
...
Originally committed as revision 24909 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Måns Rullgård
05aec7bb87
Separate DWT from snow and dsputil
...
This moves the DWT functions from snow.c and dsputil.c to a file of
their own. A new struct, DWTContext, holds the function pointers
previously part of DSPContext.
Originally committed as revision 22522 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
c26e58e32c
Add some missing #includes
...
Originally committed as revision 22258 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
84dc2d8afa
Remove DECLARE_ALIGNED_{8,16} macros
...
These macros are redundant. All uses are replaced with the generic
DECLARE_ALIGNED macro instead.
Originally committed as revision 22233 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
c67278098d
Move array specifiers outside DECLARE_ALIGNED() invocations
...
Originally committed as revision 21377 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Matthieu Castet
ecf05a5971
Remove useless casting in asm "m" operand.
...
Patch by Matthieu Castet, castet D matthieu A free D fr
Originally committed as revision 18054 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Aurelien Jacobs
b250f9c66d
Change semantic of CONFIG_*, HAVE_* and ARCH_*.
...
They are now always defined to either 0 or 1.
Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
a6493a8fbd
Rename libavcodec/i386/ --> libavcodec/x86/.
...
It contains optimizations that are not specific to i386 and
libavutil uses this naming scheme already.
Originally committed as revision 16270 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Pettenò
be449fca79
Convert asm keyword into __asm__.
...
Neither the asm() nor the __asm__() keyword is part of the C99
standard, but while GCC accepts the former in C89 syntax, it is not
accepted in C99 unless GNU extensions are turned on (with -fasm). The
latter form is accepted in any syntax as an extension (without
requiring further command-line options).
Sun Studio C99 compiler also does not accept asm() while accepting
__asm__(), albeit reporting warnings that it's not valid C99 syntax.
Originally committed as revision 15627 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
245976da2a
Use full path for #includes from another directory.
...
Originally committed as revision 13098 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Ramiro Polla
40d0e665d0
Do not misuse long as the size of a register in x86.
...
typedef x86_reg as the appropriate size and use it instead.
Originally committed as revision 13081 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Reimar Döffinger
eafa1c90e5
Replace complicated and currently broken manual alignment code by
...
DECLARE_ALIGNED_16. Fixes crash in ff_snow_horizontal_compose97i_sse2
Originally committed as revision 10261 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
267b9479ac
typo
...
Originally committed as revision 10250 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Ramiro Polla
7bcc1d5b66
CONFIG_7REGS has been renamed to HAVE_7REGS
...
Originally committed as revision 10237 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
90e9e94d0f
workaround gcc bug, untested as my gcc is not complaining
...
Originally committed as revision 10236 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
cefa599953
optimize the first vertical lifting step, this also prevents another
...
overflow, the last known possible overflow
Originally committed as revision 10234 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
c90762766a
optimize 1st horizontal lifting step
...
Originally committed as revision 10231 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
1104bf2b20
typo
...
Originally committed as revision 10230 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
8b5029295d
get rid of totally senseless "m" + read in register we have enough
...
registers to keep everything in registers
Originally committed as revision 10229 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
bc1e78d896
simplify senselessly complex addressing
...
Originally committed as revision 10228 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
25bb359f73
cosmetics
...
remove brain amputated mmx wrappers around sse2 macros
fix name of ..._sub macro to match ..._add naming
Originally committed as revision 10227 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
629750290f
avoid overflow in the 3rd lifting step, this now needs mmx2 at minimum
...
(patch for plain mmx support is welcome ...)
Originally committed as revision 10226 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
b696a4c91d
avoid an overflow in the 1 horizontal lifting step
...
Originally committed as revision 10225 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
9caa1cccb9
prevent one overflow in the first vertical lifting step
...
Originally committed as revision 10224 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
3e0f7126b5
update mmx code to latest snow changes
...
note, the code likely can overflow and thus needs some more changes
sse2 updated too but disabled as it is untested
Originally committed as revision 10223 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
ce611a27be
Change rounding of the horizontal DWT to match the vertical one.
...
This allows some simplifications and optimizations and should
not have any effect on quality.
Originally committed as revision 10172 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
30cd3e66bd
remove code which become unused by the previous changes
...
Originally committed as revision 10166 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
72dee89b5d
Simplify and optimize the 4th vertical lifting step of the SSE2 code (untested)
...
This also reduces the needed headroom in that step by 1 bit
Originally committed as revision 10165 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
d0dae46a90
Simplify and optimize the 4th vertical lifting step of the MMX code
...
This also reduces the needed headroom in that step by 1 bit
Originally committed as revision 10164 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
1ffbbef217
Simplify and speedup code, reduce needed headroom by 2 bits in the 3rd
...
vertical lifting step of the SSE2 code (untested)
Originally committed as revision 10163 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
4bf1790421
simplify, speedup and reduce needed headroom by 2 bits in the 3rd
...
vertical lifting step
Originally committed as revision 10162 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
dd30437bbe
replace <<1 by add for SSE2 (untested)
...
Originally committed as revision 10161 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
7e665a3943
replace <<1 by add
...
Originally committed as revision 10160 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Michael Niedermayer
eee649d3b5
slightly change horizontal lift3 so it needs 1 bit less headroom
...
Originally committed as revision 10159 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago