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
2009-03-14 08:11:03 +00:00
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
2009-03-11 14:44:22 +00:00
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
2009-03-11 14:22:53 +00:00
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
2009-03-09 17:25:43 +00:00
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
2009-03-07 09:39:48 +00:00
Cédric Schieli
9621f2f540
YUVA420P is a planar YUV format
...
Originally committed as revision 28867 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-03-07 09:37:25 +00:00
Cédric Schieli
a3398feb26
Fix bug introduced by me in r28756
...
Originally committed as revision 28825 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-03-05 21:02:33 +00:00
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
2009-03-04 19:12:49 +00:00
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
2009-03-03 19:47:23 +00:00
Dominik Mierzejewski
9c36693924
Fix typo in comments.
...
Originally committed as revision 28777 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-03-01 11:43:56 +00:00
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
2009-03-01 11:38:46 +00:00
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
2009-03-01 11:35:00 +00:00
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
2009-03-01 11:33:10 +00:00
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
2009-02-28 08:01:52 +00:00
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
2009-02-27 22:23:20 +00:00
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
2009-02-27 22:13:55 +00:00
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
2009-02-27 20:44:59 +00:00
Diego Biurrun
1e5304c69e
Rename yuv2rgb2.c --> yuv2rgb.c.
...
Originally committed as revision 28723 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-24 22:40:20 +00:00
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
2009-02-24 15:27:14 +00:00
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
2009-02-24 14:50:28 +00:00
Kostya Shishkov
e76709d8a6
New LGPLed YUV2RGB table generator for SwScaler
...
Originally committed as revision 28700 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-22 09:22:05 +00:00
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
2009-02-21 14:51:01 +00:00
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
2009-02-21 10:54:29 +00:00
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
2009-02-21 10:52:59 +00:00
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
2009-02-21 10:49:52 +00:00
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
2009-02-18 23:16:31 +00:00
Stefano Sabatini
583799c459
Document sws_scale().
...
Originally committed as revision 28654 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-18 23:11:47 +00:00
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
2009-02-14 20:18:50 +00:00
Stefano Sabatini
26b40a659d
Implement sws_printVec2() and deprecate sws_printVec().
...
Originally committed as revision 28566 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-14 20:14:28 +00:00
Stefano Sabatini
a26b51cd4a
Document sws_normalizeVec().
...
Originally committed as revision 28565 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-14 19:37:13 +00:00
Kostya Shishkov
43cbf8adbb
Make hScale_altivec_real() trim its output like other implementations do
...
Originally committed as revision 28556 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-14 16:39:15 +00:00
Kostya Shishkov
12794f73eb
Some AltiVec functions in SwScaler produce different output than their
...
counterparts in pure C, so don't invoke them in bitexact mode.
Originally committed as revision 28555 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-14 16:37:39 +00:00
Stefano Sabatini
39e80e6cb9
Apply misc fixes for sws_getCachedContext() documentation.
...
Originally committed as revision 28537 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-12 00:12:10 +00:00
Stefano Sabatini
70bf0416cf
Bump micro version, related to r28491.
...
See the thread:
"[FFmpeg-devel] [PATCH] Explicitely declare {dst, src}Format sws_get*Context() params as enum PixelFormat".
Originally committed as revision 28536 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-12 00:07:44 +00:00
Stefano Sabatini
a15886540b
Document sws_getContext().
...
Originally committed as revision 28535 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-11 23:42:29 +00:00
Stefano Sabatini
b5fdaebb44
Document sws_getIdentityVec().
...
Originally committed as revision 28533 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-11 21:34:44 +00:00
Stefano Sabatini
6d3cf67c2a
Move sws_getGaussianVec() documentation from swscale.c to swscale.h.
...
Originally committed as revision 28528 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-10 23:45:50 +00:00
Stefano Sabatini
89b7464732
Document sws_cloneVec().
...
Originally committed as revision 28527 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-10 23:43:08 +00:00
Stefano Sabatini
70838eefbf
Fix typo: lenght -> length.
...
Originally committed as revision 28526 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-10 23:40:58 +00:00
Stefano Sabatini
0bcb5b3918
Document sws_scaleVec().
...
Originally committed as revision 28525 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-10 23:38:01 +00:00
Stefano Sabatini
c326825e51
Document sws_getConstVec().
...
Originally committed as revision 28524 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-10 23:32:16 +00:00
Stefano Sabatini
b954b34a6d
Move documentation of sws_getCachedContext() from swscale.c to
...
swscale.h.
Originally committed as revision 28523 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-10 23:26:56 +00:00
Stefano Sabatini
9ea5e6f639
Remove pointless comment regarding sws_scale_ordered().
...
Originally committed as revision 28522 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-10 23:25:09 +00:00
Stefano Sabatini
1eeded3992
Add a @deprecated notice to swscale_get_ordered().
...
Originally committed as revision 28521 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-10 23:22:07 +00:00
Diego Biurrun
3d021dd6eb
Remove unnecessary emms Assembler instructions.
...
Originally committed as revision 28518 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-10 02:00:45 +00:00
Stefano Sabatini
edbdf77ec5
Document coeff and length fields in SwsVector.
...
Originally committed as revision 28512 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-09 23:42:16 +00:00
Diego Biurrun
945f7c6e92
Revert #undefining system functions, it is not necessary.
...
Originally committed as revision 28502 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-09 20:31:35 +00:00
Diego Biurrun
516c5f88a1
Add config.h #include for ARCH_X86 definition.
...
Originally committed as revision 28500 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-09 18:04:19 +00:00
Diego Biurrun
84205e0239
Add #undefs to reenable system functions that are normally forbidden in other
...
parts of FFmpeg but OK in this test program. Fixes the build.
Originally committed as revision 28499 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-09 18:01:36 +00:00
Diego Biurrun
43175f5010
Drop DECLARE_ALIGNED from extern declarations. It creates trouble when
...
swscale_internal.h is #included without HAVE_AV_CONFIG_H defined.
Originally committed as revision 28498 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-02-09 17:53:33 +00:00