summaryrefslogtreecommitdiffstats
path: root/postproc/swscale.c
Commit message (Collapse)AuthorAgeFilesLines
* Move postproc ---> libswscalelucabe2006-06-301-2707/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18866 b3059339-0415-0410-9bf9-f77b7e298cf2
* ng the fix for vCCoeffsBank patch by (Alan Curry <pacman TheWorld com>)michael2006-02-161-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17633 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move the v{Y,C}CoeffsBank vectors into the SwsContext, filling them in justdiego2006-02-111-0/+25
| | | | | | | | | once when the scaler is initialized, instead of building them and freeing them over and over. This gives massive performance improvements. patch by Alan Curry, pacman*at*TheWorld*dot*com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17589 b3059339-0415-0410-9bf9-f77b7e298cf2
* Patch by Stefan Huehner / stefan % huehner ! org \rathann2006-02-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | patch replaces '()' for the correct '(void)' in function declarations/prototypes which have no parameters. The '()' syntax tell thats there is a variable list of arguments, so that the compiler cannot check this. The extra CFLAG '-Wstrict-declarations' shows those cases. Comments about a similar patch applied to ffmpeg: That in C++ these mean the same, but in ANSI C the semantics are different; function() is an (obsolete) K&R C style forward declaration, it basically means that the function can have any number and any types of parameters, effectively completely preventing the compiler from doing any sort of type checking. -- Erik Slagter Defining functions with unspecified arguments is allowed but bad. With arguments unspecified the compiler can't report an error/warning if the function is called with incorrect arguments. -- Måns Rullgård git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17567 b3059339-0415-0410-9bf9-f77b7e298cf2
* AltiVec operations need to have memory aligned on 16-byte boundaries.diego2006-02-081-3/+5
| | | | | | | patch by Alan Curry, pacman at world dot std dot com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17559 b3059339-0415-0410-9bf9-f77b7e298cf2
* change sws sharpen filter a littlemichael2006-02-041-29/+18
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17531 b3059339-0415-0410-9bf9-f77b7e298cf2
* Update licensing information: The FSF changed postal address.diego2006-01-131-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17368 b3059339-0415-0410-9bf9-f77b7e298cf2
* Unify include paths, -I.. is in CFLAGS.diego2005-11-141-6/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16986 b3059339-0415-0410-9bf9-f77b7e298cf2
* 100l -- mismatched type after changing sizes to type long!rfelker2005-10-171-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16784 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reduce unnecessary swscaler verbosity.diego2005-09-061-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16405 b3059339-0415-0410-9bf9-f77b7e298cf2
* Should fix altivec detection for g3 system.nplourde2005-05-201-4/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15524 b3059339-0415-0410-9bf9-f77b7e298cf2
* check for negative strides before memcpyhenry2005-04-241-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15250 b3059339-0415-0410-9bf9-f77b7e298cf2
* support for both orderings of the slices (top->down / bottom->up)henry2005-04-241-4/+28
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15249 b3059339-0415-0410-9bf9-f77b7e298cf2
* 100l, forgot to change an ifdef on last commitreimar2005-02-231-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14784 b3059339-0415-0410-9bf9-f77b7e298cf2
* fix for MAP_ANON vs. MAP_ANONYMOUS fix...reimar2005-02-221-1/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14762 b3059339-0415-0410-9bf9-f77b7e298cf2
* Improved NV12/NV21 support.syrjala2005-02-161-4/+70
| | | | | | | | | | | - Fixed PlanarToNV12Wrapper() and made it handle NV21. - Added yuv2nv12XinC() to handle software scaling. - Added NV12/NV21 handling to various places. - Removed NV12 from vf_hue and vf_spp as they don't look like they can actually handle it. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14716 b3059339-0415-0410-9bf9-f77b7e298cf2
* FreeBSD fixnexus2005-02-141-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14699 b3059339-0415-0410-9bf9-f77b7e298cf2
* Compile fix on non-x86reimar2005-02-011-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14631 b3059339-0415-0410-9bf9-f77b7e298cf2
* makes funnyCode pages executable (for CPU with NX bit)aurel2005-01-311-0/+22
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14626 b3059339-0415-0410-9bf9-f77b7e298cf2
* fix few x86_64 registers handlingaurel2005-01-211-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14557 b3059339-0415-0410-9bf9-f77b7e298cf2
* adapting existing mmx/mmx2/sse/3dnow optimizations so they work on x86_64aurel2004-10-211-48/+48
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13721 b3059339-0415-0410-9bf9-f77b7e298cf2
* postproc/yuv2rgb_altivec.c compile fixmichael2004-10-051-1/+1
| | | | | | | | | yuv2rgb_altivec_init_tables does initialize the SwsContext vectors. missing vec_splat. patch by (Luca Barbato <lu_zero at gentoo dot org>) and (Romain Dolbeau <dolbeau at irisa dot fr>) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13565 b3059339-0415-0410-9bf9-f77b7e298cf2
* passing an array or double precission parameters for the scaling function, ↵michael2004-09-181-17/+24
| | | | | | | | | instead of missusing a few bits of the flags fixing the naming of the scaling functions a little git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13374 b3059339-0415-0410-9bf9-f77b7e298cf2
* fix altivec.h inclusion (vector keyword in structure)alex2004-07-171-3/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12839 b3059339-0415-0410-9bf9-f77b7e298cf2
* Altivec unscaled YV12 -> packed YUV patch by (Romain Dolbeau <dolbeau at ↵michael2004-07-061-0/+12
| | | | | | irisa dot fr>) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12769 b3059339-0415-0410-9bf9-f77b7e298cf2
* altivec yuv->rgb convertermichael2004-06-271-1/+4
| | | | | | | | | | | | | orginal patch by (Marc Hoffman <mmh at pleasantst dot com>) critical fixes by (Reza Jelveh <reza.jelveh at tu-harburg dot de>) known bugs/issues, which should be fixed ASAP by someone who has a ppc: 0..255 vs. 16..235 unneeded recalculation of tables general cleaup, like removing double initalizing of variables git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12699 b3059339-0415-0410-9bf9-f77b7e298cf2
* this isn't actually stupid, but it's not valid C and gcc 3.5 rejects it as suchrfelker2004-05-011-6/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12386 b3059339-0415-0410-9bf9-f77b7e298cf2
* attribute_used patch by (matthieu castet <castet.matthieu at free dot fr>)michael2004-04-261-27/+27
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12302 b3059339-0415-0410-9bf9-f77b7e298cf2
* AltiVec hScale, all size patch by (Romain Dolbeau <dolbeaur at club-internet ↵michael2004-04-061-9/+33
| | | | | | dot fr>) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12131 b3059339-0415-0410-9bf9-f77b7e298cf2
* altivec swscale under Linux patch by (Magnus Damm <damm at opensource dot se>)michael2004-03-141-0/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12024 b3059339-0415-0410-9bf9-f77b7e298cf2
* AltiVec support in postproc/ + altivec optimizations for yuv2yuvX patch by ↵michael2004-03-111-2/+30
| | | | | | (Romain Dolbeau <dolbeau at irisa dot fr>) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12018 b3059339-0415-0410-9bf9-f77b7e298cf2
* 1000lmichael2003-11-061-1/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11407 b3059339-0415-0410-9bf9-f77b7e298cf2
* -sws 0 && -ssf chs fixedmichael2003-11-041-11/+12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11380 b3059339-0415-0410-9bf9-f77b7e298cf2
* minimum slice size fix (fixes 422P 1 line per slice, used by huffyuv)michael2003-10-221-4/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11214 b3059339-0415-0410-9bf9-f77b7e298cf2
* dither scaling coefficients so they add up to 1.0michael2003-10-151-1/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11124 b3059339-0415-0410-9bf9-f77b7e298cf2
* rounding fixesmichael2003-10-151-10/+11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11123 b3059339-0415-0410-9bf9-f77b7e298cf2
* uyvy output support in swscaleralex2003-10-091-4/+33
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11069 b3059339-0415-0410-9bf9-f77b7e298cf2
* many small typo and grammar fixesgabucino2003-10-041-8/+8
| | | | | | | Based on Bernard Leak's mail <bernard 4t brenda-arkle.demon.co.uk> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11001 b3059339-0415-0410-9bf9-f77b7e298cf2
* srcSliceY % 4 != 0 fixmichael2003-09-261-1/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10953 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixing "internal error in orderYUV" bugmichael2003-06-191-1/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10313 b3059339-0415-0410-9bf9-f77b7e298cf2
* unusedalex2003-06-011-4/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10236 b3059339-0415-0410-9bf9-f77b7e298cf2
* removed the last mp_msg :)alex2003-05-011-8/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10047 b3059339-0415-0410-9bf9-f77b7e298cf2
* remove remaining cpudetect dependancymichael2003-04-251-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9988 b3059339-0415-0410-9bf9-f77b7e298cf2
* moving getFilter stuff back (vf_scale.c -> swscale.c)michael2003-04-251-1/+73
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9986 b3059339-0415-0410-9bf9-f77b7e298cf2
* removing sws - global verbose var dependancymichael2003-04-241-202/+54
| | | | | | | | removing sws - cpudetect dependancy (note rgb2rgb still needs it) moving mplayer specific stuff from swscale.c -> vf_scale.c git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9976 b3059339-0415-0410-9bf9-f77b7e298cf2
* mplayer idependant (not really yet) swscale examplemichael2003-04-171-133/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9922 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10lmichael2003-03-271-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9699 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10000l (YUV vs. YVU swscale fix/cleanup)michael2003-03-271-39/+43
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9698 b3059339-0415-0410-9bf9-f77b7e298cf2
* cleanupmichael2003-02-241-14/+13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9500 b3059339-0415-0410-9bf9-f77b7e298cf2
* sws_ prefix, more seperation between internal & external swscaler APImichael2003-02-231-80/+95
| | | | | | | sws_scale() returns the number of outputed lines git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9495 b3059339-0415-0410-9bf9-f77b7e298cf2
* yuv2rgb brightness/contrast/saturation/different colorspaces support finishedmichael2003-02-211-62/+65
| | | | | | | | | yuv2rgb deglobalize yuv2rgb optimizations / cleanup bugs? git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9477 b3059339-0415-0410-9bf9-f77b7e298cf2
* cleanupmichael2003-02-181-84/+20
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9456 b3059339-0415-0410-9bf9-f77b7e298cf2
* brightness / saturation / contrast / different yuv colorspace support for ↵michael2003-02-131-10/+48
| | | | | | some yuv2rgb converters (many converters still ignore it) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9417 b3059339-0415-0410-9bf9-f77b7e298cf2
* cleanupmichael2003-02-131-18/+9
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9414 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10l found by (Dominik Mierzejewski <dominik at rangers dot eu dot org>)michael2003-02-011-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9189 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixing rgb4 & bgr4 (2 pixels per byte)michael2003-01-301-0/+22
| | | | | | | adding bg4b & rg4b (1 pixel per byte) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9172 b3059339-0415-0410-9bf9-f77b7e298cf2
* UYVY inputmichael2003-01-231-4/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9072 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10lmichael2002-11-041-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8100 b3059339-0415-0410-9bf9-f77b7e298cf2
* verbose can be negativearpi2002-11-011-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8028 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixing yuy2 upscaling (use -sws 0 for the faster but uglier variant)michael2002-10-131-10/+11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7726 b3059339-0415-0410-9bf9-f77b7e298cf2
* mmx yuy2 outputmichael2002-10-131-10/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7724 b3059339-0415-0410-9bf9-f77b7e298cf2
* yuy2 output supportmichael2002-10-131-8/+37
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7721 b3059339-0415-0410-9bf9-f77b7e298cf2
* planar yuv 444 422 411 supportmichael2002-08-011-3/+19
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6864 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixing sinc filter (seems the problem was caused by rounding in pmulhw -> ↵michael2002-07-091-4/+10
| | | | | | | | | | solution use shorter filter, its long and slow enough anyway) some typos some warning fixes git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6680 b3059339-0415-0410-9bf9-f77b7e298cf2
* more scaling algosmichael2002-07-041-46/+95
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6638 b3059339-0415-0410-9bf9-f77b7e298cf2
* using the new rgb2rgb converters (the LQ ones are only used if -sws 0 or -sws 4)michael2002-06-301-352/+140
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6617 b3059339-0415-0410-9bf9-f77b7e298cf2
* yvu9 -> yv12 unscaled converter with linear chroma scalingmichael2002-06-271-2/+40
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6583 b3059339-0415-0410-9bf9-f77b7e298cf2
* -sws 6 (luma bicubic & chroma bilinear)michael2002-06-271-5/+14
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6581 b3059339-0415-0410-9bf9-f77b7e298cf2
* use unified yuv2rgb initmichael2002-06-271-244/+355
| | | | | | | {RGB,BGR}{1,4,8,15,16,24,32} output supported git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6579 b3059339-0415-0410-9bf9-f77b7e298cf2
* killing globalsmichael2002-06-241-5/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6555 b3059339-0415-0410-9bf9-f77b7e298cf2
* 100l (non mmx versions didnt compile)michael2002-06-241-21/+33
| | | | | | | some cleanup git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6541 b3059339-0415-0410-9bf9-f77b7e298cf2
* IF09 is alias for YVU9 (actually it has extra 4th plane containing MC changearpi2002-06-231-2/+3
| | | | | | | | flags, but it doesn't matter for now) - IF09 is supported by win32 Indeo codecs and by some others too git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6536 b3059339-0415-0410-9bf9-f77b7e298cf2
* yvu9 support (other planar yuv formats with other chroma subsamplings should ↵michael2002-06-231-60/+70
| | | | | | | | | | be trivial to add, if they had a IMGFMT) disabled broken (=new) converters (they cause random sig11) various bugfixes git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6533 b3059339-0415-0410-9bf9-f77b7e298cf2
* cleanupmichael2002-06-231-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6521 b3059339-0415-0410-9bf9-f77b7e298cf2
* selftest supportmichael2002-06-231-29/+179
| | | | | | | bugfixes git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6518 b3059339-0415-0410-9bf9-f77b7e298cf2
* cleanup & grayscale supportmichael2002-06-221-117/+83
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6504 b3059339-0415-0410-9bf9-f77b7e298cf2
* sync with mplayer xparpi2002-06-221-81/+450
| | | |