summaryrefslogtreecommitdiffstats
path: root/libswscale
Commit message (Collapse)AuthorAgeFilesLines
* Add const qualifier to param argument of sws_getContext() anddiego2009-05-102-4/+5
| | | | | | | | sws_getCachedContext(). Fixes the warning: swscale.c:3408: warning: assignment discards qualifiers from pointer target type git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29288 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move preprocessor condition before variable declaration, fixes the warning:diego2009-05-101-1/+1
| | | | | | | libswscale/swscale.c:1795: warning: unused variable 'flags' git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29287 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add missing const qualifiers to AltiVec function parameters where appropriate.diego2009-05-093-7/+11
| | | | | | | Fixes a couple of 'discards qualifiers from pointer target type' warnings. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29281 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix sliced yuv410 -> yuv420 conversionvitor2009-05-071-4/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29272 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change VOFW for x86 to 5120, it allows larger images to be scaled and wasmichael2009-05-051-1/+6
| | | | | | | not slower. Other archs are not changed as the larger VOFW was slower on PPC. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29256 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix chroma shift when scaling from ARGB on LE and BGRA on BEsdrik2009-05-021-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29242 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove useless duplicated code in yuv2rgb_c_32, yuva2rgba_c and yuva2argb_csdrik2009-04-271-9/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29240 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make reset_ptr() void.cehoyos2009-04-231-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29229 b3059339-0415-0410-9bf9-f77b7e298cf2
* Planar 16bit 420 422 444 YUV support (output is only supported in somemichael2009-04-213-2/+129
| | | | | | | | | unscaled convertions). This, like gray16 converts down to 8bit, which is a big FIXME & patch welcome, we should preserve more bits. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29217 b3059339-0415-0410-9bf9-f77b7e298cf2
* Merge gray->gray converters into planarCopy(), this should also make ↵michael2009-04-211-90/+37
| | | | | | | | | planarCopy() useable for other 16bit formats once we support them. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29216 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add macro to check for 16bit per sample.michael2009-04-211-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29215 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make sure src/dst are NULL when they arent used, some code uses this tomichael2009-04-211-5/+28
| | | | | | | simpify checks. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29214 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use generic BE check instead of checking for gray16LE.michael2009-04-201-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29213 b3059339-0415-0410-9bf9-f77b7e298cf2
* add isBE()michael2009-04-201-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29212 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove 2 useless += at the end of rgb16to15(), found by CSA.michael2009-04-181-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29189 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename swscale_avoption.c to options.c.stefano2009-04-182-1/+1
| | | | | | | Consistent with lavc and lavf. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29188 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make sws_setColorspaceDetails() return -1 if the destination format isstefano2009-04-181-1/+1
| | | | | | | not supported. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29187 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move sws_[gs]etColorspaceDetails() documentation from swscale.c tostefano2009-04-182-9/+9
| | | | | | | swscale.h. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29186 b3059339-0415-0410-9bf9-f77b7e298cf2
* whitespace cosmetics: Break some overly long lines.diego2009-04-141-10/+18
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29180 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not use abgrToA for both luma and alpha channel in hyscale.sdrik2009-04-142-10/+11
| | | | | | This fixes RGB32 (et al.) scaling. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29179 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move addition of MMX-OBJS to OBJS into common.mak instead of duplicating it.diego2009-04-121-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29175 b3059339-0415-0410-9bf9-f77b7e298cf2
* whitespace cosmetics: Reindent a few lines and break a few excessively long ↵diego2009-04-121-12/+15
| | | | | | lines. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29174 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename RUNTIME_CPUDETECT to CONFIG_RUNTIME_CPUDETECT and always define it.ramiro2009-04-081-10/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29154 b3059339-0415-0410-9bf9-f77b7e298cf2
* swscale: Remove X86 commented out code.ramiro2009-04-051-11/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29149 b3059339-0415-0410-9bf9-f77b7e298cf2
* swscale: Use function pointers for swScale functions.ramiro2009-04-043-205/+186
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29145 b3059339-0415-0410-9bf9-f77b7e298cf2
* swscale: {}-related cosmetics.ramiro2009-04-041-7/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29144 b3059339-0415-0410-9bf9-f77b7e298cf2
* swscale: Add const to some swScale functions' parameters.ramiro2009-04-042-70/+72
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29143 b3059339-0415-0410-9bf9-f77b7e298cf2
* swscale: Remove mmx2 params from h[yc]scale().ramiro2009-04-021-29/+36
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29129 b3059339-0415-0410-9bf9-f77b7e298cf2
* swscale: Split h[yc]scale_fast() into their own functions.ramiro2009-04-021-23/+38
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29128 b3059339-0415-0410-9bf9-f77b7e298cf2
* swscale: Execute sfence and emms depending on runtime flags.ramiro2009-04-021-17/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29127 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make examples and test progs depend on librariesmru2009-04-011-5/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29119 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add missing $(EXESUF) to example/test program dependency declaration.diego2009-03-311-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29114 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use correct PRId64 instead of "lld" in printf string, fixes compiler warnings.reimar2009-03-301-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29107 b3059339-0415-0410-9bf9-f77b7e298cf2
* Generalize example target rule in common.mak so that it sets a -example$(EXESUF)diego2009-03-291-1/+1
| | | | | | | suffix for all example files instead of doing this in individual Makefiles. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29100 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move swscale AltiVec template code to ppc subdirectory.diego2009-03-292-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29099 b3059339-0415-0410-9bf9-f77b7e298cf2
* Relicense file to LGPL with the permission of Romain Dolbeau, the author.diego2009-03-291-8/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29097 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move bfin specific code to its subdir.ramiro2009-03-274-4/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29079 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename cs_test.c --> colorspace-test.c. This is more consistent with the namesdiego2009-03-262-2/+2
| | | | | | | of other test programs and more descriptive of what the program does. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29067 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move yuv2rgb code to subdirs.ramiro2009-03-269-65/+113
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29063 b3059339-0415-0410-9bf9-f77b7e298cf2
* swscale-example is an API example, not a test program.diego2009-03-251-1/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29056 b3059339-0415-0410-9bf9-f77b7e298cf2
* Adds "YUYV422 to YUVA420P" and "UYVY422 to YUVA420P" unscaled convertionsdrik2009-03-241-2/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29048 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix some places where "non-alpha to YUVA420P" do not fill the alpha planesdrik2009-03-241-0/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29047 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simpler and more elegant fix to the x86_32/OSX+PIC build failuresdrik2009-03-242-10/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29046 b3059339-0415-0410-9bf9-f77b7e298cf2
* 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