summaryrefslogtreecommitdiffstats
path: root/libswscale
Commit message (Collapse)AuthorAgeFilesLines
* Rename 'tests' target to 'testprogs'. It is too easily confused with thediego2009-03-221-1/+1
| | | | | | | 'test' target and a directory named tests exists. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29039 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unnecessary CLEANFILES declaration. Test programs do not require it.diego2009-03-221-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29038 b3059339-0415-0410-9bf9-f77b7e298cf2
* Enable unscaled packed422 -> planar 420 converters by default as themichael2009-03-211-5/+4
| | | | | | | imgconvert inherited quality issues should be fixed. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29031 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10l (C code was buggy and untested)michael2009-03-211-4/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29030 b3059339-0415-0410-9bf9-f77b7e298cf2
* Average chroma of 2 lines in packed 422 -> planar 420.michael2009-03-211-4/+110
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29029 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix build failure on x86_32 Mac OS X with PIC enabledsdrik2009-03-212-2/+12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29022 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix planarCopy to ignore the GRAY8 "pseudo"-palette, fixes libavtest ↵reimar2009-03-211-1/+3
| | | | | | regression test. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29021 b3059339-0415-0410-9bf9-f77b7e298cf2
* Avoid crash on planarCopy to a destination without alpha.reimar2009-03-201-1/+2
| | | | | | | Makes regression tests run again, though the results are still wrong. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29018 b3059339-0415-0410-9bf9-f77b7e298cf2
* Initialize pointer arrays which may be freed before being initialized.benoit2009-03-201-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29017 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do _not_ use rbx on x86_64, it will fail to compile with PIC, besides itreimar2009-03-201-4/+3
| | | | | | | added completely pointless code. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29016 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix swscale compilation with Altivec enabled.reimar2009-03-201-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29015 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reindent after last commitsdrik2009-03-201-66/+66
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29014 b3059339-0415-0410-9bf9-f77b7e298cf2
* Also test the alpha channel in swscale-examplesdrik2009-03-201-19/+22
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29013 b3059339-0415-0410-9bf9-f77b7e298cf2
* YUVA420P is now supported as output formatsdrik2009-03-202-8/+13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29012 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add alpha channel scalingsdrik2009-03-203-88/+411
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29011 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add YUVA420P -> RGBA/BGRA/ARGB/ABGR unscaled converterssdrik2009-03-202-10/+115
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29010 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use a simpler and more general check for the gray case in the planarCopy ↵sdrik2009-03-201-4/+1
| | | | | | function git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29009 b3059339-0415-0410-9bf9-f77b7e298cf2
* Initialize *srcContext, *dstContext, *outContext to NULL, avoids the warnings:diego2009-03-191-2/+2
| | | | | | | | | 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 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29008 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove useless casting in asm "m" operand.cehoyos2009-03-191-2/+2
| | | | | | | Patch by Matthieu Castet, castet D matthieu A free D fr git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29007 b3059339-0415-0410-9bf9-f77b7e298cf2
* Allocate executable memory with VirtualAlloc() in Windows.ramiro2009-03-191-0/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29006 b3059339-0415-0410-9bf9-f77b7e298cf2
* Drop unnecessary cast and cosmetically align.ramiro2009-03-191-5/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29005 b3059339-0415-0410-9bf9-f77b7e298cf2
* Revertmichael2009-03-191-28/+18
| | | | | | | | | | | | | | | 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. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29003 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix 10l typo.michael2009-03-191-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29002 b3059339-0415-0410-9bf9-f77b7e298cf2
* Unscaled converters formichael2009-03-194-1/+324
| | | | | | | | | | YUYV->YUV420P YUYV->YUV422P UYVY->YUV420P UYVY->YUV422P git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28997 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix libswscale compilation on non-x86, hopefully without breaking MinGW64 again.reimar2009-03-181-18/+28
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28996 b3059339-0415-0410-9bf9-f77b7e298cf2
* swscale-example: use LFG instead of random()ramiro2009-03-181-1/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28993 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not assume long is same width as x86 register.ramiro2009-03-185-36/+39
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28992 b3059339-0415-0410-9bf9-f77b7e298cf2
* Consistently use ff_ prefixes for internal symbols.diego2009-03-188-25/+25
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28988 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add a fillPlane function to fill a plane with one constant valuesdrik2009-03-171-8/+11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28986 b3059339-0415-0410-9bf9-f77b7e298cf2
* Don't write outside of the picture buffer in planarCopy in the gray casesdrik2009-03-171-2/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28985 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix ff_bfin_yuv2rgb_get_func_ptr() vs. sws_ff_bfin_yuv2rgb_get_func_ptr() namediego2009-03-172-2/+2
| | | | | | | mismatch. The function is now called sws_yuv2rgb_get_func_ptr_bfin(). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28982 b3059339-0415-0410-9bf9-f77b7e298cf2
* whitespace cosmetics: Consistently format function calls without spacediego2009-03-172-65/+67
| | | | | | | between name and parentheses; shorten some overly long lines. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28981 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add an alpha parameter to the YUV2RGBFUNC macro to ease the upcoming ↵sdrik2009-03-161-12/+12
| | | | | | yuva2rgb patch git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28978 b3059339-0415-0410-9bf9-f77b7e298cf2
* Split YUV2RGB operands declaration into a separate macrosdrik2009-03-161-1/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28972 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make the source buffer operands parametrized in the YSCALEYUV2RGB_YA macrosdrik2009-03-141-7/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28943 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make MMX registers parametrized in the YSCALEYUV2PACKEDX_YA macrosdrik2009-03-111-11/+11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28934 b3059339-0415-0410-9bf9-f77b7e298cf2
* In initMMX2HScaler, when chrDstW is not divisible by 4, the last filterPos ↵sdrik2009-03-111-1/+1
| | | | | | element is initialized on the wrong index (not evenly aligned). This fixes it git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28933 b3059339-0415-0410-9bf9-f77b7e298cf2
* Mask all unused bits for packed pixel format instead of green and alpha mask ↵kostya2009-03-091-1/+1
| | | | | | | | | | | only. That fixes the case when converting 15-bit RGB/BGR to YUV and high bit is set for input value(s). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28916 b3059339-0415-0410-9bf9-f77b7e298cf2
* Let the 4th plane reach the swScale functionsdrik2009-03-071-6/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28868 b3059339-0415-0410-9bf9-f77b7e298cf2
* YUVA420P is a planar YUV formatsdrik2009-03-071-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28867 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix bug introduced by me in r28756sdrik2009-03-051-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28825 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rewrite of rgb15to32 and rgb16to32 using fewer asm instructions and setting ↵sdrik2009-03-041-38/+23
| | | | | | alpha channel to 0xFF git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28808 b3059339-0415-0410-9bf9-f77b7e298cf2
* remove the rest of x86 asm from LGPL buildhenry2009-03-031-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28804 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix typo in comments.rathann2009-03-011-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28777 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add warnings to yuv2rgb_vis.c because alpha is set wrong (0 instead of 255).reimar2009-03-011-2/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28776 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make AltiVec code write alpha as 255 instead of 0 when converting to RGBAreimar2009-03-011-5/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28774 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix braindead and broken way to calculate abase, fixes regression tests onreimar2009-03-011-1/+1
| | | | | | | big-endian systems. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28773 b3059339-0415-0410-9bf9-f77b7e298cf2
* When converting from a non alpha format to an alpha format, defaults to all ↵sdrik2009-02-286-37/+40
| | | | | | ones rather than all zeroes git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28756 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add an isALPHA macro to check if pixel format has alpha channelsdrik2009-02-271-0/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28747 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use YUV420P code path for YUVA420P where appropriatesdrik2009-02-271-3/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28746 b3059339-0415-0410-9bf9-f77b7e298cf2
* Refactor code for upcoming alpha patches.cehoyos2009-02-271-40/+42
| | | | | | | Patch by Cédric Schieli, cschieli A gmail git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28741 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename yuv2rgb2.c --> yuv2rgb.c.diego2009-02-242-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28723 b3059339-0415-0410-9bf9-f77b7e298cf2
* Relicense AltiVec optimizations as LGPL with the permission of Marc Hoffmandiego2009-02-241-8/+8
| | | | | | | and Reza Jelveh, the original authors. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28717 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove GPL version of yuv2rgb.c that has been replaced by an LGPL substitute.diego2009-02-241-780/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28716 b3059339-0415-0410-9bf9-f77b7e298cf2
* New LGPLed YUV2RGB table generator for SwScalerkostya2009-02-224-5/+685
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28700 b3059339-0415-0410-9bf9-f77b7e298cf2
* Factorize some code in yuv2rgb_template.c to ease further yuva2rgb patch.cehoyos2009-02-211-158/+73
| | | | | | | Patch by Cédric Schieli, cschieli gmail git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28690 b3059339-0415-0410-9bf9-f77b7e298cf2
* move zeroing of alpha channel register out of YSCALEYUV2xxx macros,stefang2009-02-211-4/+23
| | | | | | | patch by Cédric Schieli (cschieli at gmail youknowwhat) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28687 b3059339-0415-0410-9bf9-f77b7e298cf2
* splits various YSCALEYUV2xxx macros into YSCALEYUV2xxx_UV,stefang2009-02-211-8/+27
| | | | | | | | YSCALEYUV2xxx_YA and YSCALEYUV2xxx_COEFF, patch by Cédric Schieli (cschieli at gmail youknowwhat) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28686 b3059339-0415-0410-9bf9-f77b7e298cf2
* make MMX registers parametrized in the WRITEBGR32 macro,stefang2009-02-211-24/+23
| | | | | | | patch by Cédric Schieli (cschieli at gmail youknowwhat) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28685 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename the "src" parameter in the sws_scale() declaration tostefano2009-02-181-3/+3
| | | | | | | | "srcSlice" to stress the fact that it references a slice rather than an image. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28655 b3059339-0415-0410-9bf9-f77b7e298cf2
* Document sws_scale().stefano2009-02-181-0/+23
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28654 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use sws_printVec2() instead of the deprecated sws_printVec(). stefano2009-02-141-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28567 b3059339-0415-0410-9bf9-f77b7e298cf2
* Implement sws_printVec2() and deprecate sws_printVec().stefano2009-02-142-7/+25
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28566 b3059339-0415-0410-9bf9-f77b7e298cf2
* Document sws_normalizeVec().stefano2009-02-141-0/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28565 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make hScale_altivec_real() trim its output like other implementations dokostya2009-02-141-5/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28556 b3059339-0415-0410-9bf9-f77b7e298cf2
* Some AltiVec functions in SwScaler produce different output than theirkostya2009-02-142-2/+4
| | | | | | | | counterparts in pure C, so don't invoke them in bitexact mode. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28555 b3059339-0415-0410-9bf9-f77b7e298cf2
* Apply misc fixes for sws_getCachedContext() documentation.stefano2009-02-121-7/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28537 b3059339-0415-0410-9bf9-f77b7e298cf2
* Bump micro version, related to r28491.stefano2009-02-121-1/+1
| | | | | | | | See the thread: "[FFmpeg-devel] [PATCH] Explicitely declare {dst, src}Format sws_get*Context() params as enum PixelFormat". git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28536 b3059339-0415-0410-9bf9-f77b7e298cf2
* Document sws_getContext().stefano2009-02-111-0/+13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28535 b3059339-0415-0410-9bf9-f77b7e298cf2
* Document sws_getIdentityVec().stefano2009-02-111-0/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28533 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move sws_getGaussianVec() documentation from swscale.c to swscale.h.stefano2009-02-102-4/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28528 b3059339-0415-0410-9bf9-f77b7e298cf2
* Document sws_cloneVec().stefano2009-02-101-0/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28527 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix typo: lenght -> length.stefano2009-02-101-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28526 b3059339-0415-0410-9bf9-f77b7e298cf2
* Document sws_scaleVec().stefano2009-02-101-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28525 b3059339-0415-0410-9bf9-f77b7e298cf2
* Document sws_getConstVec().stefano2009-02-101-0/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28524 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move documentation of sws_getCachedContext() from swscale.c tostefano2009-02-102-10/+10
| | | | | | | swscale.h. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28523 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove pointless comment regarding sws_scale_ordered().stefano2009-02-101-3/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28522 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add a @deprecated notice to swscale_get_ordered().stefano2009-02-101-0</