summaryrefslogtreecommitdiff
path: root/libavutil
Commit message (Collapse)AuthorAge
...
* cosmetics: Consistently use C-style comments with multiple inclusion guardsDiego Biurrun2012-07-03
|
* attributes: add av_noreturnReinhard Tartler2012-07-03
| | | | | | | Also use it in the declaration of the various exit_program implementations in avtools. inspired by a clang-scan report.
* attributes: drop pointless define guardsReinhard Tartler2012-07-03
| | | | the av_-prefixed attributes must not be defined outside of this file
* intfloat: Don't use designated initializers in the public headersRonald S. Bultje2012-07-02
| | | | | | | | | | | intfloat.h is a public header, and is now (since a1245d5ca) included by mathematics.h, which many external callers include. This fixes building third party applications that include mathematics.h in a language that doesn't support designated initalizers. Signed-off-by: Martin Storsjö <martin@martin.st>
* opt/eval: Include mathematics.h for NAN/INFINITYMartin Storsjö2012-07-01
| | | | | | | These files use NAN/INFINITY but didn't include mathematics.h to get the fallback definitions if the system lacks the macros. Signed-off-by: Martin Storsjö <martin@martin.st>
* mathematics: Don't use division by zero in NAN/INFINITY macrosRonald S. Bultje2012-07-01
| | | | | | | | | | Some compilers, MSVC among them, don't recognize the divisions by zero as meaning infinity/nan. These macros should, according to the standard, expand to constant expressions, but this shouldn't matter for our usage. Signed-off-by: Martin Storsjö <martin@martin.st>
* x86: cpu: clean up check for cpuid instruction supportMans Rullgard2012-07-01
| | | | | | | This adds macros for accessing the EFLAGS register and uses these instead of coding the entire check in inline asm. Signed-off-by: Mans Rullgard <mans@mansr.com>
* ARM: generate position independent code to access data symbolsMans Rullgard2012-07-01
| | | | | | | | | | | This creates proper position independent code when accessing data symbols if CONFIG_PIC is set. References to external symbols should now use the movrelx macro. Some additional code changes are required since this macro may need a register to hold the GOT pointer. Signed-off-by: Mans Rullgard <mans@mansr.com>
* attributes: Add a definition of av_always_inline for MSVCRonald S. Bultje2012-06-30
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* random_seed: Only read /dev/*random if we have unistd.hRonald S. Bultje2012-06-29
| | | | | | | | unistd.h is used for open/read/close, but if this header does not exist, there's probably no use in trying to open /dev/*random at all. Signed-off-by: Martin Storsjö <martin@martin.st>
* libm: Provide fallback definitions for isnan() and isinf()Martin Storsjö2012-06-27
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* libm: provide fallback definition for cbrtf() using powf()Mans Rullgard2012-06-26
| | | | | | | | This adds a fallback for cbrtf() using powf(x, 1/3). Since powf() with a non-integer exponent requires a non-negative base, special handling of negative inputs is needed. Signed-off-by: Mans Rullgard <mans@mansr.com>
* log: Include io.h on windowsRonald S. Bultje2012-06-25
| | | | | | | This is required for isatty, which exists on MSVC and is found by configure, but is provided by io.h instead of unistd.h. Signed-off-by: Martin Storsjö <martin@martin.st>
* x86: cpu: whitespace (mostly) cosmeticsMans Rullgard2012-06-25
| | | | | | | | | This adds whitespace around operators, aligns line continuation backslashes, and breaks long lines. Also fixes an ifdef halfway through a statement. The one line of duplication this saved is not worth the ugliness. Signed-off-by: Mans Rullgard <mans@mansr.com>
* x86: place some inline asm under #if HAVE_INLINE_ASMRonald S. Bultje2012-06-25
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* log: Only include unistd.h if configure found itMartin Storsjö2012-06-24
| | | | | | | MSVC has isatty (in io.h), but not unistd.h. (isatty isn't called at all for windows, since there's a special case block for that.) Signed-off-by: Martin Storsjö <martin@martin.st>
* x86: Add CPU flag for the i686 cmov instructionDiego Biurrun2012-06-23
|
* lavu: add av_usleep() functionMans Rullgard2012-06-22
| | | | | | | | | | | | | | | This function implements a delay using the first available of the following functions: - nanosleep() - usleep() - Sleep() (Windows) The conditional #includes in time.c are simplified by including unistd.h and windows.h whenever they are available rather than having these lines triggered by specific functions. Signed-off-by: Mans Rullgard <mans@mansr.com>
* cosmetics: do not use full path for local headersDiego Biurrun2012-06-22
|
* lavu/file: include unistd.h only when availableMans Rullgard2012-06-21
| | | | | | | | The unistd.h header is only needed for the close() declaration. If this header is not available, the close() declaration may be provided by another header, e.g. io.h. Signed-off-by: Mans Rullgard <mans@mansr.com>
* log: include unistd.h only when neededMans Rullgard2012-06-21
| | | | | | | | | The only symbol this file uses from unistd.h is isatty(). By including the header only when this function is used, the file can be built on systems without unistd.h (which presumably also lack isatty). Signed-off-by: Mans Rullgard <mans@mansr.com>
* lavf, lavu: version bumps and APIchanges for av_gettime() moveMans Rullgard2012-06-21
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* av_gettime: support Win32 without gettimeofday()Mans Rullgard2012-06-20
| | | | | | Based on patch by Ronald S. Bultje. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Use av_gettime() in various placesMans Rullgard2012-06-20
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Move av_gettime() to libavutilMans Rullgard2012-06-20
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* 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
|