summaryrefslogtreecommitdiffstats
path: root/libswscale
Commit message (Collapse)AuthorAgeFilesLines
* 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/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28521 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unnecessary emms Assembler instructions.diego2009-02-101-9/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28518 b3059339-0415-0410-9bf9-f77b7e298cf2
* Document coeff and length fields in SwsVector.stefano2009-02-091-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28512 b3059339-0415-0410-9bf9-f77b7e298cf2
* Revert #undefining system functions, it is not necessary.diego2009-02-091-7/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28502 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add config.h #include for ARCH_X86 definition.diego2009-02-091-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28500 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add #undefs to reenable system functions that are normally forbidden in otherdiego2009-02-091-0/+7
| | | | | | | parts of FFmpeg but OK in this test program. Fixes the build. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28499 b3059339-0415-0410-9bf9-f77b7e298cf2
* Drop DECLARE_ALIGNED from extern declarations. It creates trouble whendiego2009-02-091-2/+2
| | | | | | | swscale_internal.h is #included without HAVE_AV_CONFIG_H defined. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28498 b3059339-0415-0410-9bf9-f77b7e298cf2
* Prefix visible YUV2RGB functions with sws_kostya2009-02-096-16/+16
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28496 b3059339-0415-0410-9bf9-f77b7e298cf2
* Give better name to Inverse_Table_6_9kostya2009-02-092-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28495 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove file name from file headers.diego2009-02-091-1/+1
| | | | | | | It provides no useful information and breaks on renames. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28494 b3059339-0415-0410-9bf9-f77b7e298cf2
* Drop the deprecated sws_scale_ordered() at the next major versionstefano2009-02-082-0/+4
| | | | | | | bump. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28492 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace int type with enum PixelFormat for the dstFormat/srcFormatstefano2009-02-081-3/+3
| | | | | | | | params of the sws_getContext() and sws_getCachedContext() declarations, consistent with the implementation. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28491 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix a typo: lumaSarpen -> lumaSharpen.stefano2009-02-081-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28490 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: Remove period after copyright statement non-sentence.diego2009-02-011-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28444 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use full internal pathname in doxygen @file directives.diego2009-02-011-1/+1
| | | | | | | | Otherwise doxygen complains about ambiguous filenames when files exist under the same name in different subdirectories. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28414 b3059339-0415-0410-9bf9-f77b7e298cf2
* HAVE_3DNOW --> HAVE_AMD3DNOW to sync with latest configure changes.diego2009-01-256-31/+31
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28358 b3059339-0415-0410-9bf9-f77b7e298cf2
* Declare struct SwsContext before using it, fixes the checkheaders warning:diego2009-01-251-0/+2
| | | | | | | | libswscale/swscale_internal.h:58: warning: `struct SwsContext' declared inside parameter list libswscale/swscale_internal.h:58: warning: its scope is only this definition or declaration, which is probably not what you want git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28353 b3059339-0415-0410-9bf9-f77b7e298cf2
* Disable C code when compiling AltiVec code, fixes the warning:diego2009-01-251-0/+1
| | | | | | | swscale_template.c:2623: warning: `swScale_C' defined but not used git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28352 b3059339-0415-0410-9bf9-f77b7e298cf2
* spelling/grammar cosmeticsdiego2009-01-251-48/+48
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28351 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix #endif comments.diego2009-01-251-5/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28350 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add PIX_FMT_VDPAU_WMV3 and PIX_FMT_VDPAU_VC1.cehoyos2009-01-201-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28344 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add VDPAU hardware accelerated decoding for MPE