Statistics
| Branch: | Revision:

ffmpeg / postproc / swscale.c @ 8553d9f4

History | View | Annotate | Download (74.4 KB)

# Date Author Comment
5bf01354 03/27/2003 04:16 PM Michael Niedermayer

10l

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

fccb9b2b 03/27/2003 04:04 PM Michael Niedermayer

10000l (YUV vs. YVU swscale fix/cleanup)

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

3e499f53 02/24/2003 12:12 AM Michael Niedermayer

cleanup

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

d4e24275 02/23/2003 10:05 PM Michael Niedermayer

sws_ prefix, more seperation between internal & external swscaler API
sws_scale() returns the number of outputed lines

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

5427e242 02/21/2003 08:35 PM Michael Niedermayer

yuv2rgb brightness/contrast/saturation/different colorspaces support finished
yuv2rgb deglobalize
yuv2rgb optimizations / cleanup
bugs?

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

20380eb8 02/18/2003 07:36 PM Michael Niedermayer

cleanup

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

0481412a 02/13/2003 07:27 PM Michael Niedermayer

brightness / saturation / contrast / different yuv colorspace support for some yuv2rgb converters (many converters still ignore it)

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

77a49659 02/13/2003 02:19 PM Michael Niedermayer

cleanup

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

799fd467 02/01/2003 12:48 AM Michael Niedermayer

10l found by (Dominik Mierzejewski <dominik at rangers dot eu dot org>)

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

f17457ac 01/30/2003 09:15 AM Michael Niedermayer

fixing rgb4 & bgr4 (2 pixels per byte)
adding bg4b & rg4b (1 pixel per byte)

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

7322a67c 01/23/2003 09:35 AM Michael Niedermayer

UYVY input

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

8664c807 11/04/2002 03:56 PM Michael Niedermayer

10l

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

a749913f 11/01/2002 05:46 PM Arpi

verbose can be negative

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

2ce486d8 10/13/2002 07:46 PM Michael Niedermayer

fixing yuy2 upscaling (use -sws 0 for the faster but uglier variant)

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

25593e29 10/13/2002 05:23 PM Michael Niedermayer

mmx yuy2 output

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

46de8b73 10/13/2002 12:30 AM Michael Niedermayer

yuy2 output support

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

d80e2fa2 08/01/2002 12:39 PM Michael Niedermayer

planar yuv 444 422 411 support

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

93768378 07/09/2002 05:01 PM Michael Niedermayer

fixing sinc filter (seems the problem was caused by rounding in pmulhw -> solution use shorter filter, its long and slow enough anyway)
some typos
some warning fixes

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

a86c461c 07/04/2002 01:08 PM Michael Niedermayer

more scaling algos

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

e09d12f4 06/30/2002 08:34 PM Michael Niedermayer

using the new rgb2rgb converters (the LQ ones are only used if -sws 0 or -sws 4)

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

b241cbf2 06/27/2002 11:48 PM Michael Niedermayer

yvu9 -> yv12 unscaled converter with linear chroma scaling

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

81a571a8 06/27/2002 07:17 PM Michael Niedermayer

-sws 6 (luma bicubic & chroma bilinear)

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

cf7d1c1a 06/27/2002 06:00 PM Michael Niedermayer

use unified yuv2rgb init {RGB,BGR}{1,4,8,15,16,24,32} output supported

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

5ac80202 06/24/2002 08:05 PM Michael Niedermayer

killing globals

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

5859233b 06/24/2002 12:18 AM Michael Niedermayer

100l (non mmx versions didnt compile)
some cleanup

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

0c51ef97 06/23/2002 07:30 PM Arpi

IF09 is alias for YVU9 (actually it has extra 4th plane containing MC change
flags, but it doesn't matter for now) - IF09 is supported by win32 Indeo codecs
and by some others too

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

e616aa93 06/23/2002 06:51 PM Michael Niedermayer

yvu9 support (other planar yuv formats with other chroma subsamplings should be trivial to add, if they had a IMGFMT)
disabled broken (=new) converters (they cause random sig11)
various bugfixes

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

3f7bb50c 06/23/2002 11:01 AM Michael Niedermayer

cleanup

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

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