Nicolas George
f893904469
audioconvert: add av_get_standard_channel_layout().
Also bump minor version and add APIchanges entry.
13 years ago
Nicolas George
33449b1776
audioconvert: add av_get_channel_description().
13 years ago
Nicolas George
cc55470472
audioconvert: include the description of channels in the library.
13 years ago
jamal
753a1b0988
samplefmt: Fix warning about discarded qualifier
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Loren Merritt
f8d8fe255d
x86inc: clip num_args to 7 on x86-32.
This allows us to unconditionally set the cglobal num_args
parameter to a bigger value, thus making writing yasm code
even easier than before.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Ronald S. Bultje
96c9cc1094
x86inc: sync to latest version from x264.
13 years ago
Stefano Sabatini
7cf9aaddcd
lavu/bprint: extend/clarify documentation for av_bprint_init() size_max value
Also define AV_BPRINT_SIZE_* macros before av_bprint_init() declaration,
and mention them in the av_bprint_init() doxy.
13 years ago
jamal
94c3e11a6f
imgutils: Fix warnings about incompatible pointer type and discarded qualifiers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Justin Ruggles
79687079a9
x86: add support for fmaddps fma4 instruction with abstraction to avx/sse
13 years ago
Matthieu Bouron
789f8cb03a
avutil: support 50 and 60 frame rates in timecode api
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Ronald S. Bultje
02ac28229a
eval: fix printing of NaN in eval fate test.
This fixes "make fate-eval" on MSVC builds. Without this, the test outputs
"-1.#NaN" instead of "nan" on MSVS 2010.
13 years ago
Ronald S. Bultje
30b45d9c38
x86inc: automatically insert vzeroupper for YMM functions.
13 years ago
Jason Garrett-Glaser
85a3c19ed1
dsputil: x86: add SHUFFLE_MASK_W macro
Simplifies pshufb masks that operate on words.
13 years ago
Paul B Mahol
6dac8c8327
lavu: disable av_uninit for clang
This silence bunch of useless warnings like:
libavformat/mpeg.c:393:37: warning: variable 'dvdaudio_substream_type' is uninitialized when used within its own initialization [-Wuninitialized]
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Luca Barbato
f3e5e6f05b
mem: introduce av_malloc_array and av_mallocz_array
Both function ease allocating large arrays implementing the overflow
check inside it.
13 years ago
Janne Grunau
2d497c141d
eval: add gt(), gte(), lt() and lte() fate tests
13 years ago
Max Lazarov
caac3ab6ef
eval: fix swapping of lt() and lte()
CC: libav-stable@libav.org
14 years ago
Michael Niedermayer
375c0f74d1
av_samples_copy: support overlapping copies
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Ronald S. Bultje
183b1c2268
configure: Check for the math function rint
Add a fallback implementation if it doesn't exist.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
dd0a9b78db
replace all __volatile__ by volatile
__volatile__ can cause problems with some compilers and volatile is a standard keyword.
Found-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nicolas George
5a9d6993cb
parseutils: ignore digits below the microsecond.
Accept 1.1234567 as simply 1.123456 instead of rejecting it.
The rounding is towards 0, which is acceptable and much simpler.
13 years ago
Mans Rullgard
e346176de9
x86: cpu: clean up check for cpuid instruction support
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>
13 years ago
Ronald S. Bultje
358d854df8
x86/cpu: implement get/set_eflags using intrinsics
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Ronald S. Bultje
c0ee695bd7
x86/cpu: implement support for cpuid through intrinsics
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Ronald S. Bultje
3f150ffba3
x86/cpu: implement support for xgetbv through intrinsics
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Ronald S. Bultje
f80ddd5bf7
lavu: use intrinsics for emms on systems lacking inline asm support
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
620b1e7e98
mem: Don't abort on av_malloc(0) in debug mode
This makes the behaviour consistent between debug and release mode.
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Clément Bœsch
7073174551
x86inc: put basicnop under ifdef to prevent compile failure.
This should fix the NASM box.
Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Ronald S. Bultje
07b287020c
x86/timer: implement an intrinsic-based version for rdtsc (AV_READ_TIME).
13 years ago
Michael Niedermayer
dc12f7d4ec
x86inc: try to put amdnop under ifdef to prevent compile failure
based on similar amdnop usage in ffmpeg
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
50bfd547b9
log: fix compilation failure on mingw due to reference to undefined set_color256
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
1842b27564
lavu: 256 color support
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Lou Logan
b22ecbc6a5
cosmetics: various spelling fixes
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
ec08676232
Blowfish: restructure/simplify code a bit.
Very slightly faster (2% or so)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Loren Merritt
4d4752366f
x86inc: add SPLATB_LOAD, SPLATB_REG, PSHUFLW macros
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Loren Merritt
2cd1f5cadc
x86inc: modify ALIGN to not generate long nops on i586
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Samuel Pitoiset
983db9b2b4
xtea: Make the count parameter match the documentation
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>
13 years ago
Samuel Pitoiset
e4a7fb3da3
blowfish: Make the count parameter match the documentation
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>
13 years ago
Luca Barbato
f6687bf5f8
xtea: invert branch and loop precedence
Should slightly improve performance depending on the compiler used.
13 years ago
Luca Barbato
669bbedfa8
blowfish: invert branch and loop precedence
Should slightly improve performance depending on the compiler used.
13 years ago
Carl Eugen Hoyos
b5baad3a4c
Install libavutil/version.h
Fixes ticket #1513
13 years ago
Michael Niedermayer
1f29504204
blowfish.h: include author attribution
Reviewed-by: Clément Bœsch <ubitux@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
0713c38ea3
xtea.h: include author attribution
Reviewed-by: Clément Bœsch <ubitux@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nicolas George
7beeea8f17
error: define AVERROR_EXTERNAL.
This code is intended for errors in external libraries
when no corresponding error code can be found.
AVERROR_UNKNOWN is too vague for that and looks like AVERROR_BUG.
13 years ago
Nicolas George
aa39516a04
error: define AVERROR_BUFFER_TOO_SMALL.
Some API require a buffer and return a specific error
if it is too small. This error code helps to map codes.
13 years ago
Diego Biurrun
2047e40e6e
Clarify Doxygen comment for FF_API_* #defines.
13 years ago
Diego Biurrun
86ab7b0f2f
Create version.h headers for libraries that lack them
13 years ago
Samuel Pitoiset
8c14f7a593
Add XTEA encryption support in libavutil
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Samuel Pitoiset
bc3dbcc8e5
Add Blowfish encryption support in libavutil
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
143f1e9203
eval: Add the isinf() function and tests for it
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago