summaryrefslogtreecommitdiff
path: root/libavutil
Commit message (Collapse)AuthorAge
* Add tests for functions in hash.cNagaChaitanya Vellanki2016-03-09
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* mips: add support for R6Vicente Olivert Riera2016-03-09
| | | | | | | | | | | Understanding the mips32r6 and mips64r6 ISAs in the configure script is not enough. In order to have full support for MIPS R6 in FFmpeg we need to be able to build it, and for that we need to make sure we don't use incompatible assembler code which makes the build fail. Ifdefing the offending code is sufficient to fix the problem. Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avutil/color_utils: Mark test_data as static constMichael Niedermayer2016-03-03
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Add test for avpriv_get_trc_function_from_trc functionNagaChaitanya Vellanki2016-03-03
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavu/rational: add more info regarding floor(x+0.5) usageGanesh Ajjanagadde2016-02-29
| | | | | | | | Add some more verbose info regarding why the imprecise and slow floor(x+0.5) hack is used; helpful for future maintenance. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanag@gmail.com>
* Document and validate AVFrame plane pointers.Reimar Döffinger2016-02-28
| | | | | | | | | | Check that the required plane pointers and only those are set up. Currently does not enforce anything for the palette pointer of pseudopal formats as I am unsure about the requirements. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* avutil/imgutils: Assert that the 2nd av_image_fill_linesizes() call in ↵Michael Niedermayer2016-02-28
| | | | | | | | av_image_fill_linesizes() still succeeds Fixes CID1271742 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Merge commit '29c2d06d67724e994980045afa055c6c34611b30'Derek Buitenhuis2016-02-24
|\ | | | | | | | | | | | | * commit '29c2d06d67724e994980045afa055c6c34611b30': cosmetics: Drop empty comment lines Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * cosmetics: Drop empty comment linesDiego Biurrun2016-02-18
| |
* | Merge commit 'd847a40888c064cc8c35b546fc5a0ccb69136a7c'Derek Buitenhuis2016-02-24
|\| | | | | | | | | | | | | * commit 'd847a40888c064cc8c35b546fc5a0ccb69136a7c': hwcontext_cuda/vdpau: add to skipheaders Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * hwcontext_cuda/vdpau: add to skipheadersAnton Khirnov2016-02-18
| |
* | Merge commit 'ad884d100259e55cb51a4239cd8a4fd5154c2073'Derek Buitenhuis2016-02-24
|\| | | | | | | | | | | | | * commit 'ad884d100259e55cb51a4239cd8a4fd5154c2073': hwcontext: add a CUDA implementation Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * hwcontext: add a CUDA implementationAnton Khirnov2016-02-14
| |
* | Merge commit '7bc780cd4413f688d3b834037b0f9ddfd6948140'Derek Buitenhuis2016-02-24
|\| | | | | | | | | | | | | * commit '7bc780cd4413f688d3b834037b0f9ddfd6948140': pixfmt: add a CUDA hwaccelled format Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * pixfmt: add a CUDA hwaccelled formatAnton Khirnov2016-02-14
| |
* | Add GBRAP12 pixel formatKieran Kunhya2016-02-24
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avutil/pixdesc: Make get_color_type() aware of CIE XYZ formatsMichael Niedermayer2016-02-22
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avfilter: add loop filtersPaul B Mahol2016-02-18
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avutil/hwcontext: Remove duplicate ;Michael Niedermayer2016-02-17
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Merge commit 'a001ce31bc2bcf875a39b5fb22dae49120293b42'Derek Buitenhuis2016-02-17
|\| | | | | | | | | | | | | * commit 'a001ce31bc2bcf875a39b5fb22dae49120293b42': hwcontext: add a VDPAU implementation Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * hwcontext: add a VDPAU implementationAnton Khirnov2016-02-14
| |
* | Merge commit '89923e418b494e337683442ab896d754bc07341a'Derek Buitenhuis2016-02-17
|\| | | | | | | | | | | | | * commit '89923e418b494e337683442ab896d754bc07341a': lavu: add a framework for handling hwaccel frames Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * lavu: add a framework for handling hwaccel framesAnton Khirnov2016-02-14
| |
* | Merge commit '721a4efc0545548a241080b53ab480e34f366240'Derek Buitenhuis2016-02-17
|\| | | | | | | | | | | | | * commit '721a4efc0545548a241080b53ab480e34f366240': buffer: add support for pools using caller data in allocation Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * buffer: add support for pools using caller data in allocationAnton Khirnov2016-02-14
| | | | | | | | | | This should allow using more complex allocators than simple malloc wrappers.
| * x86: Add ymm_reg structJames Almer2016-01-28
| | | | | | | | | | | | | | Needed to declare 32-byte long constants Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | Merge commit '6695f178a5929eab91d3da7e9023999f1774bd0e'Derek Buitenhuis2016-02-16
|\| | | | | | | | | | | | | * commit '6695f178a5929eab91d3da7e9023999f1774bd0e': pixdesc: Use AV_CEIL_RSHIFT in documentation Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * pixdesc: Use AV_CEIL_RSHIFT in documentationVittorio Giovara2016-01-25
| |
* | Merge commit '1546a41adae818b340acdd9b5dacd6d0a92b6507'Derek Buitenhuis2016-02-16
|\| | | | | | | | | | | | | * commit '1546a41adae818b340acdd9b5dacd6d0a92b6507': pixdesc: Drop unneeded deprecation warning guards Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * pixdesc: Drop unneeded deprecation warning guardsVittorio Giovara2016-01-25
| |
| * x86inc: Add debug symbols indicating sizes of compiled functionsGeza Lore2016-01-23
| | | | | | | | | | | | | | | | | | | | | | Some debuggers/profilers use this metadata to determine which function a given instruction is in; without it they get can confused by local labels (if you haven't stripped those). On the other hand, some tools are still confused even with this metadata. e.g. this fixes `gdb`, but not `perf`. Currently only implemented for ELF. Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * x86inc: Avoid creating unnecessary local labelsHenrik Gramner2016-01-23
| | | | | | | | | | | | | | | | | | | | | | | | The REP_RET workaround is only needed on old AMD cpus, and the labels clutter up the symbol table and confuse debugging/profiling tools, so use EQU to create SHN_ABS symbols instead of creating local labels. Furthermore, skip the workaround completely in functions that definitely won't run on such cpus. Note that EQU is just creating a local label when using nasm instead of yasm. This is probably a bug, but at least it doesn't break anything. Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * x86inc: Simplify AUTO_REP_RETHenrik Gramner2016-01-23
| | | | | | | | | | | | | | | | cpuflags is never undefined any more, it's set to 0 instead. Also fix an incorrect comment. Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * x86inc: Use more consistent indentationHenrik Gramner2016-01-23
| | | | | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * x86inc: Preserve arguments when allocating stack spaceHenrik Gramner2016-01-23
| | | | | | | | | | | | | | | | When allocating stack space with a larger alignment than the known stack alignment a temporary register is used for storing the stack pointer. Ensure that this isn't one of the registers used for passing arguments. Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * x86inc: Improve FMA instruction handlingHenrik Gramner2016-01-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Correctly handle FMA instructions with memory operands. * Print a warning if FMA instructions are used without the correct cpuflag. * Simplify the instantiation code. * Clarify documentation. Only the last operand in FMA3 instructions can be a memory operand. When converting FMA4 instructions to FMA3 instructions we can utilize the fact that multiply is a commutative operation and reorder operands if necessary to ensure that a memory operand is used only as the last operand. Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * x86inc: Be more verbose in assertion failuresHenrik Gramner2016-01-23
| | | | | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * x86inc: Make cpuflag() and notcpuflag() return 0 or 1Henrik Gramner2016-01-23
| | | | | | | | | | | | Makes it possible to use them in arithmetic expressions. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | x86: use the new helper macros where usefulJames Almer2016-02-14
| | | | | | | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* | x86: add some more helper macros to check for slow cpuflagsJames Almer2016-02-14
| | | | | | | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* | avutil/imgutils: remove special case for aligning the paletteMichael Niedermayer2016-02-14
| | | | | | | | | | | | | | | | | | | | | | | | | | This was suggested by wm4 and stefano. After this patch using align=1 the size used by various functions would not contain padding, while the palette would be aligned at align>1 This patch makes it required to use align>=4 if the palette is to be accessed as uint32 As a side-effect It fixes storing pal8 in nut with odd with&height Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avutil/parseutils: remove 2112 date from fate testMarton Balint2016-02-14
| | | | | | | | | | | | It is not supported on 32bit. Signed-off-by: Marton Balint <cus@passwd.hu>
* | avutil/parseutils: accept everything in av_parse_time that ↵Marton Balint2016-02-14
| | | | | | | | | | | | | | | | ff_iso8601_to_unix_time accepts Also parse timezone information previously ignored in ff_iso8601_to_unix_time. Signed-off-by: Marton Balint <cus@passwd.hu>
* | avutil/parseutils: use microsecond precision when parsing "now" in ↵Marton Balint2016-02-14
| | | | | | | | | | | | | | | | av_parse_time() Use av_gettime() instead of time(0) for querying current time. Signed-off-by: Marton Balint <cus@passwd.hu>
* | avutil: Remove x86_cpu.hTimothy Gu2016-02-13
| | | | | | | | It is private (uninstalled) and unused.
* | avutil/frame: Free destination qp_table_buf in frame_copy_props()Michael Niedermayer2016-02-13
| | | | | | | | | | | | | | Fixes memleak Fixes: Ticket4899 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avutil/imgutils: only align the palette in av_image_copy_to_buffer() if ↵Michael Niedermayer2016-02-13
| | | | | | | | | | | | | | | | | | there is enough space This allows disabling the alignment by using a compact buffer Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avutil/avstring: add a "ALL" entry and the possibility to negate matches to ↵Michael Niedermayer2016-02-13
| | | | | | | | | | | | | | | | | | | | av_match_name() This will extend the whitelist features to allow blacklisting individual protocols and to explicitly force everything to be enabled. Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avutil/imgutils: do not ignore align parameter for pseudo-pal in ↵Michael Niedermayer2016-02-13
| | | | | | | | | | | | | | av_image_get_buffer_size() Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | x86/cpu: set avxslow cpuflag on btver2 CPUsJames Almer2016-02-07
| | | | | | | | | | | | | | They are also slow when using 256 bit wide registers Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>