summaryrefslogtreecommitdiffstats
path: root/libswscale/swscale.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix 64 bit shared library compilation with MMX2 by properly using PIC mangling.diego2008-03-221-8/+8
| | | | | | | patch by Alexander Strange, astrange ithinksw com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26270 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove redundant ARCH_POWERPC #ifdef around HAVE_ALTIVEC.diego2008-03-181-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26264 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix a typo that causes an assertion to always fail.zuxy2008-03-171-1/+1
| | | | | | | Reported by Alexander Bokovikov (openworld AT uralweb DOT ru) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26257 b3059339-0415-0410-9bf9-f77b7e298cf2
* typosdiego2008-03-121-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26228 b3059339-0415-0410-9bf9-f77b7e298cf2
* typodiego2008-03-101-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26212 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make av_class a pointer to const.benoit2008-03-101-1/+1
| | | | | | | Patch by Takis. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26210 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove redundant swScaler: output from places where av_log()diego2008-03-101-4/+4
| | | | | | | properly prints the context anyway. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26207 b3059339-0415-0410-9bf9-f77b7e298cf2
* change sws_format_name to return const char*, supress many warningsbcoudurier2008-03-061-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26183 b3059339-0415-0410-9bf9-f77b7e298cf2
* remove redundant SwScaler text since av_log uses AVClass contextbcoudurier2008-03-061-37/+37
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26182 b3059339-0415-0410-9bf9-f77b7e298cf2
* One more (forgotten) fix for fixing sws_flags.michael2008-03-051-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26166 b3059339-0415-0410-9bf9-f77b7e298cf2
* Turn ancient V offset numerical constants into named ones.michael2008-03-051-10/+16
| | | | | | | | Add a check that checks that the width is within the chosen constant. This might have been exploitable. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26165 b3059339-0415-0410-9bf9-f77b7e298cf2
* Discard two symbols from libswscale.cehoyos2008-02-221-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26060 b3059339-0415-0410-9bf9-f77b7e298cf2
* More explicit unsupported pixel format error messages.benoit2008-02-151-2/+2
| | | | | | | Patch by Stefano Sabatini: stefano sabatini (minus) lala % poste it git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25999 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make dither4 & dither8 const.cehoyos2008-02-091-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25967 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make some assembler constants global instead of declaring them multiple times.reimar2008-01-291-13/+13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25910 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use DECLARE_ASM_CONST where possible in libswscale codereimar2008-01-281-26/+26
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25903 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix typo in commentreimar2008-01-211-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25829 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change (a == NULL) condition to (!a) and (a != NULL) condition to (a).benoit2008-01-171-13/+13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25780 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cosmetics: whitespacesbenoit2008-01-171-5/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25778 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove non cosmetic spaces inside parentheses.benoit2008-01-171-8/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25777 b3059339-0415-0410-9bf9-f77b7e298cf2
* Description: remove superfluous parentheses.benoit2008-01-171-5/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25776 b3059339-0415-0410-9bf9-f77b7e298cf2
* Check param in sws_getCachedContext().benoit2008-01-171-1/+6
| | | | | | | | | Patch by KO Myung-Hun komh chollian net Original thread: [FFmpeg-devel] [PATCH] param check in sws_getCachedContext() Date: Wed Jan 9 11:15:19 CET 2008 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25775 b3059339-0415-0410-9bf9-f77b7e298cf2
* comment typo fixesdiego2007-12-211-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25485 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make sure strides have positive values before converting.benoit2007-12-201-1/+1
| | | | | | | Patch by Peter Schlaile: peter schlaile de git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25467 b3059339-0415-0410-9bf9-f77b7e298cf2
* Revert wrong ARCH_BFIN --> HAVE_BFIN change.diego2007-09-271-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24627 b3059339-0415-0410-9bf9-f77b7e298cf2
* add support for yuva420p colorspace (yuv420p + alpha)aurel2007-09-241-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24601 b3059339-0415-0410-9bf9-f77b7e298cf2
* renaming ARCH_BFIN to HAVE_BFINmhoffman2007-08-311-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24309 b3059339-0415-0410-9bf9-f77b7e298cf2
* typodiego2007-07-281-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23889 b3059339-0415-0410-9bf9-f77b7e298cf2
* use YUV440P in swscalebenoit2007-07-181-0/+10
| | | | | | | | | patch by Andreas Öman: \andreas olebyn nu/ original thread: [FFmpeg-devel] half vertical chroma resolution from JPEGs.. date: 07/03/2007 01:29 PM git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23811 b3059339-0415-0410-9bf9-f77b7e298cf2
* license header consistency cosmeticsdiego2007-07-051-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23722 b3059339-0415-0410-9bf9-f77b7e298cf2
* integrating ff_bfin_get_unscaled_swscale into the systemmhoffman2007-06-221-0/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23605 b3059339-0415-0410-9bf9-f77b7e298cf2
* misc spelling fixesdiego2007-06-131-6/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23556 b3059339-0415-0410-9bf9-f77b7e298cf2
* rename attribute_unused to av_unused as it is declared in common.hbenoit2007-05-301-1/+1
| | | | | | | | | | patch by Carl Eugen Hoyos cehoyos chez ag or at original thread: [FFmpeg-devel] [PATCH] attribute_unused -> av_unused date: 05/29/2007 01:23 PM git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23418 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove redundant fastmemcpy.h #include, it is indirectly #included by avutil.h.diego2007-05-281-3/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23400 b3059339-0415-0410-9bf9-f77b7e298cf2
* ffmpeg -sws_flags command line option to set swscaler flagsivo2007-05-231-1/+34
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23379 b3059339-0415-0410-9bf9-f77b7e298cf2
* Blackfin optimized YUV420 to RGB CSC Color Space Converters.gpoirier2007-05-131-1/+3
| | | | | | | | | | | | YUV2 -> RGB BGR for 565, 555 and 888 a.k.a. 24bit color. Speed-up compared to C version compiled with -O3 187.28% Patch by Marc Hoffman %mmh A pleasantst P com% Original thread: Date: May 9, 2007 2:46 AM Subject: [FFmpeg-devel] PATCH BlackFin yuv2rgb color space conversion git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23307 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics; one test per line for all isXXX(x) macrosivo2007-05-111-16/+48
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23296 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: indentation after previous patchbenoit2007-05-021-13/+13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23207 b3059339-0415-0410-9bf9-f77b7e298cf2
* test if color conv fonction exists prior to using itbenoit2007-05-021-0/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23206 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics attack, part II: Remove all tabs and prettyprint/reindent the code.diego2007-04-291-2179/+2178
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23173 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: Remove trailing whitespace.diego2007-04-261-51/+51
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23147 b3059339-0415-0410-9bf9-f77b7e298cf2
* improve horizontal chroma resolution with palmichael2007-04-151-1/+4
| | | | 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-151-5/+22
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22993 b3059339-0415-0410-9bf9-f77b7e298cf2
* typodiego2007-04-071-1/+1
| | | | 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
* fix full range (jpeg yuv) chromamichael2007-03-181-1/+6
| | | | 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
* Add av_ prefix to clip functionsreimar2007-02-251-9/+9
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22339 b3059339-0415-0410-9bf9-f77b7e298cf2
* BGR/RGB4 byte formats as inputmichael2007-02-171-1/+2
| | | | | | | 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-161-2/+3
| | | | | | | 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
* Pass a context to av_log(), when possiblelucabe2007-01-231-54/+61
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21999 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-261-9/+9
| | | | 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-261-1/+1
| | | | 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-261-12/+12
| | | | | | | warnings git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21774 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
* Allow to compile swscale's non-SIMD code under the LGPL license.lucabe2006-12-201-10/+12
| | | | | | | | 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
* Clarify that some of the non-SIMD code is now LGPLed.lucabe2006-11-191-2/+2
| | | | | | | All the authours of such code agreed. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21045 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
* Add support for conversions from the rgb565 and rgb555 formatslucabe2006-11-021-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20605 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use common define for x86_32 and x86_64.diego2006-11-011-12/+12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20592 b3059339-0415-0410-9bf9-f77b7e298cf2
* 16-bit grayscale supportkostya2006-10-241-0/+88
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20427 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
* Change license headers to say 'FFmpeg' instead of 'this program'.diego2006-10-071-19/+21
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20100 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
* Remove the dependency of libswscale on img_format.hlucabe2006-09-171-195/+158
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19878 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix the PIX_FMT_* ---> IMGFMT_* conversion (PIX_FMT_RGB32 is IMGFMT_BGR32)lucabe2006-09-171-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19875 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add sws_getCachedContext(), which checks if context is valid or reallocs a ↵gpoirier2006-09-041-0/+34
| | | | | | | | | | | | new one instead. Patch by Victor Paesa <wzrlpy@arsystel.com> Original thread: Date: Aug 31, 2006 7:15 PM Subject: [Ffmpeg-devel] [PATCH] Add sws_getCachedContext() to swscale library git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19667 b3059339-0415-0410-9bf9-f77b7e298cf2
* make the C code of the swscaler which i wrote LGPLmichael2006-08-301-0/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19600 b3059339-0415-0410-9bf9-f77b7e298cf2
* Explicitly include libmpcodecs/img_format.h and libvo/fastmemcpy.h.diego2006-08-181-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19437 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use COMPILE_MMX2 instead of HAVE_MMX2 to determine whether to compileuau2006-08-121-4/+4
| | | | | | | | | MMX2 code, because the HAVE_ defines do not have sane values here if runtime cpudetection is used. Hopefully fixes runtime cpudetection breakage from r19339. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19374 b3059339-0415-0410-9bf9-f77b7e298cf2
* Another PIX_FMT_ ---> IMGFMT_ conversionlucabe2006-08-051-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19342 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not assemble MMX, MMX2 or 3DNOW code unconditionally on X86 and X86_64.diego2006-08-051-5/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19339 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add support for ffmpeg's pixel format names in libswscalelucabe2006-07-311-0/+22
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19276 b3059339-0415-0410-9bf9-f77b7e298cf2
* Comment some #endif lines.diego2006-07-281-6/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19211 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace MIN() and MAX() with FFMIN() and FFMAX()lucabe2006-07-261-17/+14
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19186 b3059339-0415-0410-9bf9-f77b7e298cf2
* vertical scaler with accurate rounding, some people on doom9 can see +-1 errorsmichael2006-07-241-1/+11
| | | | | | | | the +-1 issue is limited to >2tap vertical filters, so bilinear upscale was unaffected the new code is sometime faster sometimes slower but the difference is significant (~20%) so its optional and enabled with arnd=1 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19177 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix typo introduced in the memalign->av_malloc conversion (there is nopacman2006-07-231-1/+1
| | | | | | | mv_malloc) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19174 b3059339-0415-0410-9bf9-f77b7e298cf2
* Missing part of the malloc -> av_malloc patch: memalign must be replaced as ↵reimar2006-07-231-28/+28
| | | | | | well! git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19173 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use libavutil in libswscale, and allow it to be built out of the mplayer treelucabe2006-07-201-57/+73
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19148 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move postproc ---> libswscalelucabe2006-06-301-0/+2707
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18866 b3059339-0415-0410-9bf9-f77b7e298cf2