summaryrefslogtreecommitdiffstats
path: root/libswscale
Commit message (Collapse)AuthorAgeFilesLines
* preserve alpha channel when converting rgb32 to bgr32 in plain Civo2007-04-181-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23022 b3059339-0415-0410-9bf9-f77b7e298cf2
* fix red_15mask and green_15mask. the previous values were wrong and causedivo2007-04-181-2/+2
| | | | | | | some SIMD functions to output wrong data. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23021 b3059339-0415-0410-9bf9-f77b7e298cf2
* test widths all down to one. this tests whether the scalers correctly switchivo2007-04-181-1/+1
| | | | | | | to plain C when width < unit size of assembly code. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23018 b3059339-0415-0410-9bf9-f77b7e298cf2
* skip MMX code in rgb24tobgr24 if the size of the input is smaller than theivo2007-04-181-0/+3
| | | | | | | size of the units the MMX code processes git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23015 b3059339-0415-0410-9bf9-f77b7e298cf2
* skip MMX code in rgb32to16 if the size of the input is smaller than theivo2007-04-181-0/+2
| | | | | | | size of the units the MMX code processes git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23014 b3059339-0415-0410-9bf9-f77b7e298cf2
* skip MMX code in rgb32to15 if the size of the input is smaller than theivo2007-04-181-0/+2
| | | | | | | size of the units the MMX code processes git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23013 b3059339-0415-0410-9bf9-f77b7e298cf2
* slightly faster rgb32tobgr32; avoid one add and one cmpivo2007-04-171-18/+17
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23012 b3059339-0415-0410-9bf9-f77b7e298cf2
* New implementation of rgb32tobgr32ivo2007-04-161-41/+58
| | | | | | | | | | | | The previous implementation segfaulted with MMX enabled when fed an image smaller than the size of the units the MMX code processed. The new code: - is faster for MMX, MMX2 and plain C - processes small images correctly - is LGPL git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23009 b3059339-0415-0410-9bf9-f77b7e298cf2
* improve horizontal chroma resolution with palmichael2007-04-152-6/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22994 b3059339-0415-0410-9bf9-f77b7e298cf2
* convert palette to yuv instead of converting each pixel after pal->rgbmichael2007-04-152-14/+25
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22993 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics, expand all tabs to four spaces.ivo2007-04-121-112/+112
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22983 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace huge switch statement by a lookup table.ivo2007-04-121-174/+46
| | | | | | | Add newline to final report. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22982 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics after last commit; remove superfluous bracesivo2007-04-111-6/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22979 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove code duplication in sws_rgb2rgb_init.ivo2007-04-112-116/+36
| | | | | | | | | | | The lists of assignments of all rgbxtoy variants are removed from sws_rgb2rgb_init and replaced by a single list inside the template file. This way, multiple lists are generated by the preprocessor and each list gets its own initialization function. Those are called from the main sws_rgb2rgb_init function, if applicable. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22978 b3059339-0415-0410-9bf9-f77b7e298cf2
* typodiego2007-04-073-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22932 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix crash when trying to convert from or to RGBi (i<15) as in bgr8torgb24cehoyos2007-04-031-0/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22910 b3059339-0415-0410-9bf9-f77b7e298cf2
* Handle proper compilation on Mac OS X.diego2007-03-301-8/+4
| | | | | | | | Fix data alignment bug (the original purpose of the code is unclear, though). patch by Marc Hoffman, mmh pleasantst com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22847 b3059339-0415-0410-9bf9-f77b7e298cf2
* fix full range (jpeg yuv) chromamichael2007-03-183-1/+16
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22713 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add PIX_FMT_PAL8 to isPacked().diego2007-03-081-1/+2
| | | | | | | patch by "Karl H. Beckers", karl.h.beckers gmx net git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22487 b3059339-0415-0410-9bf9-f77b7e298cf2
* a small step toward 4 plane supportmichael2007-03-021-6/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22411 b3059339-0415-0410-9bf9-f77b7e298cf2
* copy src to prevent the user supplied argumet from being changedmichael2007-03-021-1/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22410 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix a possible crash on 64 bit systems when the lumSrcPtr or chrSrcPtrreimar2007-03-011-0/+2
| | | | | | | does not fit in 32 bits. The SWS_ACCURATE_RND is still broken though. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22401 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove useless conditional.diego2007-02-271-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22355 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add av_ prefix to clip functionsreimar2007-02-254-16/+16
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22339 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: typo fixes, usefuLL --> useful and aswell --> as welldiego2007-02-221-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22307 b3059339-0415-0410-9bf9-f77b7e298cf2
* negative stride and h_size-=8 fixmichael2007-02-171-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22247 b3059339-0415-0410-9bf9-f77b7e298cf2
* BGR/RGB4 byte formats as inputmichael2007-02-173-5/+6
| | | | | | | fixing isRGB/BGR() for the byte formats git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22244 b3059339-0415-0410-9bf9-f77b7e298cf2
* pal8 inputmichael2007-02-162-8/+54
| | | | | | | this is not optimized or anything (that is easy to add just use the existing unscaled converters if possible ...) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22236 b3059339-0415-0410-9bf9-f77b7e298cf2
* stray fflush spotted by Aurellu_zero2007-01-281-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22051 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make example and test build and link correctlylu_zero2007-01-281-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22048 b3059339-0415-0410-9bf9-f77b7e298cf2
* av_logifylu_zero2007-01-281-8/+9
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22047 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplify conditional compilation handling.diego2007-01-251-6/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22009 b3059339-0415-0410-9bf9-f77b7e298cf2
* Pass a context to av_log(), when possiblelucabe2007-01-235-73/+78
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21999 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix license headers and FSF postal address.diego2007-01-223-7/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21994 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: typo pallete --> palettediego2007-01-131-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21892 b3059339-0415-0410-9bf9-f77b7e298cf2
* deprecate sws_scale_ordered(), as it now is a duplicate of sws_scale()lucabe2007-01-121-1/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21888 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add "support for both orderings of the slices (top->down / bottom->up)"lucabe2007-01-121-10/+4
| | | | | | | (r15249) to sws_scale() too (until now, it only was in sws_scale_ordered()) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21887 b3059339-0415-0410-9bf9-f77b7e298cf2
* replace some av_malloc();memset(...,0,...) sequences with av_mallocz()lucabe2007-01-061-6/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21835 b3059339-0415-0410-9bf9-f77b7e298cf2
* change all the occurrences of "FFMIN(FFMAX())" to clip_uint8() or clip()lucabe2006-12-263-15/+15
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21776 b3059339-0415-0410-9bf9-f77b7e298cf2
* Mark some variables as possibly unused to avoid warningslucabe2006-12-262-3/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21775 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add some explicit casts to avoid "assignment from incompatible pointer type"lucabe2006-12-262-15/+15
| | | | | | | warnings git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21774 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add some other casts, to remove void pointers arithmeticlucabe2006-12-261-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21773 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add some explicit casts to avoid some warningslucabe2006-12-261-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21772 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove some void pointers arithmeticlucabe2006-12-261-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21771 b3059339-0415-0410-9bf9-f77b7e298cf2
* Clarify that yuv2rgb_init.c cannot be used under LGPLlucabe2006-12-221-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21730 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove useless include (not needed now that libswscale uses libavutil)lucabe2006-12-221-5/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21728 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix compilation of non-MMX code with gcc 2.95lucabe2006-12-201-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21702 b3059339-0415-0410-9bf9-f77b7e298cf2
* Allow to compile swscale's non-SIMD code under the LGPL license.lucabe2006-12-204-14/+428
| | | | | | | | Since mplayer always define CONFIG_GPL, this commit should not change anything for mplayer. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21699 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change "p" asm constraints to "g", since "p" was a no longer necessary hack toreimar2006-11-271-2/+2
| | | | | | | make AMD64 compilation work and ICC can not handle "p". git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21341 b3059339-0415-0410-9bf9-f77b7e298cf2
* Clarify that some of the non-SIMD code is now LGPLed.lucabe2006-11-197-34/+34
| | | | | | | All the authours of such code agreed. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21045 b3059339-0415-0410-9bf9-f77b7e298cf2
* forgotten 2 converters (yeah svn up, svn di svn ci isnt enough i should ↵michael2006-11-161-11/+11
| | | | | | actually look at the code after svn up not just the diff ...) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20962 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixing the lamest bug in swscale, all the rgb/bgr->* code did 2x2 ↵michael2006-11-161-91/+52
| | | | | | downsampling for chroma, it should just be 2x1 (the rest of the code also belived its 2x1 ...) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20961 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove stray newline.diego2006-11-161-12/+12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20959 b3059339-0415-0410-9bf9-f77b7e298cf2
* Synch with ffmpeg's r6938 "allow spaces in source and build directory names..."lucabe2006-11-091-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20816 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix MacIntel build: "/nop" is illegal on Apple's older version of GASgpoirier2006-11-072-10/+6
| | | | | | | | | | Patch by Nigel Pearson % nigel A ind P tansu P com P au % Original thread: Date: Nov 6, 2006 10:43 PM Subject: [Ffmpeg-devel] [PATCH] swscale uses /nop, illegal for old versions of GAS git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20740 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add support for conversions from the rgb565 and rgb555 formatslucabe2006-11-022-1/+94
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20605 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not mix declarations and statements.diego2006-11-011-30/+37
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20600 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use common define for x86_32 and x86_64.diego2006-11-015-21/+21
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20592 b3059339-0415-0410-9bf9-f77b7e298cf2
* 16-bit grayscale supportkostya2006-10-243-3/+94
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20427 b3059339-0415-0410-9bf9-f77b7e298cf2
* Properly set EXTRALIBSlucabe2006-10-231-0/+2
| | | | | | | (fixes compilation of shared libswscale on cygwin and other platforms) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20413 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename ABS macro to FFABS.diego2006-10-111-10/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20169 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move CFLAGS handling to common.mak.diego2006-10-111-4/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20154 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change license headers to say 'FFmpeg' instead of 'this program'.diego2006-10-0711-151/+174
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20100 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace -I.. by -I$(BUILD_ROOT).diego2006-10-071-2/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20094 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplify test program build.diego2006-10-051-3/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20073 b3059339-0415-0410-9bf9-f77b7e298cf2
* Test programs depend on $(LIB).diego2006-10-051-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20059 b3059339-0415-0410-9bf9-f77b7e298cf2
* FFmpeg uses -D_ISOC9X_SOURCE and not -D_GNU_SOURCE in CFLAGS.diego2006-10-041-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20057 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove cs_test and swscale-example on clean.diego2006-10-041-0/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20040 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove redundant EXTRALIBS declaration.diego2006-10-041-1/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20039 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplify compilation call by using $(EXTRALIBS).diego2006-10-041-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20038 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix warnings:diego2006-10-041-0/+2
| | | | | | | | swscale-example.c:87: warning: implicit declaration of function 'sws_format_name' swscale-example.c:214: warning: implicit declaration of function 'sws_rgb2rgb_init' git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20037 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix warnings:diego2006-10-041-1/+2
| | | | | | | | cs_test.c:62: warning: return type defaults to 'int' cs_test.c:64: warning: implicit declaration of function 'memalign' git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20036 b3059339-0415-0410-9bf9-f77b7e298cf2
* make some global var static (fix a build failure with shared lib on x86_64)aurel2006-10-031-12/+12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20024 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix unused variable warning when compiling with MMX disabled.diego2006-10-031-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20021 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused variables.diego2006-10-012-4/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20012 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add support for YUVJ formatslucabe2006-09-271-1/+22
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19993 b3059339-0415-0410-9bf9-f77b7e298cf2
* Improve swscale-example to test conversions between all the possiblelucabe2006-09-241-39/+44
| | | | | | | pixel formats git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19965 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove the dependency of libswscale on img_format.hlucabe2006-09-178-342/+351
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19878 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix t