summaryrefslogtreecommitdiff
path: root/libavutil
Commit message (Collapse)AuthorAge
* avutil/fixed_dsp: Check for av_malloc() failureMichael Niedermayer2015-02-22
| | | | | | Fixes CID1271051 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge commit '76ce9bd8e26dcb3652240a1072840ff4011d7cdc'Michael Niedermayer2015-02-21
|\ | | | | | | | | | | | | * commit '76ce9bd8e26dcb3652240a1072840ff4011d7cdc': libavutil: Add ARM av_clip_intp2_arm Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * libavutil: Add ARM av_clip_intp2_armPeter Meerwald2015-02-21
| | | | | | | | | | | | | | | | | | | | add ARM code for implementing av_clip_intp2 using the ssat instruction on Cortex-A8, av_clip_intp2_arm() is faster than av_clip_intp2_c() and the generic av_clip(), about -19% Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | Merge commit 'bf07d813f6c88b5a76980f321cf7272d799c4216'Michael Niedermayer2015-02-21
|\| | | | | | | | | | | | | * commit 'bf07d813f6c88b5a76980f321cf7272d799c4216': libavutil: Add av_clip_intp2 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * libavutil: Add av_clip_intp2Peter Meerwald2015-02-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | there already is a function, av_clip_uintp2() that clips a signed integer to an unsigned power-of-two range, i.e. 0,2^p-1 this patch adds a function av_clip_intp2() that clips a signed integer to a signed power-of-two range, i.e. -(2^p),(2^p-1) the new function can be used as a special case for av_clip(), e.g. av_clip(x, -8192, 8191) can be rewritten as av_clip_intp2(x, 13) there are ARM instructions, usat and ssat resp., which map nicely to these functions (see next patch) Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | Merge commit '5b1d9ceec715846a58fe029bc3889ed6fa62436a'Michael Niedermayer2015-02-19
|\| | | | | | | | | | | | | | | | | | | | | | | * commit '5b1d9ceec715846a58fe029bc3889ed6fa62436a': pixfmt: add a pixel format for QSV hwaccel Conflicts: doc/APIchanges libavutil/pixfmt.h libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * pixfmt: add a pixel format for QSV hwaccelAnton Khirnov2015-02-19
| |
* | avutil/sha: Protect macro arguments with ()Michael Niedermayer2015-02-18
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libavutil: optimize twofish cipherSupraja Meedinti2015-02-18
| | | | | | | | | | | | | | | | | | | | | | | | before: lavu TWOFISH size: 1048576 runs: 1024 time: 90.052 +- 4.630 after: lavu TWOFISH size: 1048576 runs: 1024 time: 18.085 +- 0.241 gcrypt TWOFISH size: 1048576 runs: 1024 time: 25.666 +- 0.307 tomcrypt TWOFISH size: 1048576 runs: 1024 time: 18.428 +- 0.363 Signed-off-by: Supraja Meedinti <supraja0493@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | x86inc: Correctly warn on use of SSE2 instructions in SSE functionsChristophe Gisquet2015-02-17
| | | | | | | | | | | | | | | | SSE2 instructions that are XMM-implementations of pre-existing MMX/MMX2 instructions did not issue warnings when used in SSE functions. Handle it by also checking the register type when such instructions are used. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/aes: Add () to protect the ROT() argumentsMichael Niedermayer2015-02-17
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/attributes: Add () to protect the AV_GCC_VERSION_AT_LEAST() argumentsMichael Niedermayer2015-02-17
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/intmath: Add () to protect the ff_log2() argumentMichael Niedermayer2015-02-17
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/murmur3: Add () to protect the ROT() argumentsMichael Niedermayer2015-02-17
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/version: Add () to protect the AV_VERSION_INT() argumentsMichael Niedermayer2015-02-17
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/log: add () to protect the argument of AV_LOG_C()Michael Niedermayer2015-02-17
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/fixed_dsp: Use av_clip_int16() instead of the non optimized ↵Michael Niedermayer2015-02-15
| | | | | | | | | | | | av_clip_int16_c() Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'bf704132a51f5d838365158331d4e535e1df4c8e'Michael Niedermayer2015-02-14
|\| | | | | | | | | | | | | | | | | | | | | * commit 'bf704132a51f5d838365158331d4e535e1df4c8e': Don't anonymously typedef structs Conflicts: avprobe.c libavutil/parseutils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Don't anonymously typedef structsDiego Biurrun2015-02-14
| |
* | Merge commit '0232ba62a28527579e34d44700b48017cc727e5f'Michael Niedermayer2015-02-11
|\| | | | | | | | | | | | | * commit '0232ba62a28527579e34d44700b48017cc727e5f': frame: clarify buf documentation Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * frame: clarify buf documentationAnton Khirnov2015-02-08
| | | | | | | | Mention explicitly that the array must be filled contiguously.
* | avutil/error: list most common error code in error_entries when strerror_r() ↵Michael Niedermayer2015-02-10
| | | | | | | | | | | | | | | | is unavailable Fixes Ticket4267 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libavutil: camellia: remove unwanted memory loadsSupraja Meedinti2015-02-10
| | | | | | | | | | | | lavu CAMELLIA size: 1048576 runs: 1024 time: 21.549 +- 0.17 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | pixdesc: clarify AV_PIX_FMT_FLAG_ALPHA doxygenwm42015-02-10
| | | | | | | | | | | | Also make clear that PAL8 can have alpha. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil: check pixdescs in a different placewm42015-02-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Doing this check in avutil_version() is not appropriate. Also, this code is by default disabled (--assert-level is by default 0). A FATE run with defaults will never execute the checks. Move it to the pixelutils test program. Whatever reason there was in avutil_version() not to run this test by default, it should be fine in this test program. This means FATE will run the test by default. (Yes, pixelutils is not strictly the best place for it either, but it's better.) (pixdesc.c also has a small test program, but it's never run by FATE.) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil: move internal function out of public headerwm42015-02-10
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/camellia: Remove redundant castsMichael Niedermayer2015-02-09
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/camellia: Fix indention & whitespaceMichael Niedermayer2015-02-09
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libavutil: optimize camellia cipherSupraja Meedinti2015-02-09
| | | | | | | | | | | | | | | | | | | | | | | | Before the changes : lavu CAMELLIA size: 1048576 runs: 1024 time: 32.541 +- 0.044 After the changes: lavu CAMELLIA size: 1048576 runs: 1024 time: 24.589 +- 0.066 Tested with crypto_bench on a Linux x86_64 OS with Intel Core i5-3210M CPU. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | pixdesc: Include more functions in FF_DISABLE_DEPRECATION_WARNINGSTimothy Gu2015-02-07
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/pixfmt: Clarify meaning of the A/X bit in RGB555 / remove wording ↵Michael Niedermayer2015-02-07
| | | | | | | | | | | | | | about significant bit Found-by:wm4 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/pixfmt: Clarify the meaning of the alpha bits in rgb444 and similar ↵Michael Niedermayer2015-02-07
| | | | | | | | | | | | formats Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/pixfmt: Clarify the meaning of the "alpha" bit in rgb555/bgr555Michael Niedermayer2015-02-07
| | | | | | | | | | | | Found-by: wm4 Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/pixfmt: Clarify the meaning of the alpha byte in RGB0 and similar formatsMichael Niedermayer2015-02-07
| | | | | | | | | | | | | | | | Found-by: wm4 Reviewed-by: wm4 <nfxjfg@googlemail.com> Reviewed-by: Paul B Mahol <onemda@gmail.com> Reviewed-by: Carl Eugen Hoyos <cehoyos@ag.or.at> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/opt: Fix type used to access AV_OPT_TYPE_SAMPLE_FMTMichael Niedermayer2015-02-06
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/opt: Fix types used to access AV_OPT_TYPE_PIXEL_FMTMichael Niedermayer2015-02-06
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | x86: lavu/x264asm: fix ymm register instantiationChristophe Gisquet2015-02-04
| | | | | | | | | | | | | | | | This mimicks what is done for the other instruction sets. Tested-by: James Almer <jamrial@gmail.com> Tested-by: Mickaël Raulet <mraulet@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/mem: replace remaining void **/*** casts by memcpy()Michael Niedermayer2015-02-03
| | | | | | | | | | | | This is similar to 60392480181f24ebf3ab48d8ac3614705de90152 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavu/x86/x86inc: deprecate INIT_AVXJames Darnley2015-02-02
| | | | | | | | | | | | The same can be done with INIT_XMM avx Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | x264asm: warn when inappropriate instruction used in function with specified ↵Anton Mitrofanov2015-02-02
| | | | | | | | | | | | | | cpuflags Requested-by: Christophe Gisquet <christophe.gisquet@gmail.com> Requested-by: "Ronald S. Bultje" <rsbultje@gmail.com>
* | Merge commit '60392480181f24ebf3ab48d8ac3614705de90152'Michael Niedermayer2015-02-01
|\| | | | | | | | | | | | | | | | | | | * commit '60392480181f24ebf3ab48d8ac3614705de90152': mem: fix pointer pointer aliasing violations Conflicts: libavutil/mem.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mem: fix pointer pointer aliasing violationsRémi Denis-Courmont2015-02-01
| | | | | | | | | | | | | | | | | | This uses explicit memory copying to read and write pointer to pointers of arbitrary object types. This works provided that the architecture uses the same representation for all pointer types (the previous code made that assumption already anyway). Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
| * lavu: Check av_dict_set allocationsLuca Barbato2015-01-29
| | | | | | | | | | Bug-Id: CID 1257772 Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | libavutil: Added twofish symmetric block cipherSupraja Meedinti2015-01-29
| | | | | | | | | | | | Signed-off-by: Supraja Meedinti <supraja0493@gmail.com> Reviewed-by: Giorgio Vazzana <mywing81@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/aes: Rename crypt()Michael Niedermayer2015-01-28
| | | | | | | | | | | | | | This avoids a potential conflict with the equally named function from XOPEN It also could reduce confusion in debugger backtraces Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '728685f37ab333ca35980bd01766c78d197f784a'Michael Niedermayer2015-01-27
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '728685f37ab333ca35980bd01766c78d197f784a': Add a side data type for audio service type. Conflicts: doc/APIchanges libavcodec/avcodec.h libavcodec/version.h libavutil/frame.h libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Add a side data type for audio service type.Anton Khirnov2015-01-27
| | | | | | | | | | Currently, audio service type is a field in AVCodecContext. However, side data is more appropriate for this kind of information.
* | avutil/pixdesc: rewrite AV_PIX_FMT_FLAG_PSEUDOPAL documentationMichael Niedermayer2015-01-24
| | | | | | | | | | | | It seems many people do not understand its current documentation Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/buffer: factor buffer_replace() outMichael Niedermayer2015-01-23
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/pixfmt: Support the AV_PIX_FMT_GBRAP* formats with ↵Michael Niedermayer2015-01-15
| | | | | | | | | | | | AV_HAVE_INCOMPATIBLE_LIBAV_ABI Signed-off-by: Michael Niedermayer <michaelni@gmx.at>