Cédric Schieli
110f147a85
Also test the alpha channel in swscale-example
...
Originally committed as revision 29013 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Cédric Schieli
6268f55be5
YUVA420P is now supported as output format
...
Originally committed as revision 29012 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Cédric Schieli
6858492e6c
Add alpha channel scaling
...
Originally committed as revision 29011 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Cédric Schieli
3acd545f0c
Add YUVA420P -> RGBA/BGRA/ARGB/ABGR unscaled converters
...
Originally committed as revision 29010 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Cédric Schieli
f6cf4ed08a
Use a simpler and more general check for the gray case in the planarCopy function
...
Originally committed as revision 29009 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Diego Biurrun
54ea773614
Initialize *srcContext, *dstContext, *outContext to NULL, avoids the warnings:
...
libswscale/swscale-example.c:60: warning: 'outContext' may be used uninitialized in this function
libswscale/swscale-example.c:60: warning: 'dstContext' may be used uninitialized in this function
libswscale/swscale-example.c:60: warning: 'srcContext' may be used uninitialized in this function
Originally committed as revision 29008 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Matthieu Castet
e29c3f934f
Remove useless casting in asm "m" operand.
...
Patch by Matthieu Castet, castet D matthieu A free D fr
Originally committed as revision 29007 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Ramiro Polla
dd35beb29b
Allocate executable memory with VirtualAlloc() in Windows.
...
Originally committed as revision 29006 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Ramiro Polla
16a3717f8d
Drop unnecessary cast and cosmetically align.
...
Originally committed as revision 29005 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Michael Niedermayer
9326d3f355
Revert
...
Date: Wed Mar 18 23:11:50 2009
New Revision: 28996
Log:
Fix libswscale compilation on non-x86, hopefully without breaking MinGW64 again.
This change was non optimal, correct would have been to revert the offending commits
if no time was available to find a clean fix.
Originally committed as revision 29003 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Michael Niedermayer
72ef3dd72e
Fix 10l typo.
...
Originally committed as revision 29002 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Michael Niedermayer
0411072ee3
Unscaled converters for
...
YUYV->YUV420P
YUYV->YUV422P
UYVY->YUV420P
UYVY->YUV422P
Originally committed as revision 28997 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Reimar Döffinger
62651fa729
Fix libswscale compilation on non-x86, hopefully without breaking MinGW64 again.
...
Originally committed as revision 28996 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Ramiro Polla
9a034dde8b
swscale-example: use LFG instead of random()
...
Originally committed as revision 28993 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Ramiro Polla
d0ce212a7a
Do not assume long is same width as x86 register.
...
Originally committed as revision 28992 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Diego Biurrun
780daf2b09
Consistently use ff_ prefixes for internal symbols.
...
Originally committed as revision 28988 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Cédric Schieli
d4da3e4790
Add a fillPlane function to fill a plane with one constant value
...
Originally committed as revision 28986 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Cédric Schieli
4c01b868de
Don't write outside of the picture buffer in planarCopy in the gray case
...
Originally committed as revision 28985 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Diego Biurrun
852ca0e57d
Fix ff_bfin_yuv2rgb_get_func_ptr() vs. sws_ff_bfin_yuv2rgb_get_func_ptr() name
...
mismatch. The function is now called sws_yuv2rgb_get_func_ptr_bfin().
Originally committed as revision 28982 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Diego Biurrun
7f5ee4eaa9
whitespace cosmetics: Consistently format function calls without space
...
between name and parentheses; shorten some overly long lines.
Originally committed as revision 28981 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Cédric Schieli
9a10a0767c
Add an alpha parameter to the YUV2RGBFUNC macro to ease the upcoming yuva2rgb patch
...
Originally committed as revision 28978 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Cédric Schieli
2816ce4c91
Split YUV2RGB operands declaration into a separate macro
...
Originally committed as revision 28972 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Cédric Schieli
786dcfef48
Make the source buffer operands parametrized in the YSCALEYUV2RGB_YA macro
...
Originally committed as revision 28943 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Cédric Schieli
fe91924dd7
Make MMX registers parametrized in the YSCALEYUV2PACKEDX_YA macro
...
Originally committed as revision 28934 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Cédric Schieli
c662e788ce
In initMMX2HScaler, when chrDstW is not divisible by 4, the last filterPos element is initialized on the wrong index (not evenly aligned). This fixes it
...
Originally committed as revision 28933 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Kostya Shishkov
bcff32d1b4
Mask all unused bits for packed pixel format instead of green and alpha mask only.
...
That fixes the case when converting 15-bit RGB/BGR to YUV and high bit is set
for input value(s).
Originally committed as revision 28916 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Cédric Schieli
6208d67664
Let the 4th plane reach the swScale function
...
Originally committed as revision 28868 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Cédric Schieli
9621f2f540
YUVA420P is a planar YUV format
...
Originally committed as revision 28867 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Cédric Schieli
a3398feb26
Fix bug introduced by me in r28756
...
Originally committed as revision 28825 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Cédric Schieli
a284d03093
Rewrite of rgb15to32 and rgb16to32 using fewer asm instructions and setting alpha channel to 0xFF
...
Originally committed as revision 28808 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Jindřich Makovička
57f9a56051
remove the rest of x86 asm from LGPL build
...
Originally committed as revision 28804 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Dominik Mierzejewski
9c36693924
Fix typo in comments.
...
Originally committed as revision 28777 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Reimar Döffinger
b62bb661ed
Add warnings to yuv2rgb_vis.c because alpha is set wrong (0 instead of 255).
...
Originally committed as revision 28776 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Reimar Döffinger
68363b6989
Make AltiVec code write alpha as 255 instead of 0 when converting to RGBA
...
Originally committed as revision 28774 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Reimar Döffinger
f78b9c0656
Fix braindead and broken way to calculate abase, fixes regression tests on
...
big-endian systems.
Originally committed as revision 28773 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Cédric Schieli
f8a138be52
When converting from a non alpha format to an alpha format, defaults
...
Originally committed as revision 28756 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Cédric Schieli
c27516003f
Add an isALPHA macro to check if pixel format has alpha channel
...
Originally committed as revision 28747 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Cédric Schieli
2c89734255
Use YUV420P code path for YUVA420P where appropriate
...
Originally committed as revision 28746 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Cédric Schieli
771ac0de04
Refactor code for upcoming alpha patches.
...
Patch by Cédric Schieli, cschieli A gmail
Originally committed as revision 28741 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Diego Biurrun
1e5304c69e
Rename yuv2rgb2.c --> yuv2rgb.c.
...
Originally committed as revision 28723 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Diego Biurrun
ee8ee340a1
Relicense AltiVec optimizations as LGPL with the permission of Marc Hoffman
...
and Reza Jelveh, the original authors.
Originally committed as revision 28717 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Diego Biurrun
876a4dc013
Remove GPL version of yuv2rgb.c that has been replaced by an LGPL substitute.
...
Originally committed as revision 28716 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Kostya Shishkov
e76709d8a6
New LGPLed YUV2RGB table generator for SwScaler
...
Originally committed as revision 28700 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Cédric Schieli
431ac29046
Factorize some code in yuv2rgb_template.c to ease further yuva2rgb patch.
...
Patch by Cédric Schieli, cschieli gmail
Originally committed as revision 28690 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Cédric Schieli
404944183d
move zeroing of alpha channel register out of YSCALEYUV2xxx macros,
...
patch by Cédric Schieli (cschieli at gmail youknowwhat)
Originally committed as revision 28687 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Cédric Schieli
df57ab1479
splits various YSCALEYUV2xxx macros into YSCALEYUV2xxx_UV,
...
YSCALEYUV2xxx_YA and YSCALEYUV2xxx_COEFF,
patch by Cédric Schieli (cschieli at gmail youknowwhat)
Originally committed as revision 28686 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Cédric Schieli
9c77b26b35
make MMX registers parametrized in the WRITEBGR32 macro,
...
patch by Cédric Schieli (cschieli at gmail youknowwhat)
Originally committed as revision 28685 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Stefano Sabatini
15239b7fcc
Rename the "src" parameter in the sws_scale() declaration to
...
"srcSlice" to stress the fact that it references a slice rather than an
image.
Originally committed as revision 28655 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Stefano Sabatini
583799c459
Document sws_scale().
...
Originally committed as revision 28654 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Stefano Sabatini
e14ff1e628
Use sws_printVec2() instead of the deprecated sws_printVec().
...
Originally committed as revision 28567 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago