Statistics
| Branch: | Revision:

ffmpeg / postproc / swscale.c @ 42225a30

History | View | Annotate | Download (76.7 KB)

# Date Author Comment
247d2c96 02/16/2006 12:55 PM Alan Curry

ng the fix for vCCoeffsBank patch by (Alan Curry <pacman TheWorld com>)

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

d33d485e 02/11/2006 02:16 PM Alan Curry

Move the v{Y,C}CoeffsBank vectors into the SwsContext, filling them in just
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...

9b2283cc 02/09/2006 02:08 PM Stefan Huehner

Patch by Stefan Huehner / stefan % huehner ! org \

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

5edb653b 02/08/2006 08:20 AM Alan Curry

AltiVec operations need to have memory aligned on 16-byte boundaries.
patch by Alan Curry, pacman at world dot std dot com

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

2e728364 02/04/2006 12:08 AM Michael Niedermayer

change sws sharpen filter a little

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

660204c6 01/13/2006 12:23 AM Diego Biurrun

Update licensing information: The FSF changed postal address.

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

b2d374c9 11/14/2005 12:30 AM Diego Biurrun

Unify include paths, -I.. is in CFLAGS.

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

73cbfb1c 10/17/2005 05:05 AM D Richard Felker III

100l -- mismatched type after changing sizes to type long!

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

b40e353a 09/06/2005 03:15 PM Diego Biurrun

Reduce unnecessary swscaler verbosity.

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

6634d0ef 05/20/2005 12:08 PM Nicolas Plourde

Should fix altivec detection for g3 system.

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

12e11662 04/24/2005 07:50 AM Jindřich Makovička

check for negative strides before memcpy

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

e63ac25d 04/24/2005 07:47 AM Jindřich Makovička

support for both orderings of the slices (top->down / bottom->up)

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

0ce5275d 02/23/2005 02:07 PM Reimar Döffinger

100l, forgot to change an ifdef on last commit

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

113ef149 02/22/2005 02:40 PM Reimar Döffinger

fix for MAP_ANON vs. MAP_ANONYMOUS fix...

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

6118e52e 02/16/2005 11:47 PM Ville Syrjälä

Improved NV12/NV21 support.
- 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....

171d7d78 02/14/2005 01:29 PM Bohdan Horst

FreeBSD fix

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

790409c9 02/01/2005 09:00 AM Reimar Döffinger

Compile fix on non-x86

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

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