Diego Biurrun
ea7ee4b4e3
ppc: Centralize compiler-specific altivec.h #include handling in one place
...
Also move #includes into canonical order where appropriate.
8 years ago
Diego Biurrun
6ce93757ee
ppc: Update #endif comments
8 years ago
Anton Khirnov
9df889a5f1
h264: rename h264.[ch] to h264dec.[ch]
...
This is more consistent with the naming of other decoders.
9 years ago
Diego Biurrun
02cd8bb9cb
h264: Clean up #includes
9 years ago
Luca Barbato
da60b99a88
ppc: Restrict some Altivec implementations to Big Endian
...
In Little Endian the vec_ld/vec_st operations work as
expected only for byte-vectors.
10 years ago
Diego Biurrun
27860819d5
ppc: Consistently use convenience macro for runtime CPU detection
11 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
11 years ago
Diego Biurrun
a6b6501185
ppc: cosmetics: Consistently format CPU flag detection invocations
11 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
12 years ago
Diego Biurrun
6b110d3a73
ppc: More consistent names for H.264 optimizations files
12 years ago
Ronald S. Bultje
62844c3fd6
h264: Integrate clear_blocks calls with IDCT
...
The non-intra-pcm branch in hl_decode_mb (simple, 8bpp) goes from 700
to 672 cycles, and the complete loop of decode_mb_cabac and hl_decode_mb
(in the decode_slice loop) goes from 1759 to 1733 cycles on the clip
tested (cathedral), i.e. almost 30 cycles per mb faster.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Diego Biurrun
c9f933b5b6
Add av_cold attributes to arch-specific init functions
12 years ago
Mans Rullgard
e9d817351b
dsputil: Separate h264 qpel
...
The sh4 optimizations are removed, because the code is
100% identical to the C code, so it is unlikely to
provide any real practical benefit.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
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
a384f6a7f7
ppc: replace pointer casting with AV_COPY32
...
This removes warnings about strict aliasing violations.
Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years ago
Diego Biurrun
af10feadc2
ppc: Rename H.264 optimization template file for consistency.
13 years ago
Justin Ruggles
98db4e2a4e
PPC: Move types_altivec.h and util_altivec.h from libavcodec to libavutil
...
This will allow for easier implementation of Altivec functions in libraries
other than libavcodec.
13 years ago
Martin Storsjö
210f72845c
ppc: Add ff_ prefix to nonstatic symbols
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
9cf0841ef3
dsputil: Add ff_ prefix to the dsputil*_init* functions
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Diego Biurrun
ff159e7816
doxygen: Replace '\' by '@' in Doxygen markup tags.
13 years ago
Mans Rullgard
b034c95cc1
h264: fix ppc/altivec build
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Ronald S. Bultje
c2d337429c
H264: change weight/biweight functions to take a height argument.
...
Neon parts by Mans Rullgard <mans@mansr.com>.
13 years ago
Baptiste Coudurier
76741b0e56
h264: 4:2:2 intra decoding support
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Mans Rullgard
a617c6aaa3
dsputil: update per-arch init funcs for non-h264 high bit depth
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Jason Garrett-Glaser
c90b94424c
4:4:4 H.264 decoding support
...
Note: this is 4:4:4 from the 2007 spec revision, not the previous (now deprecated) 4:4:4 mode in H.264.
14 years ago
Oskar Arvidsson
19a0729b4c
Adds 8-, 9- and 10-bit versions of some of the functions used by the h264 decoder.
...
This patch lets e.g. dsputil_init chose dsp functions with respect to
the bit depth to decode. The naming scheme of bit depth dependent
functions is <base name>_<bit depth>[_<prefix>] (i.e. the old
clear_blocks_c is now named clear_blocks_8_c).
Note: Some of the functions for high bit depth is not dependent on the
bit depth, but only on the pixel size. This leaves some room for
optimizing binary size.
Preparatory patch for high bit depth h264 decoding support.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Ronald S. Bultje
ed040f35f2
Fix PPC build.
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
15 years ago
Stefano Sabatini
ccf22d3ed1
Merge has_altivec() function into mm_support(), remove it and use
...
mm_support() instead.
Reduce complexity and simplify pending move to libavutil.
Originally committed as revision 25074 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
2829ce4b40
Remove PPC perf counter support
...
This functionality is better accessed through tools like oprofile.
Originally committed as revision 23808 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
4693b031a3
Move H264 dsputil functions into their own struct
...
This moves the H264-specific functions from DSPContext to the new
H264DSPContext. The code is made conditional on CONFIG_H264DSP
which is set by the codecs requiring it.
The qpel and chroma MC functions are not moved as these are used by
non-h264 code.
Originally committed as revision 22565 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
ddb8c2c0f1
PPC: move prototypes to headers and make some functions static
...
Originally committed as revision 22267 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
David Conrad
99cc7f8a02
Altivec version of avg_no_rnd_vc1_chroma_mc8
...
Originally committed as revision 18522 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
David Conrad
c374691b28
Rename put_no_rnd_h264_chroma* to reflect its usage in VC1 only
...
Originally committed as revision 18517 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
5137235e0c
Remove gcc_fixes.h. It only contains workarounds for unsupported gcc versions.
...
Originally committed as revision 18476 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
6d79971e69
prettyprinting cosmetics
...
Originally committed as revision 17962 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
f5b2476fd3
Add av_uninit to vsrcBuc variable to work around some
...
'may be used uninitialized' warnings.
Originally committed as revision 17961 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
David Conrad
b06688ffed
Add AltiVec versions of h264_idct_add(8|16|16intra),
...
allowing to re-enable ff_h264_idct_add_altivec's usage.
Patch by David Conrad %lessen42 A gmail P com%
Originally committed as revision 16465 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
David Conrad
8b2bc85f29
add AltiVec implementation of weight_h264_pixels(16|8)x(16|8|4)
...
Patch by David Conrad %lessen42 A gmail P com%
Originally committed as revision 16458 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
David Conrad
628653449c
fix compilation with GCC-4.3+
...
patch by David Conrad + fix by myself
Originally committed as revision 16450 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
David Conrad
54b9095833
offset and weights are signed, fixes some non-bitexact issues.
...
Patch by David Conrad %lessen42 A gmail P com%
Originally committed as revision 16449 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
David Conrad
df7fb43569
add AltiVec implementation of biweight_h264_pixels(16|8)x(16|8|4)
...
Patch by David Conrad %lessen42 A gmail P com%
Originally committed as revision 16443 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
David Conrad
c663cb0d4f
AltiVec version of h264_idct(8)_dc_add
...
Patch by David Conrad %lessen42 A gmail P com%
Originally committed as revision 16442 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Luca Barbato
a6b4448cdf
Cleanup _t types in libavcodec/ppc
...
Originally committed as revision 16357 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Guillaume Poirier
337e3fd990
Disable usage of ff_h264_idct_add_altivec since AltiVec versions of h264_idct_add16,
...
h264_idct_add16intra, h264_idct_add8 need to be implemented.
Add C version of ff_h264_idct8_dc_add in AltiVec so that ff_h264_idct8_add_altivec
can be used.
Originally committed as revision 16311 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
309005c047
cosmetics: Fix indentation after last commit.
...
Originally committed as revision 14370 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago