summaryrefslogtreecommitdiffstats
path: root/postproc/swscale.c
Commit message (Collapse)AuthorAgeFilesLines
* big cosmetics patch, cleanup of messages printed by mplayer and libs.arpi2002-05-201-13/+11
| | | | | | | | some printf->mp_msg conversion, and some debug messages moved from warn/info to v/dbg2 mplayer's output is now shorter, readable and consistent git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6139 b3059339-0415-0410-9bf9-f77b7e298cf2
* various openbsd and general warning fixes - patch by Björn Sandell ↵arpi2002-05-121-0/+2
| | | | | | <biorn@dce.chalmers.se> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6058 b3059339-0415-0410-9bf9-f77b7e298cf2
* printf to mp_msgalbeu2002-05-021-47/+48
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5938 b3059339-0415-0410-9bf9-f77b7e298cf2
* overread in the mmx2 horizontal scaler fixedmichael2002-04-011-33/+130
| | | | | | | 2% faster horizontal mmx2 scaler git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5453 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixing bgr15&16 on big_endianmichael2002-03-211-7/+10
| | | | | | | i doubt that that will fix all big endian problems though, we very likely will have to support RGB & BGR output formats as either bgr32 or bgr15 is rgb depending upon the way rgb/bgr is defined git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5247 b3059339-0415-0410-9bf9-f77b7e298cf2
* use assert.hmichael2002-02-221-2/+8
| | | | | | | more assertions git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4807 b3059339-0415-0410-9bf9-f77b7e298cf2
* 101++michael2002-02-211-1/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4795 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixing bgr32 output on big-endian systemsmichael2002-02-211-0/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4794 b3059339-0415-0410-9bf9-f77b7e298cf2
* unscaled yuv2rgb fix for big-endian systemsmichael2002-02-211-3/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4792 b3059339-0415-0410-9bf9-f77b7e298cf2
* unscaled memcpy variant bugfix (negative strides)michael2002-02-101-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4650 b3059339-0415-0410-9bf9-f77b7e298cf2
* unscaled BGR24 -> YV12michael2002-02-101-0/+24
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4624 b3059339-0415-0410-9bf9-f77b7e298cf2
* bgr24toUV in MMXmichael2002-02-091-0/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4620 b3059339-0415-0410-9bf9-f77b7e298cf2
* bgr24toY in MMXmichael2002-02-091-0/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4613 b3059339-0415-0410-9bf9-f77b7e298cf2
* fastmemcpymichael2002-02-081-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4587 b3059339-0415-0410-9bf9-f77b7e298cf2
* unscaled BGR15->BGR16michael2002-02-081-4/+37
| | | | | | | a few bugfixes of the other unscaled converters git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4582 b3059339-0415-0410-9bf9-f77b7e298cf2
* bgr15 input supportmichael2002-02-081-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4581 b3059339-0415-0410-9bf9-f77b7e298cf2
* bgr16 input supportmichael2002-02-081-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4579 b3059339-0415-0410-9bf9-f77b7e298cf2
* unscaled convertersmichael2002-02-071-1/+81
| | | | | | | | BGR24 -> BGR32 & RGB24 -> RGB32 BGR32 -> BGR24 & RGB32 -> RGB24 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4568 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixing green line at right side bug (reported by Nick Kurshev ↵michael2002-02-071-1/+8
| | | | | | <nickols_k@mail.ru>) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4564 b3059339-0415-0410-9bf9-f77b7e298cf2
* rgb32 & rgb24 input supportmichael2002-02-061-17/+22
| | | | | | | squished a endianness bug in the 15/16bgr output git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4559 b3059339-0415-0410-9bf9-f77b7e298cf2
* 101 (yuv2rgb with mpeg1,...) ;)michael2002-02-061-6/+115
| | | | | | | simple copy if possible (same format, no scaling, ...) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4556 b3059339-0415-0410-9bf9-f77b7e298cf2
* swScale internally uses yuv2rgb now if possiblemichael2002-02-061-2/+42
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4555 b3059339-0415-0410-9bf9-f77b7e298cf2
* printing error messages if something is wrong instead of just return NULL;michael2002-02-041-3/+16
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4530 b3059339-0415-0410-9bf9-f77b7e298cf2
* filterPos bugfix (only nearest neighbor scaling was affected)michael2002-02-031-3/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4493 b3059339-0415-0410-9bf9-f77b7e298cf2
* MMX(2) optimized YUY2 inputmichael2002-02-021-11/+23
| | | | | | | avoid duplicate checks for formats by changeing them (Y8->Y800, IYUV->I420) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4482 b3059339-0415-0410-9bf9-f77b7e298cf2
* printing correct format infomichael2002-02-011-21/+11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4469 b3059339-0415-0410-9bf9-f77b7e298cf2
* YUY2, BGR24, BGR32 input support (no mmx yet)michael2002-02-011-20/+63
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4468 b3059339-0415-0410-9bf9-f77b7e298cf2
* -sws 2 is default nowmichael2002-01-301-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4422 b3059339-0415-0410-9bf9-f77b7e298cf2
* YV12 like formats support (I420/IYUV)michael2002-01-301-123/+142
| | | | | | | bugfixes related to vo_x11 resizeing git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4420 b3059339-0415-0410-9bf9-f77b7e298cf2
* area averageing scaling support (-sws 5) (is identical to bilinear for upscale)michael2002-01-291-8/+17
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4403 b3059339-0415-0410-9bf9-f77b7e298cf2
* nearest neighbor / sdl emulation ;) scaling (-sws 4)michael2002-01-281-2/+25
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4402 b3059339-0415-0410-9bf9-f77b7e298cf2
* minor bugfix in the -v outputmichael2002-01-221-2/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4305 b3059339-0415-0410-9bf9-f77b7e298cf2
* 15/16 bit dithering in C (5% slower, can be disabled by comenting #define ↵michael2002-01-211-21/+111
| | | | | | | | | | | DITHER1XBPP out) x/yInc bugfix (bug was introduced during the global var removial) more emms & no messing with ARCH_X86 (=workaround against not cleared mmx state somewhere) sharpening filter (-ssf cs=<int> & -ssf ls=<int>) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4298 b3059339-0415-0410-9bf9-f77b7e298cf2
* copyright(swscaler) = GPLmichael2002-01-211-8/+19
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4296 b3059339-0415-0410-9bf9-f77b7e298cf2
* a few filters (should be removed/merged when arpis videofilter stuff is ↵michael2002-01-211-23/+90
| | | | | | | | | | | | | finished) -ssf cgb=<float> -> chrominance gaussian blur (nice to improve picture quality) -ssf lgb=<float> -> luminance gaussian blur (dunno what its good for) -ssf chs=<int> -> shift chrominance horizontally -ssf cvs=<int> -> shift chrominance vertically these will only work if the swscaler is used at all git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4295 b3059339-0415-0410-9bf9-f77b7e298cf2
* general convolution filtering of the source picturemichael2002-01-211-86/+366
| | | | | | | dynamic memory allocation for the buffers (needed for the filter stuff) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4291 b3059339-0415-0410-9bf9-f77b7e298cf2
* 101michael2002-01-201-3/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4282 b3059339-0415-0410-9bf9-f77b7e298cf2
* removed global vars so that multiple swscalers can be usedmichael2002-01-201-85/+679
| | | | | | | | | | | experimental upscaling mode (-sws 3) general convolution filters support (unfinished) bugfix for bicubic upscaling assertion checking if defined MP_DEBUG checking of the input/output size instead of segfault if its very large git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4277 b3059339-0415-0410-9bf9-f77b7e298cf2
* mangle for win32 in postprocatmos42002-01-191-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4249 b3059339-0415-0410-9bf9-f77b7e298cf2
* minor bugfixes (noone noticed them)michael2001-12-211-1/+1
| | | | | | | a few more asserts git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3642 b3059339-0415-0410-9bf9-f77b7e298cf2
* print more info if -vmichael2001-12-061-4/+201
| | | | | | | | | use new horizontal mmx scaler instead of old x86asm if mmx2 cant be used (FAST_BILINEAR only) fixed overflow in init function ... using double precission fp now :) using C scaler for the last 1-2 lines if there is a chance to write over the end of the dst array git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3353 b3059339-0415-0410-9bf9-f77b7e298cf2
* vertical cubic/linear scalingmichael2001-12-061-22/+55
| | | | | | | | prints some info (MMX, dstbpp, ...) mainloop rewritten git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3345 b3059339-0415-0410-9bf9-f77b7e298cf2
* horizontal up/downscale linear & cubicmichael2001-12-021-2/+17
| | | | | | | -sws command line option (0 -> fast_bilinear, 1->bilinear, 2->bicubic) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3273 b3059339-0415-0410-9bf9-f77b7e298cf2
* swscaler cleanupmichael2001-11-291-17/+13
| | | | | | | | green line at bottom bugfix green lines in yuv2yuv scaler bugfix git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3210 b3059339-0415-0410-9bf9-f77b7e298cf2
* runtime cpu detection optional (compiles faster)michael2001-11-271-1/+44
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3153 b3059339-0415-0410-9bf9-f77b7e298cf2
* oopsmichael2001-11-261-1/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3137 b3059339-0415-0410-9bf9-f77b7e298cf2
* runtime cpu detectionmichael2001-11-261-1652/+69
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3127 b3059339-0415-0410-9bf9-f77b7e298cf2
* .balign or we´ll align by 64kb on some architecturesmichael2001-11-101-6/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2801 b3059339-0415-0410-9bf9-f77b7e298cf2
* .align 16michael2001-11-101-0/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2800 b3059339-0415-0410-9bf9-f77b7e298cf2
* gcc does optimize writes to non volatile variables away if it didnt know ↵michael2001-11-061-4/+4
| | | | | | that they were read in between git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2751 b3059339-0415-0410-9bf9-f77b7e298cf2
* better ditheringmichael2001-11-061-42/+43
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2749 b3059339-0415-0410-9bf9-f77b7e298cf2
* faster bgr24 outputmichael2001-11-061-3/+114
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2731 b3059339-0415-0410-9bf9-f77b7e298cf2
* only 6 registers usedmichael2001-11-051-7/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2729 b3059339-0415-0410-9bf9-f77b7e298cf2
* green line fix for dstw%8!=0michael2001-11-041-4/+11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2681 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixed warningsmichael2001-11-041-27/+48
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2672 b3059339-0415-0410-9bf9-f77b7e298cf2
* faster bgr15/16michael2001-11-041-50/+28
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2670 b3059339-0415-0410-9bf9-f77b7e298cf2
* right green line bugfix for width not %8==0 (untested -vo vesa doesnt work)michael2001-11-021-1/+12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2639 b3059339-0415-0410-9bf9-f77b7e298cf2
* c speedupmichael2001-10-311-17/+19
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2586 b3059339-0415-0410-9bf9-f77b7e298cf2
* 15/16bit in C speedupmichael2001-10-311-30/+50
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2585 b3059339-0415-0410-9bf9-f77b7e298cf2
* c optimizationsmichael2001-10-301-24/+75
| | | | | | | bugfix git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2577 b3059339-0415-0410-9bf9-f77b7e298cf2
* c optimizationsmichael2001-10-301-17/+68
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2576 b3059339-0415-0410-9bf9-f77b7e298cf2
* c optimizations (array is faster than pointer) (16bpp variants tested and 2% ↵michael2001-10-301-18/+9
| | | | | | faster) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2573 b3059339-0415-0410-9bf9-f77b7e298cf2
* interpolate chrominance for every second line in the 1:1 vertical scale functionmichael2001-10-301-41/+153
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2570 b3059339-0415-0410-9bf9-f77b7e298cf2
* bugfixesmichael2001-10-301-7/+9
| | | | | | | small speedup for the non x86 stuff git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2567 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixed a warningmichael2001-10-291-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2541 b3059339-0415-0410-9bf9-f77b7e298cf2
* patch from Martin Decky <deckm1am@ss1000.ms.mff.cuni.cz> applied and ↵michael2001-10-291-2/+5
| | | | | | unnecassery "memory" removed git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2535 b3059339-0415-0410-9bf9-f77b7e298cf2
* tell the c compiler that the memory changedmichael2001-10-281-0/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2522 b3059339-0415-0410-9bf9-f77b7e298cf2
* 3dnow prefetch & sfencemichael2001-10-281-26/+11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2521 b3059339-0415-0410-9bf9-f77b7e298cf2
* yv12 to yv12 scalermichael2001-10-281-21/+40
| | | | | | | someone who knows a bit about vo_odivx could add support for it ... git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2520 b3059339-0415-0410-9bf9-f77b7e298cf2
* yuv2rgb bugfixmichael2001-10-281-31/+31
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2504 b3059339-0415-0410-9bf9-f77b7e298cf2
* a few warning fixes (missing #include's)pl2001-10-251-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2477 b3059339-0415-0410-9bf9-f77b7e298cf2
* downscalemichael2001-10-251-279/+326
| | | | | | | fixed some warnings git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2470 b3059339-0415-0410-9bf9-f77b7e298cf2
* BGR24 bugfixmichael2001-10-211-5/+5
| | | | | | | BGR15 & BGR24 tested git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2327 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixed alignment (static variables where sometimes not 8-byte aligned)michael2001-10-201-289/+888
| | | | | | | | | | added half uv interpolation support added prefetch BGR15 support in MMX (untested) (so BGR15,16,24,32 are supported) special unscaled height version (not much faster but it doesnt interpolate uv vertically) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2317 b3059339-0415-0410-9bf9-f77b7e298cf2
* first line bug fixed (happend if the image was scaled down or 1:1)michael2001-10-191-2/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2298 b3059339-0415-0410-9bf9-f77b7e298cf2
* horizontal scaling bugs fixed, should be mostly bugfree nowmichael2001-10-191-25/+28
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2280 b3059339-0415-0410-9bf9-f77b7e298cf2
* xinc scaled by 16 instead of 8arpi2001-10-191-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2275 b3059339-0415-0410-9bf9-f77b7e298cf2 <