summaryrefslogtreecommitdiff
path: root/libavutil
Commit message (Collapse)AuthorAge
* mathematics.h: remove a couple of math definesJanne Grunau2012-06-20
| | | | | | | | While these defines are not defined by the C standard they are standardized as X/Open System Interfaces Extension. We use the appropiate _XOPEN_SOURCE define to make them available. They seem to be available on all FATE configs since the constants are used in files where mathematics.h is not included.
* Remove unnecessary inclusions of [sys/]time.hMans Rullgard2012-06-20
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* mem: add support for _aligned_malloc() as found on WindowsRonald S. Bultje2012-06-19
| | | | | | | | The check uses check_func_header, since this function is conditionally available depending on the targeted MSVCRT version. Signed-off-by: Martin Storsjö <martin@martin.st>
* float_dsp: add x86-optimized functions for vector_fmac_scalar()Justin Ruggles2012-06-18
|
* float_dsp: Move vector_fmac_scalar() from libavcodec to libavutilJustin Ruggles2012-06-18
|
* Add Dolby/DPLII downmix support to libavresampleJohn Stebbins2012-06-18
| | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* Bump lavu minor and add an APIChanges entry for audioconvert functions.Anton Khirnov2012-06-10
|
* audioconvert: add a function for extracting the channel with the given indexAnton Khirnov2012-06-10
|
* audioconvert: add a function for getting the name of a single channel.Anton Khirnov2012-06-10
|
* audioconvert: add a function for getting channel's index in layoutAnton Khirnov2012-06-10
|
* audioconvert: use av_popcount64 in av_get_channel_layout_nb_channelsAnton Khirnov2012-06-10
|
* lavu: change versioning script to include all av* prefixed symbolsJustin Ruggles2012-06-08
| | | | Needed to properly export avpriv_* symbols.
* float_dsp: ppc: add a separate header for Altivec function prototypesJustin Ruggles2012-06-08
| | | | | Also include config.h so that HAVE_ALTIVEC will be defined. Fixes compilation on PPC with Altivec enabled.
* ARM: fix float_dsp breakage from d5a7229Mans Rullgard2012-06-08
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Add a float DSP framework to libavutilJustin Ruggles2012-06-08
| | | | Move vector_fmul() from DSPContext to AVFloatDSPContext.
* PPC: Move types_altivec.h and util_altivec.h from libavcodec to libavutilJustin Ruggles2012-06-08
| | | | | This will allow for easier implementation of Altivec functions in libraries other than libavcodec.
* ARM: Move asm.S from libavcodec to libavutilJustin Ruggles2012-06-08
| | | | | This will allow for easier implementation of ARM-optimized functions in libraries other than libavcodec.
* x86: Avoid movs on BUTTERFLYPS when in AVX modeVitor Sessak2012-05-29
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* AVOptions: fix the value printed in out of range error message.Anton Khirnov2012-05-28
|
* log: make colored output more colorful.Anton Khirnov2012-05-26
| | | | Green for verbose, cyan for debug.
* opt: Add av_opt_set_bin()Samuel Pitoiset2012-05-26
| | | | | | | Introduce a new function to set binary data through AVOption, avoiding having to convert the binary data to a string inbetween. Signed-off-by: Martin Storsjö <martin@martin.st>
* Add missing version bumps and APIchanges/Changelog entries.Anton Khirnov2012-05-15
|
* lavr: replace the SSE version of ff_conv_fltp_to_flt_6ch() with SSE4 and AVXJustin Ruggles2012-05-09
| | | | | The current SSE version is slower than the MMX version on Athlon64 and Sandy Bridge, but the SSE4 and AVX versions are faster on Sandy Bridge.
* samplefmt: add a function for filling a buffer with silence.Anton Khirnov2012-05-09
|
* samplefmt: add a function for copying audio samples.Anton Khirnov2012-05-09
|
* mips: intreadwrite: fix inline asm for gcc 4.8Mans Rullgard2012-05-09
| | | | | | | | | Just like gcc 4.6 and later on ARM, gcc 4.8 on MIPS generates inefficient code when a known-unaligned location is used as a memory input operand. This applies the same fix as has been previously done to the ARM version of the code. Signed-off-by: Mans Rullgard <mans@mansr.com>
* mips: intreadwrite: remove unnecessary inline asmMans Rullgard2012-05-09
| | | | | | | | GCC actually handles unaligned accesses correctly in all cases except, absurdly, 32-bit loads on mips64. The remaining asm is thus not needed, and removing it results in better code. Signed-off-by: Mans Rullgard <mans@mansr.com>
* av_samples_fill_array: Mark unmodified function argument as const.Diego Biurrun2012-05-08
| | | | | libavcodec/utils.c:274: warning: passing argument 3 of ‘av_samples_fill_arrays’ discards qualifiers from pointer target type ./libavutil/samplefmt.h:151: note: expected ‘uint8_t *’ but argument is of type ‘const uint8_t *’
* build: cosmetics: Add missing end-of-line backslashes to item lists.Diego Biurrun2012-05-07
|
* build: cosmetics: Split HEADERS/OBJS/PROGS lists into one entry per line.Diego Biurrun2012-05-07
|
* arm: intreadwrite: revert 16-bit load asm to old version for gcc < 4.6Mans Rullgard2012-05-03
| | | | | | | | Commit adebad0 "arm: intreadwrite: fix inline asm constraints for gcc 4.6 and later" caused some older gcc versions to miscompile code. This reverts to the old version of the code for these compilers. Signed-off-by: Mans Rullgard <mans@mansr.com>
* arm: intreadwrite: disable inline asm for gcc 4.7 and laterMans Rullgard2012-05-02
| | | | | | | | Starting with version 4.7, gcc properly supports unaligned memory accesses on ARM. Not using the inline asm with these compilers results in better code. Signed-off-by: Mans Rullgard <mans@mansr.com>
* arm: intreadwrite: fix inline asm constraints for gcc 4.6 and laterMans Rullgard2012-05-02
| | | | | | | | | | | | | | | | | | | | With a dereferenced type-cast pointer as memory operand, gcc 4.6 and later will sometimes copy the data to a temporary location, the address of which is used as the operand value, if it thinks the target address might be misaligned. Using a pointer to a packed struct type instead does the right thing. The 16-bit case is special since the ldrh instruction addressing modes are limited compared to ldr. The "Uq" constraint produces a memory reference suitable for an ldrsb instruction, which supports the same addressing modes as ldrh. However, the restrictions appear to apply only when the operand addresses a single byte. The memory reference must thus be split into two operands each targeting one byte. Finally, the "Uq" constraint is only available in ARM mode. The Thumb-2 ldrh instruction supports most addressing modes so the normal "m" constraint can be used there. Signed-off-by: Mans Rullgard <mans@mansr.com>
* cpu: recognise only cpu flag names pertinent to the architectureMans Rullgard2012-04-25
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* avutil: add av_parse_cpu_flags() functionMans Rullgard2012-04-25
| | | | | | | This moves the cpu flag parsing code from avconv to avutil so it can be accessed elsewhere. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Add libavresampleJustin Ruggles2012-04-24
| | | | | This is a new library for audio sample format, channel layout, and sample rate conversion.
* avutil: change default buffer size alignment for sample buffer functionsJustin Ruggles2012-04-23
| | | | | Aligning nb_samples will give both correct plane pointer alignment and enough padding for SIMD-optimized functions.
* ARM: allow runtime masking of CPU featuresMans Rullgard2012-04-22
| | | | | | | This allows masking CPU features with the -cpuflags avconv option which is useful for testing different optimisations without rebuilding. Signed-off-by: Mans Rullgard <mans@mansr.com>
* avutil: add audio fifo bufferJustin Ruggles2012-04-20
| | | | | The functions operate on the sample level rather than the byte level and work with all audio sample formats.
* x86inc: support AVX abstraction for 2-operand instructionsLoren Merritt2012-04-18
| | | | | | Add cvtdq2ps and cvtps2dq to the AVX instruction list. Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* avutil: add better documentation for AVSampleFormatJustin Ruggles2012-04-16
|
* build: Move all arch OBJS declarations into arch subdirectory Makefiles.Diego Biurrun2012-04-12
|
* x86inc improvements for 64-bitHenrik Gramner2012-04-11
| | | | | | | | | | | | Add support for all x86-64 registers Prefer caller-saved register over callee-saved on WIN64 Support up to 15 function arguments Also (by Ronald S. Bultje) Fix up our asm to work with new x86inc.asm. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* mem: Consistently return NULL for av_malloc(0)Martin Storsjö2012-04-10
| | | | | | | | | | | | | | | | | Plain POSIX malloc(0) is allowed to return either NULL or a non-NULL pointer. The calling code should be ready to handle a NULL return as a correct return (instead of a failure) if the size to allocate was 0 - this makes sure the condition is handled in a consistent way across platforms. This also avoids calling posix_memalign(&ptr, 32, 0) on OS X, which returns an invalid pointer (a non-NULL pointer that causes crashes when passed to av_free). Abort in debug mode, to help track down issues related to incorrect handling of this case. Signed-off-by: Martin Storsjö <martin@martin.st>
* avutil: use align == 0 for default alignment in audio sample buffer functionsJustin Ruggles2012-04-09
|
* avutil: allow NULL linesize in av_samples_fill_arrays() and av_samples_alloc()Justin Ruggles2012-04-09
|
* audioconvert: make av_get_channel_layout accept composite names.Nicolas George2012-04-08
| | | | | | Signed-off-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* avutil: add av_get_packed_sample_fmt() and av_get_planar_sample_fmt()Justin Ruggles2012-04-08
| | | | Based on a patch by Clément Bœsch <ubitux@gmail.com>
* avutil: Add av_get_default_channel_layout()Justin Ruggles2012-04-05
| | | | Also, use the new function in the AC-3 encoder.
* cosmetics: Consistently place static, inline and av_cold attributes/keywords.Diego Biurrun2012-04-04
|