summaryrefslogtreecommitdiff
path: root/libavutil
Commit message (Collapse)AuthorAge
* dsputil: x86: add SHUFFLE_MASK_W macroJason Garrett-Glaser2012-07-22
| | | | Simplifies pshufb masks that operate on words.
* mem: introduce av_malloc_array and av_mallocz_arrayLuca Barbato2012-07-14
| | | | | Both function ease allocating large arrays implementing the overflow check inside it.
* eval: add gt(), gte(), lt() and lte() fate testsJanne Grunau2012-07-14
|
* eval: fix swapping of lt() and lte()Max Lazarov2012-07-14
| | | | CC: libav-stable@libav.org
* configure: Check for the math function rintRonald S. Bultje2012-07-11
| | | | | | Add a fallback implementation if it doesn't exist. Signed-off-by: Martin Storsjö <martin@martin.st>
* x86/cpu: implement get/set_eflags using intrinsicsRonald S. Bultje2012-07-10
| | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de> Signed-off-by: Martin Storsjö <martin@martin.st>
* x86/cpu: implement support for cpuid through intrinsicsRonald S. Bultje2012-07-10
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* x86/cpu: implement support for xgetbv through intrinsicsRonald S. Bultje2012-07-10
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* lavu: use intrinsics for emms on systems lacking inline asm supportRonald S. Bultje2012-07-10
| | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de> Signed-off-by: Martin Storsjö <martin@martin.st>
* mem: Don't abort on av_malloc(0) in debug modeMartin Storsjö2012-07-10
| | | | | | This makes the behaviour consistent between debug and release mode. Signed-off-by: Martin Storsjö <martin@martin.st>
* x86/timer: implement an intrinsic-based version for rdtsc (AV_READ_TIME).Ronald S. Bultje2012-07-07
|
* x86inc: add SPLATB_LOAD, SPLATB_REG, PSHUFLW macrosLoren Merritt2012-07-05
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* x86inc: modify ALIGN to not generate long nops on i586Loren Merritt2012-07-05
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* xtea: Make the count parameter match the documentationSamuel Pitoiset2012-07-05
| | | | | | | | Previously it was interpreted as number of bytes, while the documentation stated that it was the number of 8 byte blocks. This makes it behave similarly to the existing AES code. Signed-off-by: Martin Storsjö <martin@martin.st>
* blowfish: Make the count parameter match the documentationSamuel Pitoiset2012-07-05
| | | | | | | | Previously it was interpreted as number of bytes, while the documentation stated that it was the number of 8 byte blocks. This makes it behave similarly to the existing AES code. Signed-off-by: Martin Storsjö <martin@martin.st>
* xtea: invert branch and loop precedenceLuca Barbato2012-07-05
| | | | Should slightly improve performance depending on the compiler used.
* blowfish: invert branch and loop precedenceLuca Barbato2012-07-05
| | | | Should slightly improve performance depending on the compiler used.
* Clarify Doxygen comment for FF_API_* #defines.Diego Biurrun2012-07-04
|
* Create version.h headers for libraries that lack themDiego Biurrun2012-07-04
|
* Add XTEA encryption support in libavutilSamuel Pitoiset2012-07-04
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Add Blowfish encryption support in libavutilSamuel Pitoiset2012-07-04
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* eval: Add the isinf() function and tests for itMartin Storsjö2012-07-04
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* 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>