- Jan 05, 2013
-
-
Xi Wang authored
sws_getCachedContext() and sws_getContext() expect sws_alloc_context() to return NULL when out of memory, as follows. if (!(context = sws_alloc_context())) return NULL; This patch fixes sws_alloc_context() to return NULL in that case. Signed-off-by:
Xi Wang <xi.wang@gmail.com> Signed-off-by:
Derek Buitenhuis <derek.buitenhuis@gmail.com>
-
- Dec 20, 2012
-
-
Diego Biurrun authored
-
- Nov 18, 2012
-
-
Diego Biurrun authored
-
- Nov 16, 2012
-
-
Janne Grunau authored
SWS_CPU_CAPS are deprecated and slated to removed with libswscale major version 3. No need to provide a SWS_CPU_CAPS_MMX2 as backward compatibility define under the same explicit condition.
-
- Nov 13, 2012
-
-
Diego Biurrun authored
-
- Nov 09, 2012
-
-
Diego Biurrun authored
-
- Oct 31, 2012
-
-
Diego Biurrun authored
-
Kostya Shishkov authored
Otherwise during scaling it will try to interpret input in the wrong way and that leads to the test results disagreeing on different platforms and with different optimizations. Signed-off-by:
Diego Biurrun <diego@biurrun.de>
-
Diego Biurrun authored
-
- Oct 30, 2012
-
-
Diego Biurrun authored
-
Diego Biurrun authored
-
Diego Biurrun authored
This is more consistent with the way we handle C #includes and it simplifies the build system.
-
Diego Biurrun authored
This is necessary to allow refactoring some x86util macros with cpuflags.
-
Luca Barbato authored
Signed-off-by:
Luca Barbato <lu_zero@gentoo.org>
-
Luca Barbato authored
With the input of Kostya and Ronald.
-
- Oct 23, 2012
-
-
Mans Rullgard authored
Some compilers (e.g. old gcc) have trouble with these. Signed-off-by:
Mans Rullgard <mans@mansr.com>
-
- Oct 15, 2012
-
-
Mans Rullgard authored
Some systems, e.g. Minix, have sys/mman.h defining MAP_ANONYMOUS without providing (working) mmap and friends. The mmx filter generation code checks only for MAP_ANONYMOUS, not for availability of mmap itself which leads to build errors on aforementioned systems. This changes the conditional compilation to use mmap only if all the required functions are available. Signed-off-by:
Mans Rullgard <mans@mansr.com>
-
- Oct 12, 2012
-
-
Luca Barbato authored
-
Anton Khirnov authored
-
- Oct 10, 2012
-
-
Diego Biurrun authored
-
- Oct 08, 2012
-
-
Anton Khirnov authored
-
- Oct 06, 2012
-
-
Diego Biurrun authored
Anonymous structs cannot be forward declared and have no benefit.
-
- Oct 05, 2012
-
-
Mans Rullgard authored
This gets rid of the variable-length scratch buffer by filtering 16 pixels at a time and writing directly to the destination. The extra loads this requires to load the source values are compensated by not doing a round-trip to memory before shifting. Signed-off-by:
Mans Rullgard <mans@mansr.com>
-
- Sep 13, 2012
-
-
Diego Biurrun authored
-
- Sep 08, 2012
-
-
Martin Storsjö authored
This reverts parts of e0c6cce4. There is external mmx asm that requires this alignment. This fixes crashes when using swscale in builds with external mmx, without inline assembly. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Diego Biurrun authored
This separates code relying on inline from that relying on external assembly and fixes instances where the coalesced check was incorrect.
-
- Sep 07, 2012
-
-
Diego Biurrun authored
-
- Sep 04, 2012
-
-
Martin Storsjö authored
Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
Signed-off-by:
Martin Storsjö <martin@martin.st>
-
- Aug 30, 2012
-
-
Diego Biurrun authored
-
Diego Biurrun authored
-
- Aug 28, 2012
-
-
Ronald S. Bultje authored
This introduces support for width%4==2 in addition to width%4==0. For odd widths, some more checks are needed, since the current code always handles two luma items in a row, thus there is a possibility of an overread by one.
-
Martin Storsjö authored
Signed-off-by:
Martin Storsjö <martin@martin.st>
-
- Aug 19, 2012
-
-
Giorgio Vazzana authored
Signed-off-by:
Diego Biurrun <diego@biurrun.de>
-
- Aug 15, 2012
-
-
Martin Storsjö authored
Signed-off-by:
Martin Storsjö <martin@martin.st>
-
- Aug 13, 2012
-
-
Mans Rullgard authored
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>
-
Mans Rullgard authored
This code has been disabled since 2003. Nobody will ever look at it again. Signed-off-by:
Mans Rullgard <mans@mansr.com>
-
- Aug 08, 2012
-
-
Mans Rullgard authored
This puts x86-specific things in the x86/ subdirectory where they belong. Signed-off-by:
Mans Rullgard <mans@mansr.com>
-
- Aug 03, 2012
-
-
Diego Biurrun authored
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.
-