summaryrefslogtreecommitdiff
path: root/libavutil
Commit message (Collapse)AuthorAge
* avutil/display: use hypot().Clément Bœsch2014-05-23
|
* avutil/cpu: force mmx on selection of higher x86 SIMD featuresMichael Niedermayer2014-05-20
| | | | | | | | | Fixes various runtime failures with manually set flags that represent no existing CPU Fixes Ticket3653 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lavu/fifo: add av_fifo_alloc_array functionLukasz Marek2014-05-20
| | | | | | | Allows to alloc fifo buffer by passing number of elements and size of element. Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
* Merge commit '82fc9f4b38244236a6ca7f946662ca653044a04c'Michael Niedermayer2014-05-19
|\ | | | | | | | | | | | | * commit '82fc9f4b38244236a6ca7f946662ca653044a04c': display: Include mathematics.h for fallback definition of NAN Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * display: Include mathematics.h for fallback definition of NANMartin Storsjö2014-05-19
| | | | | | | | | | | | This fixes compilation with MSVC. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit 'bddd8cbf68551f6405b2bf77cc3e212af9fbe834'Michael Niedermayer2014-05-19
|\| | | | | | | | | | | | | | | | | | | | | | | * commit 'bddd8cbf68551f6405b2bf77cc3e212af9fbe834': Add transformation matrix API. Conflicts: libavcodec/avcodec.h libavcodec/utils.c libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Add transformation matrix API.Vittorio Giovara2014-05-19
| | | | | | | | | | | | | | | | | | | | | | Add AV_PKT_DATA_DISPLAYMATRIX and AV_FRAME_DATA_DISPLAYMATRIX as stream and frame side data (respectively) to describe a display transformation matrix for linear transformation operations on the decoded video. Add functions to easily extract a rotation angle from a matrix and conversely to setup a matrix for a given rotation angle. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | lavu: add av_gettime_relative()Olivier Langlois2014-05-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These functions are using the POSIX clock_gettime() function with the CLOCK_MONOTONIC clock id. If these are not present on the targeted platform, the new functions will fallback on using the original realtime functions av_gettime() and av_usleep(). Monotonic support can be added on other platforms with their equivalent native system API eventually if possible. Whenever time is requested to measure relative time, the monotonic clock, when available, is superior to the system realtime clock because it is not affected by discontinuous jumps in the system time In a future step, offering the flexibility to let the user choose between rt and monotonic clock for avdevices packets will be investigated. It is very easy to experience the issues that this patch attempt to address by rewinding back in the past the system time while ffmpeg is running. this is breaking the ffmpeg report printing (ffmepg.c:print_report()) and the the rate emulator functionality (-re) without the patch. Signed-off-by: Olivier Langlois <olivier@trillion01.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/dict: delay addition of const from ↵Michael Niedermayer2014-05-14
| | | | | | | | | | | | | | | | e12a73246d8ce7d0fc4036522688934e26de4bb1 until next major ABI bump This unbreaks API Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/fifo: delay addition of const from ↵Michael Niedermayer2014-05-14
| | | | | | | | | | | | | | | | 78d3453c4a2efef9bc079e8f3458653beafcf990 until next major ABI bump This unbreaks API, for example audacity has more build errors due to this Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/version: add FF_CONST_AVUTIL53Michael Niedermayer2014-05-14
| | | | | | | | | | | | This will become "const" on the next major API version Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '66e6c8a7b4e3ac926302529606bd3e323c28b20f'Michael Niedermayer2014-05-12
|\| | | | | | | | | | | | | | | | | | | | | | | * commit '66e6c8a7b4e3ac926302529606bd3e323c28b20f': lavu: Add a pixel format for new VDA hwaccel Conflicts: doc/APIchanges libavutil/pixfmt.h libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavu: Add a pixel format for new VDA hwaccelAnton Khirnov2014-05-11
| | | | | | | | | | The current hwaccel is broken and cannot be fixed in a compatible way. It will be deprecated and replaced with a new one.
* | opencl: Make init_mtx static with volatile lockMatt Oliver2014-05-10
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavu/fifo: add av_fifo_freep functionLukasz Marek2014-05-07
| | | | | | | | | | | | Function allows to free fifo and reset freed pointer. Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
* | inline asm: fix arrays as named constraints.Matt Oliver2014-05-07
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/file_open: Use av_mallocz_array()Michael Niedermayer2014-05-05
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/audio_fifo: Use av_mallocz_array()Michael Niedermayer2014-05-05
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavu/fifo: add const to argumentsLukasz Marek2014-05-05
| | | | | | | | | | Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/pca: Use av_malloc_array()Michael Niedermayer2014-05-04
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'de69aedf9935631b7f78e8b8da6e460422a9bc5f'Michael Niedermayer2014-05-03
|\| | | | | | | | | | | | | | | | | | | * commit 'de69aedf9935631b7f78e8b8da6e460422a9bc5f': mathematics: K&R formatting cosmetics Conflicts: libavutil/mathematics.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mathematics: K&R formatting cosmeticsLuca Barbato2014-05-03
| |
* | lavu/opt: add av_opt_set_dict2() functionLukasz Marek2014-05-02
| | | | | | | | | | | | | | | | Existing av_opt_set_dict doesn't accept flags. It doesn't allow to pass options to nested structs. New function alllows that. Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
* | opencl: add support for non-pthread lockingMatt Oliver2014-05-01
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Move av_find_best_pix_fmt_of_2() from avcodec to avutilMichael Niedermayer2014-04-30
| | | | | | | | | | | | | | | | | | This avoids a dependancy of libavfilter on libavcodec See Ticket 3592 Fixes Ticket2784 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavu/hash: add hash_final helpers.Nicolas George2014-04-29
| | | | | | | | | | The helpers use local memory to compute the final hash, making AV_HASH_MAX_SIZE safe to use.
* | avutil/log: fix memleak from 669a09fb372fa58ff913ebc326cb64bb3e8e7928Michael Niedermayer2014-04-29
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Add AV_LOG_PRINT_LEVEL flag to include log severity in default log formatting.tue46wsdgxfjrt2014-04-26
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavu: add LOCAL_ALIGNED_32James Almer2014-04-25
| | | | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/opencl: fix a segmentfault in libavutil/opencl.cY.C. Liu2014-04-25
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'cehoyos/master'Michael Niedermayer2014-04-25
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cehoyos/master: Enable muxing ac-3 in caf. Use correct msvc type specifiers for ptrdiff_t and size_t. Fix vf_eq.c and vf_eq2.c compilation with !HAVE_6REGS. Fix libpostproc compilation with !HAVE_6REGS. Never write 0 as maximum bitrate for asf files. Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * | Use correct msvc type specifiers for ptrdiff_t and size_t.Carl Eugen Hoyos2014-04-24
| | | | | | | | | | | | | | | | | | | | | The Windows runtime aborts if it finds %t or %z. Fixes ticket #3472. Reviewed-by: Ronald Bultje
* | | Merge commit 'a88e1d1c598e641eecd5d43730211d91c82787c6'Michael Niedermayer2014-04-25
|\ \ \ | |/ / |/| / | |/ | | | | | | * commit 'a88e1d1c598e641eecd5d43730211d91c82787c6': lavu: add CHK_OFFS as AV_CHECK_OFFSET to check struct member offsets Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavu: add CHK_OFFS as AV_CHECK_OFFSET to check struct member offsetsJanne Grunau2014-04-24
| |
* | avutil/avutil.h: remove duplicate rational.h includeMichael Niedermayer2014-04-23
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'b0bdc2a7123abd0287de435726ab68e9e475a8d8'Michael Niedermayer2014-04-23
|\| | | | | | | | | | | | | | | * commit 'b0bdc2a7123abd0287de435726ab68e9e475a8d8': avutil: move av_get_time_base_q() after include rational.h See: c7251fec39c5b54470bb295acfc81d89683843c7 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avutil: move av_get_time_base_q() after include rational.hMichael Niedermayer2014-04-22
| | | | | | | | | | | | | | Fix compilation Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * avutil: Add av_get_time_base_q()Derek Buitenhuis2014-04-22
| | | | | | | | | | | | | | | | This fixes usage of AV_TIME_BASE_Q in C++ applications, which cannot use compound literals directly in their code. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | avutil: move av_get_time_base_q() after include rational.hMichael Niedermayer2014-04-22
| | | | | | | | | | | | Fix compilation Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil: Add av_get_time_base_q()Derek Buitenhuis2014-04-22
| | | | | | | | | | | | | | | | This fixes usage of AV_TIME_BASE_Q in C++ applications, which cannot use compound literals directly in their code. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | avutil/internal: add FF_ALLOC_ARRAY_OR_GOTO & FF_ALLOCZ_ARRAY_OR_GOTOMichael Niedermayer2014-04-22
| | | | | | | | | | | | These are similar to the existing FF_ALLOCZ_OR_GOTO & FF_ALLOC_OR_GOTO Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | x86/float_dsp: remove duplicated code from vector_dmul_scalarJames Almer2014-04-19
| | | | | | | | | | | | | | | | Use the xm# and ym# aliases as they remain in sync with m# after a SWAP. No actual changes to the assembly. Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '0983d48111f578e17e8c1967d25ce593fce62b63'Michael Niedermayer2014-04-17
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '0983d48111f578e17e8c1967d25ce593fce62b63': crc: add ANSI CRC16 LE Conflicts: doc/APIchanges libavutil/crc.c libavutil/crc.h libavutil/version.h tests/ref/fate/crc Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * crc: add ANSI CRC16 LEAlessandro Ghedini2014-04-17
| | | | | | | | | | | | This adds the reversed byte-order version of the ANSI CRC16. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | x86: move horizontal add macros to x86utilJames Almer2014-04-17
| | | | | | | | | | | | | | | | | | Also port relevant AVX2/XOP optimizations from x264 with permission to relicense to LGPL from the corresponding authors Signed-off-by: James Almer <jamrial@gmail.com> Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | x86/float_dsp: unroll loop in vector_fmac_scalarJames Almer2014-04-16
| | | | | | | | | | | | | | | | ~6% faster SSE2 performance. AVX/FMA3 are unaffected. Signed-off-by: James Almer <jamrial@gmail.com> Reviewed-by: Christophe Gisquet <christophe.gisquet@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | x86/float_dsp: use SWAP in vector_fmac_scalar Win64James Almer2014-04-16
| | | | | | | | | | | | | | The mova is unnecessary Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/frame: use av_malloc(z)_array()Michael Niedermayer2014-04-15
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/avstring: do not lose ascii characters when decoding non utf-8 with ↵Michael Niedermayer2014-04-13
| | | | | | | | | | | | | | | | av_utf8_decode() Fixes Ticket3363 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/log: add av_log_get_flags()Michael Niedermayer2014-04-12
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>