Michael Niedermayer
f247f4cf47
cabac: 3rd try at working around a compiler bug in clang.
...
Switch to a broader detection of versions.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
444632eae6
cabac: Disable get_cabac_inline_x86() for clang 2.9 on x86_32
...
This should finally fix the compilation issue on darwin
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
2138a89e71
Revert "Revert commit 599b4c6efddaed33b1667c386b34b07729ba732b"
...
This reverts commit c4f237a981
.
This didnt fix compilation on darwin with current clang.
13 years ago
Michael Niedermayer
c4f237a981
Revert commit 599b4c6efd
...
Author: Mans Rullgard <mans@mansr.com>
Date: Sun Dec 11 21:41:59 2011 +0000
x86: cabac: replace explicit memory references with "m" operands
This replaces the explicit offset(reg) memory references with
"m" operands for the same locations. As a result, one fewer
register operand is needed for these inline asm statements.
This change appears to have broken compilation on darwin, and subsequent
fixes by martin (which did not fix compilation) removed the register
advantage, thus this change seems not a good idea to keep.
See: http://fate.ffmpeg.org/log.cgi?time=20120103122446&log=compile&slot=i386-darwin-llvm-gcc-4.2.1
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Martin Storsjö
676a9ee1d2
x86: Fix constraints for decode_significance*_x86
...
Originally, prior to 8742a4ff8
, the caller code was compiled
within this condition:
ARCH_X86 && HAVE_7REGS && HAVE_EBX_AVAILABLE && !defined(BROKEN_RELOCATIONS)
Since HAVE_7REGS is defined as
(ARCH_X86_64 || (HAVE_EBX_AVAILABLE && HAVE_EBP_AVAILABLE))
the subcondition HAVE_7REGS && HAVE_EBX_AVAILABLE is equal
to HAVE_7REGS (for 32 bit at least). The correct simplification
of the original condition thus is HAVE_7REGS, not
HAVE_EBX_AVAILABLE.
This fixes compilation in some cases where HAVE_EBP_AVAILABLE = 0
and HAVE_EBX_AVAILABLE = 1.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Diego Biurrun
6fdb2ce34a
x86: Tighten register constraints for decode_significance*_x86.
...
On 32-bit OS X with gcc 4.0/4.2 and shared libraries enabled, the ebx register
is not available, but required to assemble the functions.
This reverts commit 8742a4f
to a simplified version of the original constraints.
13 years ago
Diego Biurrun
30bbd5cbc0
x86: conditionally compile dnxhd encoder optimizations
13 years ago
Diego Biurrun
88b9735753
build: conditionally compile x86 H.264 chroma optimizations
13 years ago
Martin Storsjö
8349dbfe46
x86: Require 7 registers for the cabac asm
...
The change in 599b4c6ef
didn't turn out to work properly on
i386 on OS X, where it broke building with PIC enabled.
Signed-off-by: Martin Storsjö <martin@martin.st>
(cherry picked from commit f1dba9e498
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Martin Storsjö
f1dba9e498
x86: Require 7 registers for the cabac asm
...
The change in 599b4c6ef
didn't turn out to work properly on
i386 on OS X, where it broke building with PIC enabled.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Mans Rullgard
599b4c6efd
x86: cabac: replace explicit memory references with "m" operands
...
This replaces the explicit offset(reg) memory references with
"m" operands for the same locations. As a result, one fewer
register operand is needed for these inline asm statements.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Diego Biurrun
da9cea77e3
Fix a bunch of common typos.
13 years ago
Reimar Döffinger
85372f9d57
Add forgotten %ifdef HAVE_AVX.
...
Fixes compilation with older YASM/NASM versions.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Reimar Döffinger
7076967786
Consistently use %ifdef ARCH_X86_64
...
One out of 3 places used ifndef, which is needlessly confusing.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Justin Ruggles
0e8fdd41c2
dsputil: use cpuflags in x86 emu_edge_core
...
avoids passing around the extra argument among all the macros it uses
13 years ago
Justin Ruggles
395f2e70dd
dsputil: use movups instead of movdqu in ff_emu_edge_core_sse()
...
This allows emulated_edge_mc_sse() and gmc_sse() to be used under
AV_CPU_FLAG_SSE.
13 years ago
Clément Bœsch
4da45aff28
cleanup: remove various double end ';' all over the code.
13 years ago
Michael Niedermayer
7776091b9f
diracdec: obmc accesses arent aligned for all files.
...
Thus use unaligned accesses.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Justin Ruggles
9d06037d48
twinvq: add SSE/AVX optimized sum/difference stereo interleaving
13 years ago
Diego Biurrun
ce33320b30
Remove redundant filename self-references inside files.
...
Filenames are brittle across renames and add no useful information.
13 years ago
Diego Biurrun
276b995d85
x86: drop pointless ARCH_X86 #ifdef from files in x86 subdirectory
13 years ago
Vitor Sessak
22e25c002e
mpegaudiodec: add SSE-optimized imdct36()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Justin Ruggles
b8f02f5b4e
dsputil: use cpuflags in x86 versions of vector_clip_int32()
13 years ago
Michael Niedermayer
fb2288834b
h264: fix ssse3 biweight code with weights of 128
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Reimar Döffinger
db076a2c48
Make fdct_r_row_sse2 const.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Reimar Döffinger
9663b8da9a
Make tab_frw_01234567_sse2 const.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Ronald S. Bultje
717401aff2
h264_weight: remove duplication functions.
13 years ago
Justin Ruggles
5463e83dbc
fmtconvert: fix int32_to_float_fmul_scalar() for windows x86_64
...
The calling convention only allows 4 non-stack parameter, with each
float or int register being skipped if not used.
fixes Bug 64
13 years ago
Michael Niedermayer
bd2bcf97fa
dirac: drop unused END_HORIZONTAL
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
e985d71926
dirac: fix horizontal_compose_dd97i_ssse3
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
754539a409
dirac: Fix mmx/sse haar wavelet compose
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
3e5ea9e471
dirac: disable ff_horizontal_compose_haar0i_sse2() the function is not bitexact
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
d2ea38ddb7
dirac: alignment for dirac_hpel_filter_v has been fixed
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
18f2ae3b77
dirac: alignment for add_dirac_obmc has been fixed
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
4debdee6ce
dirac: alignment for add_rect_clamped has been fixed
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
66b6d7bcd7
dirac: alignment for put_signed_rect_clamped has been fixed
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
2eecf63086
dirac: alignment for dirac_hpel_filter_v() has been fixed
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
a14a0d7c2c
dirac: fix segfault in horizontal_compose_haar
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
e8b891b7f0
dirac: enable diracdsp_mmx
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
3cb0686eea
dirac: ff_horizontal_compose_dd97i_ssse3 does not work yet, thus disable it
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
a1f3b18bf5
dirac: put_dirac_pixels8_mmx() does not work yet, thus disable it.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
22fe93ea39
dirac: add_rect_clamped does currently not receive aligned data, thus use unaligned accesses.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
d532e9223e
dirac: put_signed_rect_clamped does currently not receive aligned data, thus use unaligned accesses.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
5f34092b13
dirac; dirac_hpel_filter_h does currently not receive aligned data thus use unaligned accesses.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
f0d616e76f
dirac: dirac_hpel_filter_v does currently not receive aligned data, thus use unaligned accesses.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Jordi Ortiz
49aa397414
Dirac: More formating
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
multiple authors
5d50fcc549
DIRAC Decoder stable version, MMX support removed.
...
Look for MMX_DISABLED to find the disabled functions.
Authors of this code are Marco Gerards <marco@gnu.org> and David Conrad <lessen42@gmail.com>
With changes from Jordi Ortiz <nenjordi@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
David Conrad
25a6c59487
MMX put_no_rnd_pixels_l2
13 years ago
Daniel Kang
ded3e9f054
H.264: Cometics to dsputil_mmx.c
...
Add whitespace.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Ronald S. Bultje
b0b3231074
h264_weight: initialize "height" function argument properly.
...
Right now it's not actually initialized on 32-bit, leading to crashes
on win32.
13 years ago