summaryrefslogtreecommitdiffstats
path: root/libavutil
Commit message (Collapse)AuthorAgeFilesLines
* avutil/float_dsp: Remove use of deprecated av_set_cpu_flags_mask()Michael Niedermayer2015-08-071-1/+1
| | | | Signed-off-by: Michael Niedermayer <[email protected]>
* x86inc: warn if XOP integer FMA instruction emulation is impossibleAnton Mitrofanov2015-08-051-1/+3
| | | | Signed-off-by: Henrik Gramner <[email protected]>
* x86inc: Drop SECTION_TEXT macroHenrik Gramner2015-08-042-13/+1
| | | | | The .text section is already 16-byte aligned by default on all supported platforms so `SECTION_TEXT` isn't any different from `SECTION .text`.
* x86inc: Support arbitrary stack alignmentsHenrik Gramner2015-08-041-22/+40
| | | | | | Change ALLOC_STACK to always align the stack before allocating stack space for consistency. Previously alignment would occur either before or after allocating stack space depending on whether manual alignment was required or not.
* x86: move XOP emulation code back to x86incJames Almer2015-08-032-19/+16
| | | | | | | | | | Only two functions that use xop multiply-accumulate instructions where the first operand is the same as the fourth actually took advantage of the macros. This further reduces differences with x264's x86inc. Reviewed-by: Ronald S. Bultje <[email protected]> Signed-off-by: James Almer <[email protected]>
* avcodec: add new Videotoolbox hwaccel.Sebastien Zwickert2015-08-032-0/+6
|
* x86inc: Various minor backports from x264Henrik Gramner2015-08-031-11/+21
| | | | | Reviewed-by: "Ronald S. Bultje" <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* x86inc: Disable vpbroadcastq workaround in newer yasm versionsHenrik Gramner2015-08-031-9/+11
| | | | | | | The bug was fixed in 1.3.0, so only perform the workaround in earlier versions. Reviewed-by: "Ronald S. Bultje" <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* Merge commit '3e853ff7acc56b180950ab39e7282f1b938c8784'Hendrik Leppkes2015-08-021-0/+1
|\ | | | | | | | | | | | | * commit '3e853ff7acc56b180950ab39e7282f1b938c8784': des: extend av_des_init() doxy Merged-by: Hendrik Leppkes <[email protected]>
| * des: extend av_des_init() doxyJames Almer2015-07-311-0/+1
| | | | | | | | Signed-off-by: Anton Khirnov <[email protected]>
* | Merge commit 'd9e8b47e3144262d6bc4681740411d4bdafad6ac'Hendrik Leppkes2015-08-022-3/+33
|\| | | | | | | | | | | | | | | | | | | * commit 'd9e8b47e3144262d6bc4681740411d4bdafad6ac': des: add av_des_alloc() Conflicts: libavutil/des.c Merged-by: Hendrik Leppkes <[email protected]>
| * des: add av_des_alloc()James Almer2015-07-312-3/+33
| | | | | | | | | | Signed-off-by: James Almer <[email protected]> Signed-off-by: Anton Khirnov <[email protected]>
* | Merge commit '5d8bea3bb2357bb304f8f771a4107039037c5549'Hendrik Leppkes2015-08-022-0/+22
|\| | | | | | | | | | | | | * commit '5d8bea3bb2357bb304f8f771a4107039037c5549': xtea: add av_xtea_alloc() Merged-by: Hendrik Leppkes <[email protected]>
| * xtea: add av_xtea_alloc()James Almer2015-07-312-0/+22
| | | | | | | | | | Signed-off-by: James Almer <[email protected]> Signed-off-by: Anton Khirnov <[email protected]>
* | Merge commit 'b469832de993dabbfe037bef59c68e90e82ebca5'Hendrik Leppkes2015-08-021-0/+1
|\| | | | | | | | | | | | | * commit 'b469832de993dabbfe037bef59c68e90e82ebca5': rc4: extend av_rc4_init() doxy Merged-by: Hendrik Leppkes <[email protected]>
| * rc4: extend av_rc4_init() doxyJames Almer2015-07-311-0/+1
| | | | | | | | Signed-off-by: Anton Khirnov <[email protected]>
* | Merge commit 'ae365453c370c85f278bff7fbf9e20d9d335cb2a'Hendrik Leppkes2015-08-022-3/+34
|\| | | | | | | | | | | | | * commit 'ae365453c370c85f278bff7fbf9e20d9d335cb2a': rc4: add av_rc4_alloc() Merged-by: Hendrik Leppkes <[email protected]>
| * rc4: add av_rc4_alloc()James Almer2015-07-312-3/+34
| | | | | | | | | | Signed-off-by: James Almer <[email protected]> Signed-off-by: Anton Khirnov <[email protected]>
* | Merge commit '7a7df34c91e16ea8936f59524145a2cdd6b790f9'Hendrik Leppkes2015-08-023-1/+29
|\| | | | | | | | | | | | | | | | | | | | | * commit '7a7df34c91e16ea8936f59524145a2cdd6b790f9': blowfish: add av_blowfish_alloc() Conflicts: doc/APIchanges libavutil/version.h Merged-by: Hendrik Leppkes <[email protected]>
| * blowfish: add av_blowfish_alloc()James Almer2015-07-313-1/+29
| | | | | | | | | | Signed-off-by: James Almer <[email protected]> Signed-off-by: Anton Khirnov <[email protected]>
| * hmac: add missing version bump and APIChanges entryJames Almer2015-07-301-1/+1
| | | | | | | | | | Signed-off-by: James Almer <[email protected]> Signed-off-by: Martin Storsjö <[email protected]>
| * fate: add test vectors for HMAC SHA and SHA-2James Almer2015-07-291-10/+36
| | | | | | | | | | | | | | Also replace custom tests for MD5 with those published in RFC 2202 Signed-off-by: James Almer <[email protected]> Signed-off-by: Martin Storsjö <[email protected]>
| * hmac: add support for SHA-2James Almer2015-07-292-5/+28
| | | | | | | | | | Signed-off-by: James Almer <[email protected]> Signed-off-by: Martin Storsjö <[email protected]>
* | avutil/hmac: fix API/ABI compatibility with the forkJames Almer2015-07-293-30/+44
| | | | | | | | | | | | | | | | | | | | The test code is updated with some cosmetics to avoid the loop using undefined AVHMACType values. The old enum values will be removed in the next major bump, effectively making both projects synced and without API or ABI issues. Reviewed-by: Michael Niedermayer <[email protected]> Signed-off-by: James Almer <[email protected]>
* | avutil/hmac: support another ABI difference to the forkMichael Niedermayer2015-07-301-0/+5
| | | | | | | | | | | | spotted this and so adding it. Signed-off-by: Michael Niedermayer <[email protected]>
* | x86/float_dsp: add missing colon to labelsJames Almer2015-07-261-1/+1
| | | | | | | | | | | | Silences warnings with Nasm Signed-off-by: James Almer <[email protected]>
* | avutil/softfloat: Add a test for av_sincos_sf()Michael Niedermayer2015-07-251-0/+12
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | avutil: add ayuv64le and ayuv64be packed pixel formatPaul B Mahol2015-07-243-1/+30
| | | | | | | | Signed-off-by: Paul B Mahol <[email protected]>
* | avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for VP9 lpf functionsShivraj Patil2015-07-231-0/+3
| | | | | | | | | | | | Signed-off-by: Shivraj Patil <[email protected]> Reviewed-by: "Ronald S. Bultje" <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | avutil/softfloat: move av_sincos_sf() back to headerJames Almer2015-07-223-51/+48
| | | | | | | | | | | | | | Fixes compilation of host tool aacps_fixed_tablegen Reviewed-by: Michael Niedermayer <[email protected]> Signed-off-by: James Almer <[email protected]>
* | Add support for TEA (Tiny Encryption Algorithm)Vesselin Bontchev2015-07-213-0/+287
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | Merge commit '219b39a71a5694b1c14a07b86477f665a5b6849b'Michael Niedermayer2015-07-211-2/+2
|\| | | | | | | | | | | | | | | | | | | | | * commit '219b39a71a5694b1c14a07b86477f665a5b6849b': parseutil: Use non ambiguous aliases for uhd Conflicts: doc/ffmpeg.texi libavutil/parseutils.c Merged-by: Michael Niedermayer <[email protected]>
| * parseutil: Use non ambiguous aliases for uhdLuca Barbato2015-07-211-2/+2
| | | | | | | | uhd1 and uhd2 would be ambigous.
* | avutil/arm/intmath: return int for uint8 / uint16 clipMichael Niedermayer2015-07-201-4/+4
| | | | | | | | | | | | | | | | | | | | The C functions return uint8/16_t but that is effectively int not unsigned int Fixes fate-filter-tblend We do not return uint8/16_t as that would require the compiler to truncate the values, slowing it down. Signed-off-by: Michael Niedermayer <[email protected]>
* | avcodec: Implementation of AAC_fixed_decoder (SBR-module)Djordje Pesut2015-07-201-0/+8
| | | | | | | | | | | | | | Add fixed poind code. Signed-off-by: Nedeljko Babic <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | Merge commit 'e93ca480c91397f82f2ea5b6a8b82ac6d0e2bfd2'Michael Niedermayer2015-07-201-0/+4
|\| | | | | | | | | | | | | | | | | | | | | * commit 'e93ca480c91397f82f2ea5b6a8b82ac6d0e2bfd2': parseutil: Add more resolution aliases Conflicts: doc/ffmpeg.texi libavutil/parseutils.c Merged-by: Michael Niedermayer <[email protected]>
| * parseutil: Add more resolution aliasesLuca Barbato2015-07-201-0/+4
| | | | | | | | Add DCI 2k and 4k and uhd1 and uhd2.
* | avutil/x86/bswap: force inline asm versions with ICCJames Almer2015-07-181-1/+1
| | | | | | | | | | | | | | | | Recent ICC versions that define GCC as >= 4.5 (like ICC 13) apparently can't optimize the generic C versions of av_bswap*() on their own. Reviewed-by: Michael Niedermayer <[email protected]> Signed-off-by: James Almer <[email protected]>
* | avutil/intmath: check for ICC before GCCJames Almer2015-07-181-9/+9
| | | | | | | | | | | | | | | | Intel compiler also defines __GNUC__, so the Intel specific intrinsics were not really being used. Reviewed-by: Michael Niedermayer <[email protected]> Signed-off-by: James Almer <[email protected]>
* | avutil/frame: Update AVFrame docs library referencesMichael Niedermayer2015-07-181-7/+7
| | | | | | | | | | | | These where apparently forgotten when AVFrames where moved into libavutil Signed-off-by: Michael Niedermayer <[email protected]>
* | avutil/fifo: Fix the case where func() returns less bytes than requested in ↵Zhang Rui2015-07-141-1/+2
| | | | | | | | | | | | av_fifo_generic_write() Signed-off-by: Michael Niedermayer <[email protected]>
* | avutil/mem_internal: add missing header includesJames Almer2015-07-131-0/+3
| | | | | | | | | | | | | | Fixes make checkheaders Reviewed-by: Michael Niedermayer <[email protected]> Signed-off-by: James Almer <[email protected]>
* | avutil/frame: fix crash with av_frame_unref(NULL)Michael Niedermayer2015-07-131-0/+3
| | | | | | | | | | | | | | Fixes: af94b3a3d26586c08f557cafe8246251_signal_sigsegv_7ffff713351a_343_XFMode.ASF with 2097152 alloc limit Found-by: Samuel Groß, Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]>
* | Factor duplicated ff_fast_malloc() out into mem_internal.hMichael Niedermayer2015-07-132-16/+44
| | | | | | | | | | | | | | | | internal.h is difficult to use due to circular dependancies mem.h is a public header ff_* is not public Alternative solutions probably are possible too Signed-off-by: Michael Niedermayer <[email protected]>
* | avutil/mem: Fix potential overflow in overallocation codeMichael Niedermayer2015-07-111-2/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | Merge commit 'd1a6cb195f610978ba5d2351e60f938f7f261d59'Michael Niedermayer2015-07-091-1/+6
|\| | | | | | | | | | | | | * commit 'd1a6cb195f610978ba5d2351e60f938f7f261d59': x86: Serialize rdtsc in read_time() Merged-by: Michael Niedermayer <[email protected]>
| * x86: Serialize rdtsc in read_time()Henrik Gramner2015-07-091-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improves the accuracy of measurements, especially in short sections. To quote the Intel 64 and IA-32 Architectures Software Developer's Manual: "The RDTSC instruction is not a serializing instruction. It does not necessarily wait until all previous instructions have been executed before reading the counter. Similarly, subsequent instructions may begin execution before the read operation is performed. If software requires RDTSC to be executed only after all previous instructions have completed locally, it can either use RDTSCP (if the processor supports that instruction) or execute the sequence LFENCE;RDTSC." SSE2 is a requirement for lfence so only use it on SSE2-capable systems. Prefer lfence;rdtsc over rdtscp since rdtscp is supported on fewer systems. Signed-off-by: Luca Barbato <[email protected]>
* | Put a space between string literals and macros.Chris Watkins2015-07-071-2/+2
| | | | | | | | | | | | | | | | | | When compiling libavutil/internal.h as C++11, clang warns that a space is required between a string literal and an identifier. Put spaces in concatenations of string literals and EXTERN_PREFIX. Signed-off-by: Chris Watkins <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for idctdsp functionsShivraj Patil2015-07-071-0/+37
| | | | | | | | | | | | | | This patch adds MSA (MIPS-SIMD-Arch) optimizations for idctdsp functions in new file idctdsp_msa.c and simple_idct_msa.c Signed-off-by: Shivraj Patil <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for me_cmp functionsShivraj Patil2015-07-061-0/+59
| | | | | | | | | | | | | | This patch adds MSA (MIPS-SIMD-Arch) optimizations for me_cmp functions in new file me_cmp_msa.c Signed-off-by: Shivraj Patil <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>