Michael Niedermayer
9c669672c7
x86/motion_est: widen before multiply.
...
This fixes CID700558, CID700557, CID700556
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Luca Barbato
2d6caade22
dsputil: split out mlp dsp function
12 years ago
Michael Niedermayer
25f44b041c
x86/dsputil_mmx: change assert() to av_assert()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Janne Grunau
7e522859fc
x86: vc1: call ff_vc1dsp_init_x86() under if (ARCH_X86)
12 years ago
Janne Grunau
cb36febcbc
x86: cavs: call ff_cavsdsp_init_x86() under if (ARCH_X86)
12 years ago
Janne Grunau
f101eab1be
x86: call most of the x86 dsp init functions under if (ARCH_X86)
...
Rename the called dsp init functions to *_init_x86.
12 years ago
Michael Niedermayer
2714e841bc
x86/motion_est: assert->av_assert2()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
19a4e10360
gmc_mmx: enable also for large pictures when emu edge isnt needed.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
e063ffbf4b
dsputil_mmx: put optimized gmc code back and avoid a VLA without loosing features.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Diego Biurrun
e4cbf7529b
Give all anonymously typedeffed structs in headers a name
...
Anonymous structs cannot be forward declared and have no benefit.
12 years ago
Mans Rullgard
bcf07a15a0
x86: dsputil: kill VLA in gmc_mmx()
...
Instead of using an evil VLA, fall back to C version when edge
emulation is needed. MPEG4 GMC is a rarely used fringe feature
so the speed loss is an acceptable cost for safer code.
Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years ago
Diego Biurrun
9c6cf7f2c9
avcodec: Drop silly and/or broken printf debug output
12 years ago
Michael Niedermayer
791b5954bc
dsputil_mmx: fix reading prior of the src array in sub_hfyu_median_prediction()
...
This should fix the utvideoenc valgrind failure
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
7e9830d123
dsputil_mmx: fix reading prior of the src array in sub_hfyu_median_prediction()
...
This should fix the utvideoenc valgrind failure
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
f75c5f07a9
diracyasm: fix win64
...
Fixes Ticket1412
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
6b33e91899
mpegvideo: factorize ff_dct_encode_init()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
efac6f7472
x86/mpegaudiodec: drop likely now unneeded #if HAVE_AVX_EXTERNAL
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
c0dfc720ef
mpegaudiodec: add prototypes for all functions that may need them
...
fixes compile failure
Found-by: kriegerod
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
66bdc58550
get_cabac_inline_x86: workaround clang bug with disabled optimizations
...
gcc produces binary identical output relative to before this change
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
47277c4153
x86/v210: fix xmm clobbers
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Diego Biurrun
58139e141b
x86: dsputil: Move Xvid IDCT put/add functions to a more suitable place
12 years ago
Diego Biurrun
2017f0fdb7
x86: Remove some leftover declarations for non-existent functions
12 years ago
Martin Storsjö
91ff4e83ca
x86: ac3dsp: Only refer to the ac3_downmix_sse symbol if it has been declared
...
This fixes building without inline assembly.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Mans Rullgard
97cb9236cf
ac3: move ac3_downmix() from dsputil to ac3dsp
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years ago
Derek Buitenhuis
578bbf8149
diracdsp: Fix unprotected inline asm
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Diego Biurrun
1648a508fa
x86: dsputil: Move specific optimization settings out of global init function
...
They belong in the init functions specific to each CPU capability.
12 years ago
Diego Biurrun
a84edbacaf
x86: dsputil: Only compile motion_est code when encoders are enabled
12 years ago
Michael Niedermayer
44f83930d9
x86/mpegaudiodec: fix compilation failure on cygwin with undefined imdct36_blocks_avx
...
this is a regression since today
Found-by: beastd
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
6add8eb2ce
x86/h264dsp_init: put a HAVE_YASM back
...
Should fix compilation on open solaris
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Diego Biurrun
e0c6cce447
x86: Replace checks for CPU extensions and flags by convenience macros
...
This separates code relying on inline from that relying on external
assembly and fixes instances where the coalesced check was incorrect.
12 years ago
Hendrik Leppkes
fb4e983e0c
x86: mlpdsp: mlp_filter_channel_x86 requires inline asm
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Diego Biurrun
1169f0d0af
x86: more specific checks for availability of required assembly capabilities
12 years ago
Diego Biurrun
8cb7ed5562
x86: avcodec: Drop silly "_mmx" suffix from dsputil template names
12 years ago
Mans Rullgard
6efb698883
cavsdsp: set idct permutation independently of dsputil
...
CAVS uses its own idct so using dsputil to set the permutation
is fragile.
Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years ago
Mans Rullgard
5fe64d88f6
x86: allow using add_hfyu_median_prediction_cmov on any cpu with cmov
...
For some reason add_hfyu_median_prediction_cmov is only selected
on 3Dnow-capable CPUs, even though it uses no 3Dnow instructions.
This patch allows it to be selected on any cpu with cmov with the
possibility of being overridden by the mmxext version.
Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years ago
Diego Biurrun
ef6ba1f237
x86: dsputil: Do not redundantly check for CPU caps before calling init funcs
...
The init functions check for CPU capabilities on their own already.
12 years ago
Hendrik Leppkes
d914ea6fd8
x86: vp56: cmov version of vp56_rac_get_prob requires inline asm
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years ago
Diego Biurrun
a84ac7a860
x86: h264dsp: drop some unnecessary ifdefs around prototype declarations
12 years ago
Carl Eugen Hoyos
a26789cf9f
Fix compilation with yasm-0.6.2.
12 years ago
Carl Eugen Hoyos
52be5428c0
Add some missing _EXTERNAL suffixes to yasm source files.
12 years ago
Diego Biurrun
17337f54c0
x86: Split inline and external assembly #ifdefs
13 years ago
Diego Biurrun
ec36aa6944
x86: Fix linking with some or all of yasm, mmx, optimizations disabled
...
Some optimized template functions reference optimized symbols, so they
must be explicitly disabled when those symbols are unavailable.
13 years ago
Diego Biurrun
a886b279a0
x86: cosmetics: Comment some #endifs for better readability
13 years ago
Diego Biurrun
2e6f93a284
x86: Always compile files with functions that are called unconditionally
13 years ago
Diego Biurrun
2f2aa2e542
x86: mpegvideoenc: fix linking with --disable-mmx
...
The optimized dct_quantize template functions reference optimized
fdct symbols, so these functions must only be enabled if the relevant
optimizations have been enabled by configure.
13 years ago
Diego Biurrun
d39791bf39
x86: mpegvideoenc: Do not abuse HAVE_ variables for template instantiation
...
This avoids trouble if HAVE_ variables are used elsewhere in the file.
13 years ago
Diego Biurrun
bcc45d6348
x86: avcodec: Drop silly "_mmx" suffixes from filenames
13 years ago
Diego Biurrun
efbd04c332
x86: avcodec: Drop silly "_sse" suffixes from filenames
13 years ago
Diego Biurrun
3f02c533f3
build: fft: x86: Drop unused YASM-OBJS-FFT- variable
13 years ago
Mans Rullgard
db70730291
x86: fft: remove unused fft_dispatch* functions
...
These functions are not used since the yasm conversion.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago