summaryrefslogtreecommitdiff
path: root/libavutil
Commit message (Collapse)AuthorAge
* avutil/opt: Support general expressions involving AVOption constants in ↵Michael Niedermayer2014-07-21
| | | | | | set_string_number() Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avutil: move QP2LAMBDA constant to evalMichael Niedermayer2014-07-21
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avutil/opt: remove dead code from set_string_number()Michael Niedermayer2014-07-21
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avutil/opt.c: fix bug when parsing optionMuhammad Faiz2014-07-21
| | | | | | | | | | | fix these strange behavior: -af flanger=delay=10 [OK] -af flanger=delay=1e1 [OK] -af flanger=delay=1e+1 [Error] -af flanger=delay=0.1 [OK] -af flanger=delay=1e-1 [Error] Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* libavutil: document side effects of macrosChristophe Gisquet2014-07-19
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavu/eval: add clip functionStefano Sabatini2014-07-17
|
* avutil/opt: try to fix the case where src==dst in av_opt_copy()Michael Niedermayer2014-07-17
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* armv6: Accelerate butterflies_floatBen Avison2014-07-16
| | | | | | | | | | | | | | I benchmarked the result by measuring the number of gperftools samples that hit anywhere in the AAC decoder (starting from aac_decode_frame()) or specifically in butterflies_float_c() / ff_butterflies_float_vfp() for the same sample AAC stream: Before After Mean StdDev Mean StdDev Confidence Change Audio decode 1542.8 43.7 1470.5 41.5 100.0% +4.9% butterflies_float 130.0 11.9 70.2 12.1 100.0% +85.2% Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* armv6: Accelerate vector_fmul_windowBen Avison2014-07-16
| | | | | | | | | | | | | | I benchmarked the result by measuring the number of gperftools samples that hit anywhere in the AAC decoder (starting from aac_decode_frame()) or specifically in vector_fmul_window_c() / ff_vector_fmul_window_vfp() for the same sample AAC stream: Before After Mean StdDev Mean StdDev Confidence Change Audio decode 1598.2 47.4 1529.2 25.4 100.0% +4.5% vector_fmul_window 244.0 22.1 188.9 22.3 100.0% +29.2% Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avutil & avdevice: remove av_bprint_fd_contents()Michael Niedermayer2014-07-15
| | | | | | | | | | | | MSVC does not allow passing file pointers between libs This API can thus not work with MSVC and as it was very recently added and its it was in no release its removial should not cause any problems A better API will be implemented, but its not finished yet, this revert is to avoid potentially blocking the release Found-by: Hendrik Leppkes <h.leppkes@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* fix spelling errorsAndreas Cadhalpun2014-07-12
| | | | | Reviewed-by: Timothy Gu <timothygu99@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge commit 'a54f03bf07da964a1b04b03b85bc39deba76efa4'Michael Niedermayer2014-07-09
|\ | | | | | | | | | | | | | | | | | | * commit 'a54f03bf07da964a1b04b03b85bc39deba76efa4': display: add matrix flip api Conflicts: libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * display: add matrix flip apiVittorio Giovara2014-07-09
| |
* | avutil/bprint:ædd io.h, try to fix msvc buildMichael Niedermayer2014-07-09
| | | | | | | | | | Suggested-by: jamrial Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/cpu: Use HAVE_UNISTD_H instead of HAVE_SYSCONF for #include <unistd.h>Michael Niedermayer2014-07-08
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | protect unistd.h with #if HAVE_UNISTD_H in code from recent ↵Michael Niedermayer2014-07-08
| | | | | | | | | | | | | | | | av_bprint_fd_contents() patches Should fix build failure on MSVC Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/bprint: Add av_bprint_fd_contents()Andrey Utkin2014-07-07
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'a7985cfd4c51b7fe2b870fc4ecd109707ee035d6'Michael Niedermayer2014-07-07
|\| | | | | | | | | | | | | | | | | | | | | * commit 'a7985cfd4c51b7fe2b870fc4ecd109707ee035d6': audio_fifo: Split into a separate doxygen module Conflicts: libavutil/audio_fifo.h See: 689e02808d09bd0441ec199cb1a8953ac7c666f6 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * audio_fifo: Split into a separate doxygen moduleTimothy Gu2014-07-06
| | | | | | | | | | Signed-off-by: Timothy Gu <timothygu99@gmail.com> Signed-off-by: Diego Biurrun <diego@biurrun.de>
| * samplefmt: Add doxygen categoriesTimothy Gu2014-07-06
| | | | | | | | | | | | | | Categorize the enum and functions as "audio-related". Signed-off-by: Timothy Gu <timothygu99@gmail.com> Signed-off-by: Diego Biurrun <diego@biurrun.de>
* | avutil: actually install hash.hTimothy Gu2014-07-06
| | | | | | | | | | | | | | | | | | This header is designed as a public header (with APIchanges entry and everything), but it is forgotten to put into the headers to be installed list. Signed-off-by: Timothy Gu <timothygu99@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/audio_fifo: split into a separate doxy moduleTimothy Gu2014-07-06
| | | | | | | | | | Signed-off-by: Timothy Gu <timothygu99@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/samplefmt: improve doxygenTimothy Gu2014-07-06
| | | | | | | | | | | | | | Categorize the enum and funcs to "Audio related". Signed-off-by: Timothy Gu <timothygu99@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | downmix_info: clarify doxygenTimothy Gu2014-07-04
| | | | | | | | | | Signed-off-by: Timothy Gu <timothygu99@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | channel_layout: doxy: merge functions with macrosTimothy Gu2014-07-04
| | | | | | | | | | Signed-off-by: Timothy Gu <timothygu99@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil: fix version macros doxygen moduleTimothy Gu2014-07-04
| | | | | | | | | | | | | | | | Without this patch, "Library Version Macros" module is not visible on libavutil homepage in `make apidoc`. Signed-off-by: Timothy Gu <timothygu99@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '79793f833784121d574454af4871866576c0749d'Michael Niedermayer2014-07-01
|\| | | | | | | | | | | | | * commit '79793f833784121d574454af4871866576c0749d': Update Fiona's name in copyright statements. Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Update Fiona's name in copyright statements.Diego Biurrun2014-07-01
| |
* | Merge commit '7b0c7c9163fe3dd0081696befde28617119d2590'Michael Niedermayer2014-06-28
|\| | | | | | | | | | | | | * commit '7b0c7c9163fe3dd0081696befde28617119d2590': arm: Detect 32 bit cpu features on ARMv8 when running on a 64 bit kernel Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * arm: Detect 32 bit cpu features on ARMv8 when running on a 64 bit kernelMartin Storsjö2014-06-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When running on a 64 bit kernel, /proc/cpuinfo lists different optional features than on 32 bit kernels (because some of them are mandatory in the 64 bit implemenations). The kernel does list the old features properly if they are queried via /proc/self/auxv though - however this file is not always readable (e.g. on most android systems). The getauxval function could also provide the same info as /proc/self/auxv even if this file isn't readable, but this function is not always available (and thus would need to be loaded with dlsym for compatibility with older android versions). The android cpufeatures library does this slightly differently, by assuming that these are available if the "CPU architecture" line is >= 8, see [1] for details. It has been suggested to include the old, non-optional features in /proc/cpuinfo as well, but that suggested patch never was merged. See [2] for the discussion around this suggestion. [1] https://android-review.googlesource.com/91380 [2] http://marc.info/?l=linux-arm-kernel&m=139087240101974 Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit 'ab72eda15e98197cf148abc08574206cfde0d9b0'Michael Niedermayer2014-06-24
|\| | | | | | | | | | | | | | | | | | | * commit 'ab72eda15e98197cf148abc08574206cfde0d9b0': pixfmt: mark the reserved values Conflicts: libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * pixfmt: mark the reserved valuesVittorio Giovara2014-06-23
| |
* | avutil/lzo: allow selecting the compression function in the test codeMichael Niedermayer2014-06-24
| |
* | Merge commit 'ccda51b14c0fcae2fad73a24872dce75a7964996'Michael Niedermayer2014-06-23
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'ccda51b14c0fcae2fad73a24872dce75a7964996': lzo: Handle integer overflow Conflicts: libavutil/lzo.c This is basically not merging changes due to this being fixed differently in FFmpeg See: d6af26c55c1ea30f85a7d9edbc373f53be1743ee See: cf2b7c01f81c1fb3283a1390c0ca9a2f81f4f4a8 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lzo: Handle integer overflowLuca Barbato2014-06-23
| | | | | | | | | | | | | | get_len can overflow for specially crafted payload. Reported-By: Don A. Baley <donb@securitymouse.com> CC: libav-stable@libav.org
* | avutil/lzo: add asserts to be double sure against overflowsMichael Niedermayer2014-06-23
| | | | | | | | | | | | | | These asserts cannot fail since d6af26c55c1ea30f85a7d9edbc373f53be1743ee Based-on: ccda51b14c0fcae2fad73a24872dce75a7964996 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/lzo: Fix integer overflowMichael Niedermayer2014-06-23
| | | | | | | | | | | | | | | | | | Embargoed-till: 2014-06-27 requested by researcher, but embargo broken by libav today (git and mailing list) Fixes: LMS-2014-06-16-4 Found-by: "Don A. Bailey" <donb@securitymouse.com> See: ccda51b14c0fcae2fad73a24872dce75a7964996 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '9e500efdbe0deeff1602500ebc229a0a6b6bb1a2'Michael Niedermayer2014-06-20
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '9e500efdbe0deeff1602500ebc229a0a6b6bb1a2': Add av_image_check_sar() and use it to validate SAR Conflicts: libavcodec/dpx.c libavcodec/dvdec.c libavcodec/ffv1dec.c libavcodec/utils.c libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Add av_image_check_sar() and use it to validate SARJustin Ruggles2014-06-20
| |
* | Merge commit '440842c4eb1d7709654ec97cd687663d11ef499c'Michael Niedermayer2014-06-19
|\| | | | | | | | | | | | | * commit '440842c4eb1d7709654ec97cd687663d11ef499c': stereo3d: add missing include guards Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * stereo3d: add missing include guardsVittorio Giovara2014-06-19
| |
* | Merge commit '44671b57866aab8dd36715ff010e985e25baaf19'Michael Niedermayer2014-06-18
|\| | | | | | | | | | | | | * commit '44671b57866aab8dd36715ff010e985e25baaf19': AVFrame: factor out freeing the side data Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * AVFrame: factor out freeing the side dataRoman Savchenko2014-06-18
| | | | | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | x86util: add and use RSHIFT/LSHIFT macrosChristophe Gisquet2014-06-15
| | | | | | | | | | | | | | Those macros take a byte number as shift argument, as this argument differs between MMX and SSE2 instructions. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '1619274fb393f55a365cc10f88faa173c9a8e772'Michael Niedermayer2014-06-09
|\| | | | | | | | | | | | | * commit '1619274fb393f55a365cc10f88faa173c9a8e772': av_dict_set: fix potential memory leak with AV_DICT_DONT_OVERWRITE Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * av_dict_set: fix potential memory leak with AV_DICT_DONT_OVERWRITEJanne Grunau2014-06-09
| | | | | | | | | | av_dict_set leaks it key/value arguments if AV_DICT_DONT_OVERWRITE is combined with AV_DICT_DONT_STRDUP_{KEY,VAL} and the key exists.
* | x86/float_dsp: add missing femmsJames Almer2014-06-08
| | | | | | | | | | | | | | | | It was lost during the port. Should fix fate on 3dnowext machines. Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | x86/float_dsp: port vector_fmul_window to yasmJames Almer2014-06-08
| | | | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | x86/vp9: inital AVX2 intra_predJames Almer2014-06-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tos3k-vp9-b10000.webm on a Core i5-4200U @1.6GHz 1219 decicycles in ff_vp9_ipred_dc_32x32_ssse3, 131070 runs, 2 skips 439 decicycles in ff_vp9_ipred_dc_32x32_avx2, 131070 runs, 2 skips 3570 decicycles in ff_vp9_ipred_dc_top_32x32_ssse3, 4096 runs, 0 skips 2494 decicycles in ff_vp9_ipred_dc_top_32x32_avx2, 4096 runs, 0 skips 1419 decicycles in ff_vp9_ipred_dc_left_32x32_ssse3, 16384 runs, 0 skips 717 decicycles in ff_vp9_ipred_dc_left_32x32_avx2, 16384 runs, 0 skips 2737 decicycles in ff_vp9_ipred_tm_32x32_avx, 1024 runs, 0 skips 2088 decicycles in ff_vp9_ipred_tm_32x32_avx2, 1024 runs, 0 skips 3090 decicycles in ff_vp9_ipred_v_32x32_avx, 512 runs, 0 skips 2226 decicycles in ff_vp9_ipred_v_32x32_avx2, 512 runs, 0 skips 1565 decicycles in ff_vp9_ipred_h_32x32_avx, 1024 runs, 0 skips 922 decicycles in ff_vp9_ipred_h_32x32_avx2, 1024 runs, 0 skips Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/libm: fix fminf() emulation build failure due to undefined FFMINMichael Niedermayer2014-06-06
| | | | | | | | | | Found-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>