summaryrefslogtreecommitdiff
path: root/libswscale/x86
Commit message (Collapse)AuthorAge
* cosmetics: Fix spelling mistakesVittorio Giovara2016-05-04
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Drop pointless assert.h #includesDiego Biurrun2016-05-03
|
* 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>
* avutil: rename AV_PIX_FMT_Y400A to AV_PIX_FMT_YA8Vittorio Giovara2014-08-04
| | | | | | | The rationale is that you have a packed format in form <greyscale sample> <alpha sample> <greyscale sample> <alpha sample> and shortening greyscale to 'G' might make one thing about Greenscale instead. An alias pixel format and color space name are provided for compatibility.
* Add missing headers to make template files compile (more) standaloneDiego Biurrun2014-03-26
|
* rgb2rgb_template: add MMX/SSE2/AVX-optimized deinterleaveBytesMichael Niedermayer2014-01-21
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* swscale/x86/rgb2rgb: add support for AVXMichael Niedermayer2014-01-21
| | | | | | This does not yet include any actual AVX code Signed-off-by: Anton Khirnov <anton@khirnov.net>
* x86: Consistently use cpu flag detection macros in places that still miss itDiego Biurrun2014-01-14
|
* swscale: x86: Consistently use lowercase function name suffixesDiego Biurrun2013-11-22
|
* swscale: x86: Hide arch-specific initialization detailsDiego Biurrun2013-08-28
| | | | Also give consistent names to init functions.
* swscale: Add av_cold attributes to init functions missing themDiego Biurrun2013-05-04
|
* cosmetics: Remove unnecessary extern keywords from function declarationsDiego Biurrun2013-03-27
|
* x86inc: Rename "program_name" to "private_prefix"Diego Biurrun2013-01-18
| | | | | | | The new name is more descriptive and will allow defining a separate public prefix for externally visible library symbols. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* x86: SPLATD: port to cpuflagsDiego Biurrun2012-11-18
|
* x86: mmx2 ---> mmxext in asm constructsDiego Biurrun2012-11-14
|
* x86: PALIGNR: port to cpuflagsDiego Biurrun2012-11-09
|
* x86: mmx2 ---> mmxext in function namesDiego Biurrun2012-10-31
|
* x86: MMX2 ---> MMXEXT in macro namesDiego Biurrun2012-10-31
|
* x86: mmx2 ---> mmxext in variable namesDiego Biurrun2012-10-31
|
* x86: mmx2 ---> mmxext in comments and messagesDiego Biurrun2012-10-31
|
* x86: yasm: Use complete source path for macro helper %includesDiego Biurrun2012-10-31
| | | | | This is more consistent with the way we handle C #includes and it simplifies the build system.
* x86: include x86inc.asm in x86util.asmDiego Biurrun2012-10-31
| | | | This is necessary to allow refactoring some x86util macros with cpuflags.
* Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormatAnton Khirnov2012-10-08
|
* x86: Replace checks for CPU extensions and flags by convenience macrosDiego Biurrun2012-09-08
| | | | | This separates code relying on inline from that relying on external assembly and fixes instances where the coalesced check was incorrect.
* x86: Split inline and external assembly #ifdefsDiego Biurrun2012-08-31
|
* x86: cosmetics: Comment some #endifs for better readabilityDiego Biurrun2012-08-30
|
* swscale: x86: fix #endif comments in rgb2rgb template fileGiorgio Vazzana2012-08-19
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* x86: swscale: fix fragile memory accessesMans Rullgard2012-08-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | To access data at multiple fixed offsets from a base address, this code uses a single "m" operand and code of the form "32%0", relying on the memory operand instantiation having no displacement, giving a final result of the form "32(%rax)". If the compiler uses a register and displacement, e.g. "64(%rax)", the end result becomes "3264(%rax)", which obviously does not work. Replacing the "m" operands with "r" operands allows safe addition of a displacement. In theory, multiple memory operands could use a shared base register with different index registers, "(%rax,%rbx)", potentially making more efficient use of registers. In the cases at hand, no such sharing is possible since the addresses involved are entirely unrelated. After this change, the code somewhat rudely accesses memory without using a corresponding memory operand, which in some cases can lead to unwanted "optimisations" of surrounding code. However, the original code also accesses memory not covered by a memory operand, so this is not adding any defect not already present. It is also hightly unlikely that any such optimisations could be performed here since the memory locations in questions are not accessed elsewhere in the same functions. This fixes crashes with suncc. Signed-off-by: Mans Rullgard <mans@mansr.com>
* x86: swscale: remove disabled codeMans Rullgard2012-08-13
| | | | | | | This code has been disabled since 2003. Nobody will ever look at it again. Signed-off-by: Mans Rullgard <mans@mansr.com>
* x86: rename libavutil/x86_cpu.h to libavutil/x86/asm.hMans Rullgard2012-08-09
| | | | | | | This puts x86-specific things in the x86/ subdirectory where they belong. Signed-off-by: Mans Rullgard <mans@mansr.com>
* x86: build: replace mmx2 by mmxextDiego Biurrun2012-08-03
| | | | | | | Refactoring mmx2/mmxext YASM code with cpuflags will force renames. So switching to a consistent naming scheme beforehand is sensible. The name "mmxext" is more official and widespread and also the name of the CPU flag, as reported e.g. by the Linux kernel.
* swscale: Mark all init functions as av_coldDiego Biurrun2012-07-23
|
* swscale: x86: Drop pointless _mmx suffix from filenamesDiego Biurrun2012-07-23
| | | | The files do not contain only MMX code.
* x86: swscale: Place inline assembly code under appropriate #ifdefsRonald S. Bultje2012-07-21
| | | | | | Fixes compilation for compilers that do not support gcc inline assembly. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* swscale: yuv2planeX 8bit >=sse2 functions need aligned stack on x86-32.Martin Storsjö2012-07-04
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* build: Move all arch OBJS declarations into arch subdirectory Makefiles.Diego Biurrun2012-04-12
|
* x86inc improvements for 64-bitHenrik Gramner2012-04-11
| | | | | | | | | | | | Add support for all x86-64 registers Prefer caller-saved register over callee-saved on WIN64 Support up to 15 function arguments Also (by Ronald S. Bultje) Fix up our asm to work with new x86inc.asm. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* swscale: convert hscale() to use named arguments.Ronald S. Bultje2012-03-14
|
* swscale: convert hscale to cpuflags().Ronald S. Bultje2012-03-14
|
* swscale: make filterPos 32bit.Ronald S. Bultje2012-03-06
| | | | | | | Fixes overflows for large image sizes. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* swscale: make %rep unconditional.Ronald S. Bultje2012-03-03
| | | | Fixes pre-processing with latest versions of nasm.
* swscale: remove now unnecessary hack.Ronald S. Bultje2012-03-03
|
* swscale: take first/lastline over/underflows into account for MMX.Ronald S. Bultje2012-02-23
| | | | | | | Fixes crashes for extremely large resizes (several 100-fold). Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* Revert two swscale commits.Ronald S. Bultje2012-02-19
| | | | | | | | | | | Revert "swscale: update context offsets after removal of AlpMmxFilter." (commit a95e3fa90b4190381b65d180eec5a4027075e2da) and Revert "swscale: Remove some write-only variables related to alpha handling." (commit 9d03cb9fc5ddf914920ab0dbe13f19a34c754966). They broke alpha handling - it's the evil inline asm that still uses that variable, so it's not truely write-only.
* swscale: make access to filter data conditional on filter type.Ronald S. Bultje2012-02-17
| | | | | Prevents crashes on 1-tap filter (unscaled). Also rename "bguf" argument to "vbuf", seems that was a typo.
* swscale: update context offsets after removal of AlpMmxFilter.Ronald S. Bultje2012-02-17
|
* swscale: Remove some write-only variables related to alpha handling.Diego Biurrun2012-02-14
|
* swscale: fix crashes in yuv2yuvX on x86-32.Ronald S. Bultje2012-02-13
| | | | | | They were introduced in an earlier commit that introduced use of named arguments. One cause was a typo, a second cause appears to be a bug in x264asm that I work around by not using named arguments.
* swscale: convert yuv2yuvX() to using named arguments.Ronald S. Bultje2012-02-12
|
* swscale: rename "dstw" to "w" to prevent name collisions.Ronald S. Bultje2012-02-12
| | | | | "dstw" can collide with the word-version of the "dst" argument, causing all kind of weird stuff down the pipe.