summaryrefslogtreecommitdiffstats
path: root/libswscale/swscale.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove g6Dither from libswscale.cehoyos2008-10-041-1/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27715 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix infinite loop with spline, bug was introduced in r27612 by me.michael2008-09-291-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27669 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix segfault with rgb24 and full_internal_chroma due to non-existing alphamichael2008-09-161-2/+7
| | | | | | | byte being written after the array. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27628 b3059339-0415-0410-9bf9-f77b7e298cf2
* Avoid using floating point for calculating filter coefficients.michael2008-09-151-81/+83
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27612 b3059339-0415-0410-9bf9-f77b7e298cf2
* Avoid some explicit types in sizeof().michael2008-09-141-6/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27611 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use av_mallocz() instead of for() =0;michael2008-09-141-2/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27610 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move dither tables from yuv2rgb to swscale, they have been written by me andmichael2008-09-141-5/+106
| | | | | | | can be used under LGPL. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27609 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename yuv2rgb variables to avoid name clashes with the ones used by bfin asm.michael2008-09-131-11/+11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27599 b3059339-0415-0410-9bf9-f77b7e298cf2
* Ensure that additional filter coeffs that exist due to alignmentmichael2008-09-131-0/+2
| | | | | | | are 0 if bitexact mode is requested. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27595 b3059339-0415-0410-9bf9-f77b7e298cf2
* yvu9toyv12Wrapper is not bitexact so disable it when the user wantsmichael2008-09-121-1/+1
| | | | | | | bitexactness to C. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27594 b3059339-0415-0410-9bf9-f77b7e298cf2
* The yuv->rgb tables are too small for cliping to be avoidable,michael2008-09-121-1/+1
| | | | | | | | | thus revert the respective optimization. The table generator code has to be rewritten anyway one day by some volunteer because its not LGPL, fixing the GPL table generator thus seems like wasted time. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27591 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add support for PIX_FMT_YUV440P.michael2008-09-121-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27589 b3059339-0415-0410-9bf9-f77b7e298cf2
* Support mono as input format.michael2008-09-121-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27587 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add support for PIX_FMT_MONOWHITE as output format.michael2008-09-121-5/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27586 b3059339-0415-0410-9bf9-f77b7e298cf2
* rgb24toyv12 is not accurately rounding, so disable it as well when themichael2008-09-121-1/+1
| | | | | | | user asks for accurate rounding. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27585 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not use the unscaled yuv->rgb converters if SWS_ACCURATE_RND is set,michael2008-09-121-1/+2
| | | | | | | because they do not accurately round. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27584 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove mistakely commited code i used for testing.michael2008-09-111-7/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27581 b3059339-0415-0410-9bf9-f77b7e298cf2
* Implement full horizontal chroma for rgb/bgr24/32 output. michael2008-09-111-1/+87
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27580 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not do unneeded clipping in YSCALE_YUV_2_PACKEDX_C.michael2008-09-111-2/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27579 b3059339-0415-0410-9bf9-f77b7e298cf2
* Factorize yuv2packedXinC().michael2008-09-111-225/+55
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27578 b3059339-0415-0410-9bf9-f77b7e298cf2
* Set rgb2yuv constants more accurately, makes no real difference though.michael2008-09-111-9/+9
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27577 b3059339-0415-0410-9bf9-f77b7e298cf2
* Correct normalization constant for the vertical filter.michael2008-09-101-2/+2
| | | | | | | | I am not completely sure why this was at such an incorrect value, but I could not find any problems when it was set correctly. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27575 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change RGB2YUV_SHIFT from 16 to 15 to make it able to workmichael2008-09-101-1/+1
| | | | | | | with 16bit signed constants (like SIMD might use). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27568 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make SWS_FULL_CHR_H_INP work.michael2008-09-101-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27564 b3059339-0415-0410-9bf9-f77b7e298cf2
* More accurate rounding for 8bit inputs.michael2008-09-091-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27562 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rewrite bgr24->yuv mmx code, the new code is cleaner, more accurate,michael2008-09-091-1/+16
| | | | | | | and does not throw half the chroma away. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27561 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add table of rgb->yuv conversion coefficients.michael2008-09-091-0/+11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27558 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix jpeg yuv.michael2008-09-081-2/+2
| | | | | | | Fixes issue504. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27547 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix accurate rounding mode on x86_64.michael2008-09-071-1/+1
| | | | | | | Fixes issue222. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27545 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make fast bilinear scaler work again.michael2008-09-071-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27543 b3059339-0415-0410-9bf9-f77b7e298cf2
* simplify function selection codebcoudurier2008-09-051-6/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27528 b3059339-0415-0410-9bf9-f77b7e298cf2
* enable yuv422p to uyvy converterbcoudurier2008-09-051-0/+26
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27527 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make 16bit grayscale output work.michael2008-09-041-1/+70
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27524 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix SWS_FAST_BILINEAR and SWS_POINT with some unscaled rgb<->bgr converters.michael2008-09-041-7/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27523 b3059339-0415-0410-9bf9-f77b7e298cf2
* Support PIX_FMT_RGB32_1 and PIX_FMT_BGR32_1.michael2008-09-041-4/+15
| | | | | | | Fixes issue248. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27522 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix 4 and 8 bit RGB/BGR input.michael2008-09-041-9/+34
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27521 b3059339-0415-0410-9bf9-f77b7e298cf2
* Implement swscale_version().stefano2008-08-291-0/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27492 b3059339-0415-0410-9bf9-f77b7e298cf2
* fix memleakmichael2008-07-211-4/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27332 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cleanup, use av_freep() instead of av_free(x); x=NULLmichael2008-07-211-46/+22
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27331 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10l forgot SWS_BILINEARmichael2008-07-171-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27318 b3059339-0415-0410-9bf9-f77b7e298cf2
* Ensure that exactly one scaler algo is used.michael2008-07-171-0/+17
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27317 b3059339-0415-0410-9bf9-f77b7e298cf2
* Split AVOption/AVClass in a separate file. SoC Patch from Keiji Costantinilu_zero2008-07-091-39/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27244 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove ASSERT() macro. SoC Patch from Keiji Costantinilu_zero2008-07-061-15/+9
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27214 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reindent. SoC Patch from Keiji Costantinilu_zero2008-07-061-45/+42
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27213 b3059339-0415-0410-9bf9-f77b7e298cf2
* Split simpleCopy into packedCopy and planarCopy. SoC Patch from Keiji Costantinilu_zero2008-07-061-8/+14
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27212 b3059339-0415-0410-9bf9-f77b7e298cf2
* cast to correct type, suppress warningsbcoudurier2008-06-011-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26949 b3059339-0415-0410-9bf9-f77b7e298cf2
* cast to correct type, suppress warningsbcoudurier2008-06-011-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26948 b3059339-0415-0410-9bf9-f77b7e298cf2
* cast to correct type, suppress warningbcoudurier2008-06-011-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26947 b3059339-0415-0410-9bf9-f77b7e298cf2
* add const, suppress warningsbcoudurier2008-06-011-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26945 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove in_asm_used_var_warning_killer()superdump2008-05-091-10/+0
| | | | | | | Patch by Keiji Costantini ( strites gmail com ) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26706 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use full path for #includes from another directory.diego2008-05-091-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26702 b3059339-0415-0410-9bf9-f77b7e298cf2
* 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