summaryrefslogtreecommitdiff
path: root/libavutil
Commit message (Collapse)AuthorAge
* 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
|
* Replace memset(0) by zero initializations.Diego Biurrun2012-03-28
| | | | Also remove one pointless zero initialization in rangecoder.c.
* build: Only clean the architecture subdirectory we build for.Diego Biurrun2012-03-26
| | | | | This allows simplifying the Makefiles; it is no longer necessary to register arch subdirectory Makefiles, just putting them in place is enough.
* libavutil: Remove pointless rational test program.Diego Biurrun2012-03-26
|
* libavutil: Remove broken and pointless lzo test program.Diego Biurrun2012-03-26
|
* docs: Fix a stray reference to tags in the generic doxy on dictsMartin Storsjö2012-03-19
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* x86inc: add *mp named argument support to DEFINE_ARGS.Ronald S. Bultje2012-03-14
|
* remove iwmmxt optimizationsJanne Grunau2012-03-12
| | | | | | The were broken since August of 2010 without anyone noticing until three weeks ago. Nobody cares about it anymore and hopefully Marvell will support NEON like in the PXA978 from now on.
* cpu: initialize mask to -1, so that by default, optimizations are used.Ronald S. Bultje2012-03-06
|
* cpu: add av_set_cpu_flags_mask().Anton Khirnov2012-03-06
|
* x86inc: don't "bake" stack_offset in named arguments.Loren Merritt2012-03-03
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* doxygen: Remove documentation for non-existing parameters; misc small fixes.Diego Biurrun2012-02-28
|
* avutil: add AVERROR_UNKNOWNJustin Ruggles2012-02-25
| | | | | Useful to return instead of -1 when the cause of the error is unknown, typically from an external library.
* Remove libpostproc.Diego Biurrun2012-02-23
| | | | | | | | This library does not fit into Libav as a whole and its code is just a maintenance burden. Furthermore it is now available as an external project, which completely obviates any reason to keep it around. URL: http://git.videolan.org/?p=libpostproc.git
* Add channel names to channel_names[] array for channels added in b2890f5Tim Walker2012-02-22
| | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* Add names for more channel layouts to the channel layout map.Tim W2012-02-21
| | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* Mark mutable static data const where appropriate.Alex Converse2012-02-21
|
* avutil: add av_rescale_q_rnd() to allow different roundingJustin Ruggles2012-02-20
|