summaryrefslogtreecommitdiff
path: root/libavutil
Commit message (Collapse)AuthorAge
...
* 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>
* pixdesc: fix and extend doxy for av_pix_fmt_get_chroma_sub_sample()Anton Khirnov2016-01-23
| | | | The parameters in the docs are currently swapped.
* lavu: add AV_CEIL_RSHIFT and use it in various placesClément Bœsch2016-01-11
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* arm: Fix vfp dead code elimination with have_vfp_vmMartin Storsjö2016-01-08
| | | | | | | | | This fixes builds with --disable-vfp. Checking for the armv6 cpu flag is incorrect, since vfpv2 isn't armv6 specific. Signed-off-by: Martin Storsjö <martin@martin.st>
* arm: add a cpu flag for the VFPv2 vector modeJanne Grunau2015-12-14
| | | | | | | | | | | | | | The vector mode was deprecated in ARMv7-A/VFPv3 and various cpu implementations do not support it in hardware. Vector mode code will depending the OS either be emulated in software or result in an illegal instruction on cpus which does not support it. This was not really problem in practice since NEON implementations of the same functions are preferred. It will however become a problem for checkasm which tests every cpu flag separately. Since this is a cpu feature newer cpu do not support anymore the behaviour of this flag differs from the other flags. It can be only activated by runtime cpu feature selection.
* arm64: add cycle counter supportJanne Grunau2015-12-14
| | | | | | The ISB (instruction synchronization barrier) might be too heavy for START/STOPTIMER use but should be more accurate in checkasm where the timing overhead is subtracted.
* libavutil: move FFALIGN macro from common.h to macros.hJanne Grunau2015-12-14
| | | | | | | | | Include macros.h explicitly in common.h so that external code using FFALIGN does not break. It was already implicitly included through version.h. Include macros.h in lls.h and internal.h for FFALIGN. lls.h was including common.h only for FFALIGN and internal.h was missing the include for FFALIGN. `make checkheaders` did not catch it because it's an internal header.
* xtea: Add functions for little endian modeMartin Storsjö2015-11-13
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* xtea: Clarify that the current API works in big endian modeMartin Storsjö2015-11-13
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* thread: Provide no-op variants for pthread_onceLuca Barbato2015-10-14
|
* dict: Change return type of av_dict_copy()Vittorio Giovara2015-10-12
| | | | | | av_dict_set() could return an error, so forward it appropriately. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* avutil/avstring: Inline some tiny functionsHenrik Gramner2015-10-03
| | | | | | | They're short enough that inlining them actually reduces code size due to all the overhead associated with making a function call. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavu: Deprecate AVFrame.error[]Vittorio Giovara2015-09-30
| | | | | | | | | | | These field are difficult to interpret, and are provided by a single encoder (mpegvideoenc). In general they do not belong to a structure containing raw data only, so remove them from AVFrame. Mpegvideoenc now uses a private field in Picture for its internal computations. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* mips: intreadwrite: Only execute that code for mips r1 or r2Vicente Olivert Riera2015-09-29
| | | | | | | | | MIPS R6 supports unaligned memory access and does not have the load/store-left/right family of instructions. Signed-off-by: Vicente Olivert Riera <Vincent.Riera at imgtec.com> Signed-off-by: Luca Barbato <lu_zero at gentoo.org> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* pixfmt: Add new SMPTE color primaries and transfer characteristic valuesKevin Wheatley2015-09-17
| | | | | | Appeared in ITU-T Rec H.265 10/2014. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* pixdesc: Document the component orderLuca Barbato2015-09-10
|
* pixdesc: Add missing alpha flag for yuva420p9beHendrik Leppkes2015-09-10
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* pixdesc: Consistently order componentsHendrik Leppkes2015-09-10
| | | | | | | | Ensure that the components are ordered consistently, ie. always RGB(A) and YUV(A). This allows to identify a specific plane on a given pixel format without hard-coding knowledge of the plane order. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* lavu: Drop the {minus,plus}1 suffix from AVComponentDescriptor fieldsVittorio Giovara2015-09-07
| | | | | | The new fields can be accessed directly and are more intelligible. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavu: Remove bit packing from AVComponentDescriptorVittorio Giovara2015-09-07
| | | | | | | | | There is no practical benefit in having this structure elements bit packed given the size of the structure and its usage. Change types from uint16_t (packed) to plain int in order to simplify modifying the structure and accessing its fields. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavu: extend size of the AVPixFmtDescriptor.flags fieldwm42015-09-07
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* des: Add missing includeVittorio Giovara2015-08-31
|
* Bump major versions of all librariesVittorio Giovara2015-08-28
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* Postpone API-incompatible changes until the next bumpVittorio Giovara2015-08-28
|
* lavu: Drop deprecated private lls functionsVittorio Giovara2015-08-28
| | | | Deprecated in 02/2013.
* lavu: Drop deprecated context size variablesVittorio Giovara2015-08-28
| | | | Deprecated in 10/2012.
* lavu: Drop deprecated duplicated AVFrame/AVCodecContext parametersVittorio Giovara2015-08-28
| | | | Deprecated in 10/2012.
* lavu: Drop deprecated AV_CPU_FLAG_MMX2 symbolVittorio Giovara2015-08-28
| | | | Deprecated in 11/2012.
* lavu: Drop deprecated audioconvert.h headerVittorio Giovara2015-08-28
| | | | Deprecated in 11/2012.
* lavu: Drop deprecated av_reverse functionVittorio Giovara2015-08-28
| | | | Deprecated in 10/2012.
* lavu: Drop deprecated external access to AVPixFmtDescriptor tableVittorio Giovara2015-08-28
| | | | Deprecated in 10/2012.
* lavu: Drop deprecated old_pix_fmt.h and related codeVittorio Giovara2015-08-28
| | | | Deprecated in 10/2012.
* channel_layout: Add a 16channel default layoutLuca Barbato2015-08-23
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* x86inc: Various minor backports from x264Henrik Gramner2015-08-13
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* x86inc: Drop SECTION_TEXT macroHenrik Gramner2015-08-11
| | | | | | | The .text section is already 16-byte aligned by default on all supported platforms so `SECTION_TEXT` isn't any different from `SECTION .text`. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* x86inc: Disable vpbroadcastq workaround in newer yasm versionsHenrik Gramner2015-08-11
| | | | | | The bug was fixed in 1.3.0, so only perform the workaround in earlier versions. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* x86inc: Fix instantiation of YMM registersChristophe Gisquet2015-08-11
| | | | | Signed-off-by: Henrik Gramner <henrik@gramner.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* x86inc: warn when instructions incompatible with current cpuflags are usedAnton Mitrofanov2015-08-11
| | | | | Signed-off-by: Henrik Gramner <henrik@gramner.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* x86inc: Support arbitrary stack alignmentsHenrik Gramner2015-08-11
| | | | | | | | 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. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* x86inc: warn if XOP integer FMA instruction emulation is impossibleAnton Mitrofanov2015-08-11
| | | | | | | | | | | Emulation requires a temporary register if arguments 1 and 4 are the same; this doesn't obey the semantics of the original instruction, so we can't emulate that in x86inc. Also add pmacsdql emulation. Signed-off-by: Henrik Gramner <henrik@gramner.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* des: extend av_des_init() doxyJames Almer2015-07-31
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* des: add av_des_alloc()James Almer2015-07-31
| | | | | Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* xtea: add av_xtea_alloc()James Almer2015-07-31
| | | | | Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* rc4: extend av_rc4_init() doxyJames Almer2015-07-31
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* rc4: add av_rc4_alloc()James Almer2015-07-31
| | | | | Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>