Statistics
| Branch: | Revision:

ffmpeg / postproc / swscale.c @ c7a810cc

History | View | Annotate | Download (70.8 KB)

# Date Author Comment
c7a810cc 06/23/2002 10:36 AM Michael Niedermayer

selftest support
bugfixes

Originally committed as revision 6518 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

44c1035c 06/22/2002 08:37 PM Michael Niedermayer

cleanup & grayscale support

Originally committed as revision 6504 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

0d9f3d85 06/22/2002 08:49 AM Arpi

sync with mplayer xp
- partial yvu9 support (copy only)
- rgb 15/16 > 24/32 converters
int->unsigned changes

Originally committed as revision 6493 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

5eee1aed 05/20/2002 03:25 AM Arpi

big cosmetics patch, cleanup of messages printed by mplayer and libs.
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

Originally committed as revision 6139 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

b6acbc3c 05/12/2002 02:18 AM Björn Sandell

various openbsd and general warning fixes - patch by Björn Sandell <>

Originally committed as revision 6058 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

4a53a912 05/02/2002 11:00 AM Alban Bedel

printf to mp_msg

Originally committed as revision 5938 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

b7dc6f66 04/01/2002 02:01 PM Michael Niedermayer

overread in the mmx2 horizontal scaler fixed
2% faster horizontal mmx2 scaler

Originally committed as revision 5453 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

daa57641 03/21/2002 06:53 PM Michael Niedermayer

fixing bgr15&16 on big_endian
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

Originally committed as revision 5247 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

81b7c056 02/22/2002 03:24 PM Michael Niedermayer

use assert.h
more assertions

Originally committed as revision 4807 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

2ba1bff0 02/21/2002 07:41 PM Michael Niedermayer

101++

Originally committed as revision 4795 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

df3c183a 02/21/2002 05:48 PM Michael Niedermayer

fixing bgr32 output on big-endian systems

Originally committed as revision 4794 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

1e1c4fe9 02/21/2002 04:57 PM Michael Niedermayer

unscaled yuv2rgb fix for big-endian systems

Originally committed as revision 4792 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

9bd8bd1a 02/10/2002 11:57 PM Michael Niedermayer

unscaled memcpy variant bugfix (negative strides)

Originally committed as revision 4650 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

ec22603f 02/10/2002 12:43 AM Michael Niedermayer

unscaled BGR24 -> YV12

Originally committed as revision 4624 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

4342fc14 02/09/2002 11:43 PM Michael Niedermayer

bgr24toUV in MMX

Originally committed as revision 4620 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

ac6a2e45 02/09/2002 05:03 PM Michael Niedermayer

bgr24toY in MMX

Originally committed as revision 4613 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

b0db4198 02/08/2002 03:54 PM Michael Niedermayer

fastmemcpy

Originally committed as revision 4587 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

4bb3fa5e 02/08/2002 04:18 AM Michael Niedermayer

unscaled BGR15->BGR16
a few bugfixes of the other unscaled converters

Originally committed as revision 4582 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

b72034dd 02/08/2002 03:09 AM Michael Niedermayer

bgr15 input support

Originally committed as revision 4581 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

6af250ea 02/08/2002 12:42 AM Michael Niedermayer

bgr16 input support

Originally committed as revision 4579 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

b935781b 02/07/2002 03:29 PM Michael Niedermayer

unscaled converters
BGR24 -> BGR32 & RGB24 -> RGB32
BGR32 -> BGR24 & RGB32 -> RGB24

Originally committed as revision 4568 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

adeaecb9 02/07/2002 03:39 AM Michael Niedermayer

fixing green line at right side bug (reported by Nick Kurshev <>)

Originally committed as revision 4564 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

a861d4d7 02/06/2002 10:55 PM Michael Niedermayer

rgb32 & rgb24 input support
squished a endianness bug in the 15/16bgr output

Originally committed as revision 4559 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

b6654a54 02/06/2002 09:59 PM Michael Niedermayer

101 (yuv2rgb with mpeg1,...) ;)
simple copy if possible (same format, no scaling, ...)

Originally committed as revision 4556 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

37079906 02/06/2002 08:52 PM Michael Niedermayer

swScale internally uses yuv2rgb now if possible

Originally committed as revision 4555 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

b81cf274 02/04/2002 06:53 PM Michael Niedermayer

printing error messages if something is wrong instead of just return NULL;

Originally committed as revision 4530 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

8a01d20c 02/03/2002 02:08 AM Michael Niedermayer

filterPos bugfix (only nearest neighbor scaling was affected)

Originally committed as revision 4493 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

6ff0ad6b 02/02/2002 06:18 PM Michael Niedermayer

MMX optimized YUY2 input
avoid duplicate checks for formats by changeing them (Y8->Y800, IYUV->I420)

Originally committed as revision 4482 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

17470314 02/01/2002 07:39 PM Michael Niedermayer

printing correct format info

Originally committed as revision 4469 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

1e621b18 02/01/2002 07:25 PM Michael Niedermayer

