Diego Biurrun
a8552ee3eb
ppc: dsputil: Coalesce all init files
11 years ago
Diego Biurrun
1173320249
dsputil: Drop unused bit_depth parameter from all init functions
11 years ago
Diego Biurrun
f46bb608d9
dsputil: Split off pixel block routines into their own context
12 years ago
Diego Biurrun
a9aee08d90
dsputil: Split off FDCT bits into their own context
12 years ago
Diego Biurrun
c166148409
dsputil: Move pix_sum, pix_norm1, shrink function pointers to mpegvideoenc
12 years ago
Diego Biurrun
e3fcb14347
dsputil: Split off IDCT bits into their own context
12 years ago
Diego Biurrun
fab9df63a3
dsputil: Split off global motion compensation bits into a separate context
12 years ago
Diego Biurrun
9a9e2f1c8a
dsputil: Split audio operations off into a separate context
12 years ago
Diego Biurrun
e74433a8e6
dsputil: Split clear_block*/fill_block* off into a separate context
12 years ago
Diego Biurrun
27860819d5
ppc: Consistently use convenience macro for runtime CPU detection
11 years ago
Diego Biurrun
205fdd4ea5
ppc: Fix runtime CPU detection for apedsp, huffyuvdsp, svq1enc
11 years ago
Thierry Fauck
d6d767d93e
ppc: Fix compilation for ppc64le (ELFv2)
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Diego Biurrun
054013a0fc
dsputil: Move APE-specific bits into apedsp
12 years ago
Diego Biurrun
65d5d58658
dsputil: Move SVQ1 encoding specific bits into svq1enc
12 years ago
Diego Biurrun
b5aa485513
ppc: Move vec_unaligned_load macro to util_altivec
This allows reusing it from multiple files.
11 years ago
Diego Biurrun
0d439fbede
dsputil: Split off HuffYUV decoding bits into their own context
Also shorten HuffYUV context member names to avoid clutter.
12 years ago
Diego Biurrun
b718b24bbe
ppc: Drop a bunch of unnecessary dsputil_altivec.h #includes
12 years ago
Peter Ross
ac4b32df71
On2 VP7 decoder
Further performance improvements and security fixes by
Vittorio Giovara, Luca Barbato and Diego Biurrun.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years ago
Diego Biurrun
ae116cd3ed
ppc: dsputil: Move hpeldsp-related declarations to a separate header
12 years ago
Diego Biurrun
82bb304801
dsputil: Use correct type in me_cmp_func function pointer
12 years ago
Diego Biurrun
0e083d7e43
build: Group general components separate from de/encoders in arch Makefiles
This is in line with how the top-level libavcodec Makefile is structured.
12 years ago
Diego Biurrun
54a6e08a65
dsputil: Conditionally compile dsputil code on all architectures
12 years ago
Diego Biurrun
5169e68895
dsputil: Propagate bit depth information to all (sub)init functions
This avoids recalculating the value over and over again.
12 years ago
Diego Biurrun
1675975216
ppc: dsputil: Drop trailing semicolon from macros
This allows for a more natural macro usage.
12 years ago
Diego Biurrun
b7d24fd4b2
ppc: dsputil: Merge some declarations and initializations
12 years ago
Diego Biurrun
b045283f21
ppc: dsputil: Simplify some ifdeffed function definitions
12 years ago
Diego Biurrun
8bd6f88266
ppc: dsputil: Drop some unnecessary parentheses
12 years ago
Diego Biurrun
022184a646
ppc: dsputil: more K&R formatting cosmetics
12 years ago
Diego Biurrun
30f3f95987
ppc: dsputil: K&R formatting cosmetics
12 years ago
Diego Biurrun
82ee14d2ce
ppc: dsputil: comment formatting and wording/grammar improvements
12 years ago
Diego Biurrun
fd9e2221bd
ppc: Add some missing headers
12 years ago
Diego Biurrun
49676eb730
dsputil: Remove prototypes for nonexisting optimization functions
12 years ago
Janne Grunau
98fdfa9970
ppc: reduce overreads when loading 8 pixels in altivec dsp functions
Altivec can only load naturally aligned vectors. To handle possibly
unaligned data a second vector is loaded from an offset of the original
location and the data is recovered through a vector permutation.
Overreads are minimal if the offset for second load points to the last
element of data. This is 7 for loading eight 8-bit pixels and overreads
are reduced from 16 bytes to 8 bytes if the pixels are 64-bit aligned.
For unaligned pixels the overread is reduced from 23 bytes to 15 bytes
in the worst case.
12 years ago
Ronald S. Bultje
2f6eec65ac
vp8: fix PPC assembly to work if src_stride != dst_stride
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
12 years ago
Anton Khirnov
a03a642d5c
h264: do not use 422 functions for monochrome
Fixes invalid memory access.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
12 years ago
Diego Biurrun
a6b6501185
ppc: cosmetics: Consistently format CPU flag detection invocations
12 years ago
Diego Biurrun
6af2c351b3
ppc: Add missing AltiVec cpuflag detection invocations
12 years ago
Diego Biurrun
de81b6ae4f
ppc: fdct: Remove vim editor settings comment
12 years ago
Diego Biurrun
f61bece684
ppc: Add and use convenience macro to check for AltiVec availability
12 years ago
Kostya Shishkov
f399e406af
altivec: perform an explicit unaligned load
Implicit vector loads on POWER7 hardware can use the VSX
instruction set instead of classic Altivec/VMX. Let's force
a VMX load in this case.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Diego Biurrun
3ac7fa81b2
Consistently use "cpu_flags" as variable/parameter name for CPU flags
12 years ago
Christophe Gisquet
b6293e2798
fmtconvert: Explicitly use int32_t instead of int
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Kostya Shishkov
0418cbf081
fix scalarproduct_and_madd_int16_altivec() for orders > 16
the second and third sources were incremented only by half of the needed size
12 years ago
Diego Biurrun
a650c906cb
ppc: Only compile AltiVec FFT assembly when AltiVec is enabled
12 years ago
Diego Biurrun
7f75f2f2bd
ppc: Drop unnecessary ff_ name prefixes from static functions
12 years ago
Diego Biurrun
38282149b6
ppc: More consistent arch initialization
13 years ago
Diego Biurrun
a053dbfcfb
ppc: Move AltiVec utility headers out of AltiVec ifdefs
Now that the headers themselves have ifdef protection this is no
longer necessary and more consistent with normal include handling.
12 years ago
Diego Biurrun
6b110d3a73
ppc: More consistent names for H.264 optimizations files
13 years ago
Diego Biurrun
643e433bf7
mpegaudiosp: More consistent names for ppc/x86 optimization files
12 years ago
Martin Storsjö
6d0fbebf94
ppc: hpeldsp: Include attributes.h
This fixes building in configurations where altivec is disabled.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago