summaryrefslogtreecommitdiffstats
path: root/libavutil
Commit message (Collapse)AuthorAgeFilesLines
* avutil/internal: add FF_ALLOC_ARRAY_OR_GOTO & FF_ALLOCZ_ARRAY_OR_GOTOMichael Niedermayer2014-04-221-0/+18
| | | | | | These are similar to the existing FF_ALLOCZ_OR_GOTO & FF_ALLOC_OR_GOTO Signed-off-by: Michael Niedermayer <[email protected]>
* x86/float_dsp: remove duplicated code from vector_dmul_scalarJames Almer2014-04-191-8/+3
| | | | | | | | 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 <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* Merge commit '0983d48111f578e17e8c1967d25ce593fce62b63'Michael Niedermayer2014-04-173-3/+41
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 <[email protected]>
| * crc: add ANSI CRC16 LEAlessandro Ghedini2014-04-173-3/+41
| | | | | | | | | | | | This adds the reversed byte-order version of the ANSI CRC16. Signed-off-by: Anton Khirnov <[email protected]>
* | x86: move horizontal add macros to x86utilJames Almer2014-04-171-0/+33
| | | | | | | | | | | | | | | | | | Also port relevant AVX2/XOP optimizations from x264 with permission to relicense to LGPL from the corresponding authors Signed-off-by: James Almer <[email protected]> Reviewed-by: "Ronald S. Bultje" <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | x86/float_dsp: unroll loop in vector_fmac_scalarJames Almer2014-04-161-18/+26
| | | | | | | | | | | | | | | | ~6% faster SSE2 performance. AVX/FMA3 are unaffected. Signed-off-by: James Almer <[email protected]> Reviewed-by: Christophe Gisquet <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | x86/float_dsp: use SWAP in vector_fmac_scalar Win64James Almer2014-04-161-3/+3
| | | | | | | | | | | | | | The mova is unnecessary Signed-off-by: James Almer <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | avutil/frame: use av_malloc(z)_array()Michael Niedermayer2014-04-151-4/+4
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | avutil/avstring: do not lose ascii characters when decoding non utf-8 with ↵Michael Niedermayer2014-04-131-4/+4
| | | | | | | | | | | | | | | | av_utf8_decode() Fixes Ticket3363 Signed-off-by: Michael Niedermayer <[email protected]>
* | avutil/log: add av_log_get_flags()Michael Niedermayer2014-04-123-1/+7
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | avutil/log: factor "level != AV_LOG_INFO/8" checks outMichael Niedermayer2014-04-091-4/+8
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | Merge commit '8b17243d1742279bcb2368f8d325ea71e66736c8'Michael Niedermayer2014-04-093-1/+14
|\| | | | | | | | | | | | | | | | | | | * commit '8b17243d1742279bcb2368f8d325ea71e66736c8': lavu: Add packed YVYU422 pixel format Conflicts: libavutil/version.h Merged-by: Michael Niedermayer <[email protected]>
| * lavu: Add packed YVYU422 pixel formatVittorio Giovara2014-04-073-1/+14
| |
| * xtea: Add Doxy @file and groupTimothy Gu2014-04-072-0/+9
| |
| * adler32: Fix doxy group definitionTimothy Gu2014-04-072-0/+21
| | | | | | | | | | | | Based on a patch by James Almer <[email protected]>. Signed-off-by: Vittorio Giovara <[email protected]>
* | Merge commit '8675bcb0addb1c7fb0b04682d1f3f95d5b8dae14'Michael Niedermayer2014-04-074-2/+7
|\| | | | | | | | | | | | | * commit '8675bcb0addb1c7fb0b04682d1f3f95d5b8dae14': aarch64: add armv8 CPU flag Merged-by: Michael Niedermayer <[email protected]>
| * aarch64: add armv8 CPU flagJanne Grunau2014-04-064-2/+7
| |
* | Merge commit '8542f9c4f17125d483c40c0c5723842f1c982f81'Michael Niedermayer2014-04-042-3/+3
|\| | | | | | | | | | | | | | | | | | | * commit '8542f9c4f17125d483c40c0c5723842f1c982f81': replaygain: correctly parse peak values Conflicts: libavutil/version.h Merged-by: Michael Niedermayer <[email protected]>
| * replaygain: correctly parse peak valuesAlessandro Ghedini2014-04-042-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | According to the ReplayGain spec, the peak amplitude may overflow and may result in peak amplitude values greater than 1.0 with psychoacoustically coded audio, such as MP3. Fully compliant decoders must allow peak overflows. Additionally, having peak values in the 0<->UINT32_MAX scale makes it more difficult for applications to actually use the peak values (e.g. when implementing clipping prevention) since values have to be rescaled down. This patch corrects the peak parsing by removing the rescaling of the decoded values between 0 and UINT32_MAX and the 1.0 upper limit. Signed-off-by: Anton Khirnov <[email protected]>
| * log: Unbreak windows supportLuca Barbato2014-04-031-0/+1
| | | | | | | | Add the missing define.
* | lavu/opt: validate range before dereferenceLukasz Marek2014-04-041-2/+4
| | | | | | | | | | | | | | | | | | This change make error handling simplier. av_opt_freep_ranges may be called when some ranges are NULL, for example after memory allocation fail. Signed-off-by: Lukasz Marek <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | log: allow color highlighting in Cygwin's minttyJames Darnley2014-04-041-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Configure will detect the availability of the Windows' console functions and set HAVE_SETCONSOLETEXTATTRIBUTE. Meaning av_log will use those functions to control colours. When ffmpeg is run in Cygwin's mintty terminal emulator it will not use colour highlighting in this case. Mintty responds to the usual escape code colours (it even supports 256 colours). Windows' cmd.exe does not. Fortunately it seems that Cygwin's emulation layer now translates the basic 16 colours into Windows' Console command functions. That means that we can have av_log use the standard colour commands and let ffmpeg print colours in both mintty and cmd. Signed-off-by: Michael Niedermayer <[email protected]>
* | avutil/log: remove stray ;Michael Niedermayer2014-04-031-1/+1
| | | | | | | | | | | | | | regression since 5a18b215f7138c0bd59f27389050b0311fa4a549 Reported-by: J_Darnley Signed-off-by: Michael Niedermayer <[email protected]>
* | avutil/log: fix negative log levelsMichael Niedermayer2014-04-031-3/+5
| | | | | | | | | | | | These where broken by 7763118cae4eb468b032dbd29af15a011c2c233b Signed-off-by: Michael Niedermayer <[email protected]>
* | avutil/log: add code to test av_log()Michael Niedermayer2014-04-032-0/+24
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2014-04-031-1/+1
|\| | | | | | | | | | | | | | | | | | | * qatar/master: log: Do not assume the TERM variable is always set Conflicts: libavutil/log.c Merged-by: Michael Niedermayer <[email protected]>
| * log: Do not assume the TERM variable is always setLuca Barbato2014-04-031-1/+1
| |
* | Merge commit '42ba1c51d9e843135772a3b9e5cf036a37b28bdb'Michael Niedermayer2014-04-031-6/+8
|\| | | | | | | | | | | | | * commit '42ba1c51d9e843135772a3b9e5cf036a37b28bdb': log: Document AV_LOG_C usage Merged-by: Michael Niedermayer <[email protected]>
| * log: Document AV_LOG_C usageLuca Barbato2014-04-031-6/+8
| | | | | | | | And move outside the wrong doxygen group.
* | Merge commit '28b9ac4e48f3405a82e8e87ead336188215cf1e6'Michael Niedermayer2014-04-031-2/+2
|\| | | | | | | | | | | | | | | | | | | * commit '28b9ac4e48f3405a82e8e87ead336188215cf1e6': log: Remove undefined behaviour Conflicts: libavutil/log.c Merged-by: Michael Niedermayer <[email protected]>
| * log: Remove undefined behaviourLuca Barbato2014-04-031-2/+2
| |
* | Merge commit '7763118cae4eb468b032dbd29af15a011c2c233b'Michael Niedermayer2014-04-033-6/+26
|\| | | | | | | | | | | | | | | | | | | | | | | * commit '7763118cae4eb468b032dbd29af15a011c2c233b': log: Support for 256color terminals Conflicts: doc/APIchanges libavutil/log.c libavutil/version.h Merged-by: Michael Niedermayer <[email protected]>
| * log: Support for 256color terminalsLuca Barbato2014-04-033-20/+47
| | | | | | | | | | | | | | | | | | And provide extended coloring capabilities for debugging. The default colors do not change in 256 more to keep supporting people using Black on White, White on Black and Solarized terminals. Signed-off-by: Luca Barbato <[email protected]>
| * lavu: add missing formats to av_pix_fmt_swap_endiannessJanne Grunau2014-04-021-0/+3
| |
* | log: Factorize check_color_terminal() outLuca Barbato2014-04-031-22/+25
| |
* | lavu/opt: dont crash on freeing NULL AVOptionRangesLukasz Marek2014-04-031-0/+3
| | | | | | | | | | Signed-off-by: Lukasz Marek <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | Merge commit 'lukaszmluki/master^'Michael Niedermayer2014-04-033-10/+77
|\ \ | | | | | | | | | | | | | | | | | | * commit 'lukaszmluki/master^': lavu/opt: extend AVOptionRange by extra values Merged-by: Michael Niedermayer <[email protected]>
| * | lavu/opt: extend AVOptionRange by extra valuesLukasz Marek2014-04-033-10/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | AVOptionRange is not flexible enough to store AV_OPT_TYPE_IMAGE_SIZE ranges. Current implementation can only store pixel count. This patch aims to keep backward compatibility and extend AVOptionRange with possibility to store width/height ranges. Signed-off-by: Lukasz Marek <[email protected]>
* | | dict: const pointers to dictionary where possibleRoman Fietze2014-04-032-4/+4
|/ / | | | | | | | | | | | | | | | | | | This avoids temporaries or ugly casting in the calling code where const dictionaries are used. Esp. helpful when writing C++ wrappers for an AVDictionary having const member functions and CTORs with const references. Signed-off-by: Roman Fietze <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | avutil/fixed_dsp: remove redundant castMichael Niedermayer2014-04-011-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | libavutil: Add fixed_dspNedeljko Babic2014-04-014-1/+244
| | | | | | | | | | Signed-off-by: Nedeljko Babic <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | avutil/opt: dont crash on av_opt_set_dict() with NULLMichael Niedermayer2014-03-301-0/+3
| | | | | | | | | | | | | | This allows calling the function without the need to check if the dictionary contains any entries Signed-off-by: Michael Niedermayer <[email protected]>
* | lavu/mem: add av_dynarray_add_nofree functionLukasz Marek2014-03-293-3/+31
| | | | | | | | | | | | | | | | av_dynarray_add_nofree function have similar functionality as existing av_dynarray_add, but it doesn't deallocate memory on fails. Signed-off-by: Lukasz Marek <[email protected]>
* | avutil/frame: undeprecate AVFrame.motion_val APIMichael Niedermayer2014-03-261-2/+0
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | x86/cpu: check for OS support before enabling AVX2James Almer2014-03-251-1/+1
| | | | | | | | | | | | | | AV_CPU_FLAG_AVX is enabled at this point only if there's OS support. Signed-off-by: James Almer <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | Merge commit 'd161ae0a37900cbd36c1390ca32a56b892c02ab5'Michael Niedermayer2014-03-243-1/+23
|\| | | | | | | | | | | | | | | | | | | * commit 'd161ae0a37900cbd36c1390ca32a56b892c02ab5': frame: add a function for removing side data from a frame Conflicts: libavutil/version.h Merged-by: Michael Niedermayer <[email protected]>
| * frame: add a function for removing side data from a frameAnton Khirnov2014-03-243-1/+23
| |
* | Merge commit '5a7e35dd2351c30bab45177b9482cb8833a0ca78'Michael Niedermayer2014-03-244-1/+57
|\| | | | | | | | | | | | | | | | | | | | | | | * commit '5a7e35dd2351c30bab45177b9482cb8833a0ca78': Add replaygain side data type and code for parsing replaygain tags. Conflicts: libavcodec/avcodec.h libavcodec/version.h libavutil/version.h Merged-by: Michael Niedermayer <[email protected]>
| * Add replaygain side data type and code for parsing replaygain tags.Anton Khirnov2014-03-244-1/+57
| |
* | avutil/dynarray: remove debug av_log() from AV_DYNARRAY_ADDMichael Niedermayer2014-03-221-2/+0
| | | | | | | | | | Found-by: wm4 Signed-off-by: Michael Niedermayer <[email protected]>