summaryrefslogtreecommitdiff
path: root/libavutil
Commit message (Collapse)AuthorAge
* avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for HEVC bi mc functionsShivraj Patil2015-06-02
| | | | | | | | | This patch adds MSA (MIPS-SIMD-Arch) optimizations for HEVC bi mc functions (qpel as well as epel) in new file hevc_mc_bi_msa.c Adds new generic macros (needed for this patch) in libavutil/mips/generic_macros_msa.h Adds HEVC specific macros (needed for this patch) in libavcodec/mips/hevc_macros_msa.h Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avutil/float_dsp: Fix ambiguous wording about vector productsMichael Niedermayer2015-06-01
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avutil/ppc/cpu: Remove !ARCH_PPC64 check for mfspr, the code should now ↵Michael Niedermayer2015-06-01
| | | | | | support ppc64 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* x86: check for AV_CPU_FLAG_AVXSLOW where usefulJames Almer2015-06-01
| | | | | Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge commit 'cae39851201b7781f1262e1c23627b45e6e80bb4'Michael Niedermayer2015-05-31
|\ | | | | | | | | | | | | * commit 'cae39851201b7781f1262e1c23627b45e6e80bb4': x86: Add helper macros to check for slow cpuflags Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * x86: Add helper macros to check for slow cpuflagsJames Almer2015-05-31
| | | | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | Merge commit 'f7cafb5d02aa3f26c185f6f9851413ad77a73872'Michael Niedermayer2015-05-31
|\| | | | | | | | | | | | | | | | | | | | | | | * commit 'f7cafb5d02aa3f26c185f6f9851413ad77a73872': x86: add AV_CPU_FLAG_AVXSLOW flag Conflicts: doc/APIchanges libavutil/version.h See: c312bfac4c8ac1ac55d6648fd6eb36db436100f3 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * x86: add AV_CPU_FLAG_AVXSLOW flagJames Almer2015-05-31
| | | | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | Merge commit 'd0bf20a4f25ac5de021c860a0c8ad05638ee2078'Michael Niedermayer2015-05-31
|\| | | | | | | | | | | | | * commit 'd0bf20a4f25ac5de021c860a0c8ad05638ee2078': ppc: vsx: Implement diff_pixels and get_pixels Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * ppc: vsx: Implement diff_pixels and get_pixelsLuca Barbato2015-05-31
| | | | | | | | Use a macro to abstract the endianness.
* | avutil/ppc/float_dsp_init: Disable duplicate functionsMichael Niedermayer2015-05-31
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'eecd29b3fd7fee221580798346d6582b75c7ade4'Michael Niedermayer2015-05-31
|\| | | | | | | | | | | | | | | | | | | * commit 'eecd29b3fd7fee221580798346d6582b75c7ade4': ppc: vsx: Implement float_dsp Conflicts: libavutil/ppc/float_dsp_init.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * ppc: vsx: Implement float_dspLuca Barbato2015-05-31
| |
* | Merge commit '7d07ee5a9bd170a06d26fd967cf8de5d3b1ce331'Michael Niedermayer2015-05-31
|\| | | | | | | | | | | | | * commit '7d07ee5a9bd170a06d26fd967cf8de5d3b1ce331': ppc: cpu: Add support for VSX and POWER8 extensions Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * ppc: cpu: Add support for VSX and POWER8 extensionsLuca Barbato2015-05-31
| |
| * ppc: Restrict some Altivec implementations to Big EndianLuca Barbato2015-05-31
| | | | | | | | | | In Little Endian the vec_ld/vec_st operations work as expected only for byte-vectors.
* | Merge commit '3058872c293e239e3b51e86fe18cfbe720aadff1'Michael Niedermayer2015-05-31
|\| | | | | | | | | | | | | | | | | | | * commit '3058872c293e239e3b51e86fe18cfbe720aadff1': ppc: Clarify and extend the cpuid check Conflicts: libavutil/ppc/cpu.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * ppc: Clarify and extend the cpuid checkLuca Barbato2015-05-31
| | | | | | | | Add POWER entries.
* | avutil/ppc/cpu: Check if unistd.h is available before including itMichael Niedermayer2015-05-31
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'baa94563fede8959a638b0fa132dd2124acd93e8'Michael Niedermayer2015-05-31
|\| | | | | | | | | | | | | | | | | | | * commit 'baa94563fede8959a638b0fa132dd2124acd93e8': ppc: linux: Check altivec using the auxv Conflicts: libavutil/ppc/cpu.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * ppc: linux: Check altivec using the auxvLuca Barbato2015-05-31
| | | | | | | | Should prevent trying to use altivec when it is disabled by the kernel.
* | Merge commit '72cebae0d981dde144340cf51f3c323f01e215e5'Michael Niedermayer2015-05-31
|\| | | | | | | | | | | | | | | | | | | | | * commit '72cebae0d981dde144340cf51f3c323f01e215e5': ppc: avutil: Use the abriged vector types Conflicts: libavutil/ppc/float_dsp_altivec.c libavutil/ppc/util_altivec.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * ppc: avutil: Use the abriged vector typesLuca Barbato2015-05-31
| |
| * ppc: avutil: Drop a potentially dangerous workaroundLuca Barbato2015-05-31
| | | | | | | | The compiler is free to optimize such expressions in any sort of way.
* | libavutil: Cosmetic changes to fixed_dsp file.Nedeljko Babic2015-05-29
| | | | | | | | | | | | | | | | | | Names of functions vector_fmul_window_fixed_c and vector_fmul_window_fixed_scaled_c are changed by removing "_fixed" from the name since it is redundant. Signed-off-by: Nedeljko Babic <nedeljko.babic@imgtec.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'a64a5773ea5f7337cd1d87cfdf511914d317fe81'Michael Niedermayer2015-05-28
|\| | | | | | | | | | | | | | | | | | | * commit 'a64a5773ea5f7337cd1d87cfdf511914d317fe81': pixfmt: remove misleading and broken documentation Conflicts: libavutil/pixfmt.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * pixfmt: remove misleading and broken documentationwm42015-05-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was probably broken some time ago. The breakage is now part of the ABI. For example, we have: AV_PIX_FMT_XYZ12BE AV_PIX_FMT_NV16 AV_PIX_FMT_NV20LE AV_PIX_FMT_NV20LE is wrong. It has the value 113, but as little-endian format it should be even. This must have been quite obvious when these formats were added (because of the AV_PIX_FMT_XYZ12BE entry), but nobody cared or knew about this. The future libavutil major bump will also break this additionally, because disabling FF_API_VDPAU will remove an odd number of entries from the middle of the enum. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
| * x86inc: Clear __SECT__Timothy Gu2015-05-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Silences warning(s) like: libavcodec/x86/fft.asm:93: warning: section flags ignored on section redeclaration The cause of this warning is that because `struc` and `endstruc` attempts to revert to the previous section state [1]. The section state is stored in the macro __SECT__, defined by x86inc.asm to be `.note.GNU-stack ...`, through the `SECTION` directive [2]. Thus, the `.note.GNU-stack` section is defined twice (once in x86inc.asm, once during `endstruc`), causing the warning. That is the first part of the commit: using the primitive `[section]` format for .note.GNU-stack etc., which does not update `__SECT__` [2]. That fixes only half of the problem. Even without any `SECTION` directives, `__SECT__` is predefined as `.text`, which conflicting with the later `SECTION_TEXT` (which expands to `.text align=16`). [1]: http://www.nasm.us/doc/nasmdoc6.html#section-6.4 [2]: http://www.nasm.us/doc/nasmdoc6.html#section-6.3 Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | avcodec/mips: Split uni mc optimizations to new fileShivraj Patil2015-05-28
| | | | | | | | | | | | | | | | | | This patch moves HEVC code of uni mc cases to new file hevc_mc_uni_msa.c. (There are total 5 sub-modules of HEVC mc functions, if we add all these modules in one single file, its size would be huge (~750k) & difficult to maintain, so splitting it in multiple files) This patch also adds new HEVC header file libavcodec/mips/hevc_macros_msa.h Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/mips: Restructure of generic macrosShivraj Patil2015-05-28
| | | | | | | | | | | | | | | | | | | | | | | | | | This patch includes restructuring of existing macros and addition of more generic macros. This change was necessary to avoid repeated review comments in remaining patches which we were about to submit. Also this patch reduces number of code lines due to maximum use of generic macros, allows better code alignment & readability etc. These modifications in commonly used .libavutil/mips/generic_macros_msa.h. impacts the already accepted code, hence re-submitting it in 2/4,3/4 & 4/4. Overall, this patch set is just upgrading the code with styling changes and will bring it in sync with MIPS-SIMD optimized latest codebase at our end. Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | x86inc: Clear __SECT__Timothy Gu2015-05-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit silences warning(s) like: libavcodec/x86/fft.asm:93: warning: section flags ignored on section redeclaration The cause of this warning is that because `struc` and `endstruc` attempts to revert to the previous section state [1]. The section state is stored in the macro __SECT__, defined by x86inc.asm to be `.note.GNU-stack ...`, through the `SECTION` directive [2]. Thus, the `.note.GNU-stack` section is defined twice (once in x86inc.asm, once during `endstruc`), causing the warning. That is the first part of the commit: using the primitive `[section]` format for .note.GNU-stack etc., which does not update `__SECT__` [2]. That fixes only half of the problem. Even without any `SECTION` directives, `__SECT__` is predefined as `.text`, which conflicting with the later `SECTION_TEXT` (which expands to `.text align=16`). [1]: http://www.nasm.us/doc/nasmdoc6.html#section-6.4 [2]: http://www.nasm.us/doc/nasmdoc6.html#section-6.3 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | x86/cpu: add AV_CPU_FLAG_AVXSLOW flagJames Almer2015-05-27
| | | | | | | | | | Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: James Almer <jamrial@gmail.com>
* | avutil: Add av_q2intfloat()Michael Niedermayer2015-05-26
| | | | | | | | | | | | | | This function allows writing AVRationals as IEEE floats without the need of platform dependant float operations Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'd8039ef8d221ea273aa4f1e62e5df21bf618c772'Michael Niedermayer2015-05-25
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'd8039ef8d221ea273aa4f1e62e5df21bf618c772': D3D11va: add a Direct3D11 video decoder similar to DXVA2 Conflicts: Changelog configure libavcodec/Makefile libavcodec/allcodecs.c libavcodec/dxva2_vc1.c libavcodec/version.h libavutil/pixdesc.c libavutil/pixfmt.h libavutil/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * D3D11va: add a Direct3D11 video decoder similar to DXVA2Steve Lhomme2015-05-25
| | | | | | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | avutil/pixfmt: Clarify DV example comments for AVChromaLocationTim Nicholson2015-05-22
| | | | | | | | | | Signed-off-by: Tim Nicholson <tim.nicholson@bbc.co.uk> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/pixfmt: s/luma sample positions/horizontal luma sample positions/Michael Niedermayer2015-05-21
| | | | | | | | | | | | Better to be explicit before someone thinks this could be the time axis ... Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/pixfmt: make luma sample positions even more explicit in the ↵Michael Niedermayer2015-05-21
| | | | | | | | | | | | AVChromaLocation ASCII art Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/pixfmt: Clarify mpeg example comments for AVChromaLocationMichael Niedermayer2015-05-21
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/pixfmt: clarify chroma location text further, as "first" is ambigousMichael Niedermayer2015-05-21
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/pixfmt: Clarify that the ASCII art describes the location of the ↵Michael Niedermayer2015-05-21
| | | | | | | | | | | | first chroma sample of AVChromaLocation Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/pixfmt: Improve ascii art showing the meaning of the AVChromaLocation ↵Michael Niedermayer2015-05-19
| | | | | | | | | | | | values Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libavutil/softfloat: Add test case for av_add_sfNedeljko Babic2015-05-14
| | | | | | | | | | | | | | | | | | | | | | | | | | Recently normalization (av_normalize_sf) of output was added to av_add_sf. This normalization is used for better precision for small values and the purpose of this (quite simple) test case is to test difference between double and softfloat. The values used are tailored to maximally highlighte problem with precison when normalization is not used. Signed-off-by: Nedeljko Babic <nedeljko.babic@imgtec.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | imgutils: initialize palette padding bytes in av_image_allocAndreas Cadhalpun2015-05-13
| | | | | | | | | | | | | | | | | | | | | | | | | | av_image_fill_pointers always aligns the palette, but the padding bytes don't (and can't) get initialized in av_image_copy. Thus initialize them in av_image_alloc. This fixes 'Syscall param write(buf) points to uninitialised byte(s)' valgrind warnings. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/avstring: Use size_t in av_strlcatf()Michael Niedermayer2015-05-11
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/dict: Use size_t for appending stringsMichael Niedermayer2015-05-10
| | | | | | | | | | | | the string length is not constrained to INT_MAX Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libavutil/mem: use size_t for the length in av_strdup()Michael Niedermayer2015-05-10
| | | | | | | | | | | | the string length is not constrained to INT_MAX Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mips: MSA (MIPS-SIMD-Arch) optimizations for HEVC uni copy, uni ↵Shivraj Patil2015-05-07
| | | | | | | | | | | | | | | | horizontal and uni vertical mc functions Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com> Reviewed-by: Nedeljko Babic <Nedeljko.Babic@imgtec.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | ripemd: move ripemd{256, 320} into separate functionsJames Almer2015-05-07
| | | | | | | | | | | | | | | | | | | | | | | | | | This allows the removal of a few branches. Before: lavu RIPEMD-160 size: 1048576 runs: 1024 time: 7.052 +- 0.010 After: lavu RIPEMD-160 size: 1048576 runs: 1024 time: 6.865 +- 0.015 Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavu: add yuv440p10/12 pixfmts.Ronald S. Bultje2015-05-06
| |