Statistics
| Branch: | Revision:

ffmpeg / postproc / swscale.c @ 38d5c282

History | View | Annotate | Download (73.1 KB)

# Date Author Comment
38d5c282 01/31/2005 03:57 PM Aurelien Jacobs

makes funnyCode pages executable (for CPU with NX bit)

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

6d606c4f 01/21/2005 04:48 PM Aurelien Jacobs

fix few x86_64 registers handling

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

6e1c66bc 10/21/2004 11:55 AM Aurelien Jacobs

adapting existing mmx/mmx2/sse/3dnow optimizations so they work on x86_64

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

582552fb 10/05/2004 07:11 PM Luca Barbato

postproc/yuv2rgb_altivec.c compile fix
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>)

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

66d1cdb6 09/18/2004 12:08 AM Michael Niedermayer

passing an array or double precission parameters for the scaling function, instead of missusing a few bits of the flags
fixing the naming of the scaling functions a little

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

f2015f0c 07/17/2004 08:56 AM Alex Beregszaszi

fix altivec.h inclusion (vector keyword in structure)

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

b71cf33c 07/06/2004 01:52 PM Romain Dolbeau

Altivec unscaled YV12 -> packed YUV patch by (Romain Dolbeau <dolbeau at irisa dot fr>)

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

a31de956 06/27/2004 12:07 AM Michael Niedermayer

altivec yuv->rgb converter
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...

ae4cffd9 05/01/2004 08:15 PM D Richard Felker III

this isn't actually stupid, but it's not valid C and gcc 3.5 rejects it as such

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

db7a2e0d 04/26/2004 07:38 PM Matthieu Castet

attribute_used patch by (matthieu castet <castet.matthieu at free dot fr>)

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

8c266f0c 04/06/2004 12:25 AM Romain Dolbeau

AltiVec hScale, all size patch by (Romain Dolbeau <dolbeaur at club-internet dot fr>)

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

35fe5cc5 03/14/2004 06:04 PM Magnus Damm

altivec swscale under Linux patch by (Magnus Damm <damm at opensource dot se>)

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

a2faa401 03/11/2004 05:58 PM Romain Dolbeau

AltiVec support in postproc/ + altivec optimizations for yuv2yuvX patch by (Romain Dolbeau <dolbeau at irisa dot fr>)

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

46888748 11/06/2003 11:22 PM Michael Niedermayer

1000l

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

ec62c38f 11/04/2003 01:52 PM Michael Niedermayer

-sws 0 && -ssf chs fixed

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

c4f1e443 10/22/2003 12:19 AM Michael Niedermayer

minimum slice size fix (fixes 422P 1 line per slice, used by huffyuv)

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

ff490720 10/15/2003 12:08 PM Michael Niedermayer

dither scaling coefficients so they add up to 1.0

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

379a2036 10/15/2003 11:21 AM Michael Niedermayer

rounding fixes

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

caeaabe7 10/09/2003 10:25 PM Alex Beregszaszi

uyvy output support in swscaler

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

77a416e8 10/04/2003 05:29 PM Gabucino

many small typo and grammar fixes
Based on Bernard Leak's mail <bernard 4t brenda-arkle.demon.co.uk>

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

54324550 09/26/2003 11:37 PM Michael Niedermayer

srcSliceY % 4 != 0 fix

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

a4c90ea3 06/19/2003 09:28 PM Michael Niedermayer

fixing "internal error in orderYUV" bug

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

cd96358c 06/01/2003 10:10 PM Alex Beregszaszi

unused

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

b706b007 05/01/2003 07:14 PM Alex Beregszaszi

removed the last mp_msg :)

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

700490a4 04/25/2003 05:16 PM Michael Niedermayer

remove remaining cpudetect dependancy

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

e21206a8 04/25/2003 11:26 AM Michael Niedermayer

moving getFilter stuff back (vf_scale.c -> swscale.c)

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

516b1f82 04/24/2003 05:04 PM Michael Niedermayer

removing sws - global verbose var dependancy
removing sws - cpudetect dependancy (note rgb2rgb still needs it)
moving mplayer specific stuff from swscale.c -> vf_scale.c

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

c9b99ea6 04/17/2003 07:32 PM Michael Niedermayer

mplayer idependant (not really yet) swscale example

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

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...