YUY2, BGR24, BGR32 input support (no mmx yet)

Originally committed as revision 4468 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

1f347f22 01/30/2002 03:32 PM Michael Niedermayer

-sws 2 is default now

Originally committed as revision 4422 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

6c7506de 01/30/2002 03:21 PM Michael Niedermayer

YV12 like formats support (I420/IYUV)
bugfixes related to vo_x11 resizeing

Originally committed as revision 4420 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

d8863d37 01/29/2002 01:43 AM Michael Niedermayer

area averageing scaling support (-sws 5) (is identical to bilinear for upscale)

Originally committed as revision 4403 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

ff7ba856 01/28/2002 11:57 PM Michael Niedermayer

nearest neighbor / sdl emulation ;) scaling (-sws 4)

Originally committed as revision 4402 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

fd284805 01/22/2002 03:54 PM Michael Niedermayer

minor bugfix in the -v output

Originally committed as revision 4305 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

5521b193 01/21/2002 10:11 PM Michael Niedermayer

15/16 bit dithering in C (5% slower, can be disabled by comenting #define 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>)...

fe8054c0 01/21/2002 06:32 PM Michael Niedermayer

copyright(swscaler) = GPL

Originally committed as revision 4296 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

5cebb24b 01/21/2002 03:22 PM Michael Niedermayer

a few filters (should be removed/merged when arpis videofilter stuff is 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...

c7f822d9 01/21/2002 03:56 AM Michael Niedermayer

general convolution filtering of the source picture
dynamic memory allocation for the buffers (needed for the filter stuff)

Originally committed as revision 4291 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

7f56a527 01/20/2002 01:45 PM Michael Niedermayer

101

Originally committed as revision 4282 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

28bf81c9 01/20/2002 05:30 AM Michael Niedermayer

removed global vars so that multiple swscalers can be used
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...

9b464428 01/19/2002 05:14 AM Felix Bünemann

mangle for win32 in postproc

Originally committed as revision 4249 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

627690b5 12/21/2001 02:09 AM Michael Niedermayer

minor bugfixes (noone noticed them)
a few more asserts

Originally committed as revision 3642 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

e3d2500f 12/06/2001 07:07 PM Michael Niedermayer

print more info if -v
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...

c1b0bfb4 12/06/2001 12:10 AM Michael Niedermayer

vertical cubic/linear scaling
prints some info (MMX, dstbpp, ...)
mainloop rewritten

Originally committed as revision 3345 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

077ea8a7 12/02/2001 08:03 PM Michael Niedermayer

horizontal up/downscale linear & cubic
sws command line option (0 -> fast_bilinear, 1>bilinear, 2->bicubic)

Originally committed as revision 3273 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

d1fac6cf 11/29/2001 08:19 PM Michael Niedermayer

swscaler cleanup
green line at bottom bugfix
green lines in yuv2yuv scaler bugfix

Originally committed as revision 3210 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

726a959a 11/27/2001 01:19 AM Michael Niedermayer

runtime cpu detection optional (compiles faster)

Originally committed as revision 3153 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

48a05cec 11/26/2001 02:20 AM Michael Niedermayer

oops

Originally committed as revision 3137 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

7630f2e0 11/26/2001 12:31 AM Michael Niedermayer

runtime cpu detection

Originally committed as revision 3127 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

cff6ecd7 11/10/2001 08:39 PM Michael Niedermayer

.balign or we´ll align by 64kb on some architectures

Originally committed as revision 2801 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

6e3bba72 11/10/2001 07:46 PM Michael Niedermayer

.align 16

Originally committed as revision 2800 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

3fe8e8f0 11/06/2001 07:26 PM Michael Niedermayer

gcc does optimize writes to non volatile variables away if it didnt know that they were read in between

Originally committed as revision 2751 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

d8fa3c54 11/06/2001 06:42 PM Michael Niedermayer

better dithering

Originally committed as revision 2749 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

99d2cb72 11/06/2001 04:06 AM Michael Niedermayer

faster bgr24 output

Originally committed as revision 2731 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

bdc2eb9a 11/05/2001 11:49 PM Michael Niedermayer

only 6 registers used

Originally committed as revision 2729 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

7d7f78b5 11/04/2001 01:50 PM Michael Niedermayer

green line fix for dstw%8!=0

Originally committed as revision 2681 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

96034638 11/04/2001 03:07 AM Michael Niedermayer

fixed warnings

Originally committed as revision 2672 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

f62255fb 11/04/2001 02:28 AM Michael Niedermayer

faster bgr15/16

Originally committed as revision 2670 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

162caf68 11/02/2001 07:21 PM Michael Niedermayer

right green line bugfix for width not %8==0 (untested -vo vesa doesnt work)

Originally committed as revision 2639 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

02a0a992 10/31/2001 01:30 AM Michael Niedermayer

c speedup

Originally committed as revision 2586 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

b18ea156 10/31/2001 12:26 AM Michael Niedermayer

15/16bit in C speedup

Originally committed as revision 2585 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

397c035e 10/30/2001 10:24 PM Michael Niedermayer

c optimizations
bugfix

Originally committed as revision 2577 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

d9fc1cfe 10/30/2001 10:03 PM Michael Niedermayer

c optimizations

Originally committed as revision 2576 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

d022ce5c 10/30/2001 09:33 PM Michael Niedermayer

c optimizations (array is faster than pointer) (16bpp variants tested and 2% faster)

Originally committed as revision 2573 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

497d4f99 10/30/2001 09:04 PM Michael Niedermayer

interpolate chrominance for every second line in the 1:1 vertical scale function

Originally committed as revision 2570 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

1faf0867 10/30/2001 08:30 PM Michael Niedermayer

bugfixes
small speedup for the non x86 stuff

Originally committed as revision 2567 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

541c4eb9 10/29/2001 07:54 PM Michael Niedermayer

fixed a warning

Originally committed as revision 2541 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

17f715fa 10/29/2001 06:00 PM Michael Niedermayer

patch from Martin Decky <> applied and unnecassery "memory" removed

Originally committed as revision 2535 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

2add307d 10/28/2001 07:54 PM Michael Niedermayer

tell the c compiler that the memory changed

Originally committed as revision 2522 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

99cefd0b 10/28/2001 07:41 PM Michael Niedermayer

3dnow prefetch & sfence

Originally committed as revision 2521 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

38858470 10/28/2001 06:30 PM Michael Niedermayer

yv12 to yv12 scaler
someone who knows a bit about vo_odivx could add support for it ...

Originally committed as revision 2520 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

390b20a6 10/28/2001 03:03 AM Michael Niedermayer

yuv2rgb bugfix

Originally committed as revision 2504 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

dda87e9f 10/25/2001 11:34 PM Pierre Lombard

a few warning fixes (missing #include's)

Originally committed as revision 2477 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

2ff198c1 10/25/2001 02:31 PM Michael Niedermayer

downscale
fixed some warnings

Originally committed as revision 2470 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

a525ce8d 10/21/2001 12:05 AM Michael Niedermayer

BGR24 bugfix
BGR15 & BGR24 tested

Originally committed as revision 2327 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

d604bab9 10/20/2001 09:12 PM Michael Niedermayer

fixed alignment (static variables where sometimes not 8-byte aligned)
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)...

84adc106 10/19/2001 03:50 PM Michael Niedermayer

first line bug fixed (happend if the image was scaled down or 1:1)

Originally committed as revision 2298 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

0f25d72b 10/19/2001 12:30 PM Michael Niedermayer

horizontal scaling bugs fixed, should be mostly bugfree now

Originally committed as revision 2280 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

44f9179b 10/19/2001 02:21 AM Arpi

xinc scaled by 16 instead of 8

Originally committed as revision 2275 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

b3a134b6 10/19/2001 01:53 AM Michael Niedermayer

horizontal lines bugfix

Originally committed as revision 2272 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

d3fda508 10/19/2001 01:26 AM Michael Niedermayer

vertical lines bugfix

Originally committed as revision 2271 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

afa569af 10/19/2001 12:42 AM Arpi

(C) fixed

Originally committed as revision 2270 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

cd410226 10/19/2001 12:21 AM Michael Niedermayer

fixed a bug which caused horizontal lines

Originally committed as revision 2268 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

783e9cc9 10/18/2001 10:27 PM Michael Niedermayer

increased precission of s_xinc s_xinc2 (needed for the mmx2 bugfix)
moved mmx variables to top to avoid alignment issues
mmx2 code should work fine now if and only if the input width is 16=0 and the output width is %32=0
reordered some code (5
faster with a simply -benchmark)...

d9cf0d33 10/17/2001 01:59 PM Michael Niedermayer

24bpp support (untested)

Originally committed as revision 2238 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

fffd2e0a 10/17/2001 11:57 AM Arpi

added (f)emms

Originally committed as revision 2237 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

e72c545c 10/17/2001 10:55 AM Arpi

bpp changed from bytespp to bitspp

Originally committed as revision 2236 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

a6e972a2 10/17/2001 03:40 AM Michael Niedermayer

fixed out of regs "bug"

Originally committed as revision 2234 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

d3f41512 10/17/2001 02:30 AM Michael Niedermayer

MMX & MMX2 optimizations (MMX2 is buggy and commented out)
32, 24, 16, 15 bit support in C (only 32 & 16 tested)
32, 16 bit support in mmx (16 with dithering)
ranges of some variables changed so mmx likes them more

Originally committed as revision 2233 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

d1530c64 10/17/2001 12:29 AM Felix Bünemann

fix rgb/bgr for 15/16bpp

Originally committed as revision 2231 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

62ac0b01 10/16/2001 11:58 PM Arpi

16bpp code for atmos

Originally committed as revision 2230 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc

31190492 10/15/2001 06:59 PM Arpi

software yv12->rgb scaler - separated from fsdga

Originally committed as revision 2217 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc