Statistics
| Branch: | Revision:

ffmpeg / libswscale / swscale_template.c @ 3164d25e

History | View | Annotate | Download (139 KB)

# Date Author Comment
3164d25e 03/20/2009 02:44 PM Cédric Schieli

Reindent after last commit

Originally committed as revision 29014 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

6268f55b 03/20/2009 02:16 PM Cédric Schieli

YUVA420P is now supported as output format

Originally committed as revision 29012 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

6858492e 03/20/2009 02:15 PM Cédric Schieli

Add alpha channel scaling

Originally committed as revision 29011 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

e29c3f93 03/19/2009 11:29 PM Matthieu Castet

Remove useless casting in asm "m" operand.

Patch by Matthieu Castet, castet D matthieu A free D fr

Originally committed as revision 29007 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

d0ce212a 03/18/2009 05:07 PM Ramiro Polla

Do not assume long is same width as x86 register.

Originally committed as revision 28992 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

780daf2b 03/18/2009 08:06 AM Diego Biurrun

Consistently use ff_ prefixes for internal symbols.

Originally committed as revision 28988 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

786dcfef 03/14/2009 08:11 AM Cédric Schieli

Make the source buffer operands parametrized in the YSCALEYUV2RGB_YA macro

Originally committed as revision 28943 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

fe91924d 03/11/2009 02:44 PM Cédric Schieli

Make MMX registers parametrized in the YSCALEYUV2PACKEDX_YA macro

Originally committed as revision 28934 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

bcff32d1 03/09/2009 05:25 PM Kostya Shishkov

Mask all unused bits for packed pixel format instead of green and alpha mask only.
That fixes the case when converting 15-bit RGB/BGR to YUV and high bit is set
for input value(s).

Originally committed as revision 28916 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

57f9a560 03/03/2009 07:47 PM Jindřich Makovička

remove the rest of x86 asm from LGPL build

Originally committed as revision 28804 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

f8a138be 02/28/2009 08:01 AM Cédric Schieli

When converting from a non alpha format to an alpha format, defaults

Originally committed as revision 28756 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

40494418 02/21/2009 10:54 AM Cédric Schieli

move zeroing of alpha channel register out of YSCALEYUV2xxx macros,
patch by Cédric Schieli (cschieli at gmail youknowwhat)

Originally committed as revision 28687 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

df57ab14 02/21/2009 10:52 AM Cédric Schieli

splits various YSCALEYUV2xxx macros into YSCALEYUV2xxx_UV,
YSCALEYUV2xxx_YA and YSCALEYUV2xxx_COEFF,
patch by Cédric Schieli (cschieli at gmail youknowwhat)

Originally committed as revision 28686 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

9c77b26b 02/21/2009 10:49 AM Cédric Schieli

make MMX registers parametrized in the WRITEBGR32 macro,
patch by Cédric Schieli (cschieli at gmail youknowwhat)

Originally committed as revision 28685 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

12794f73 02/14/2009 04:37 PM Kostya Shishkov

Some AltiVec functions in SwScaler produce different output than their
counterparts in pure C, so don't invoke them in bitexact mode.

Originally committed as revision 28555 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

f4406ec1 01/25/2009 07:58 PM Diego Biurrun

HAVE_3DNOW --> HAVE_AMD3DNOW to sync with latest configure changes.

Originally committed as revision 28358 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

b63f641e 01/14/2009 12:13 AM Aurelien Jacobs

Change semantic of CONFIG_*, HAVE_* and ARCH_*.
They are now always defined to either 0 or 1.

Originally committed as revision 28311 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

5155b839 11/17/2008 10:33 AM Diego Biurrun

Put variable declaration inside an #ifdef to avoid an unused variable warning.

Originally committed as revision 27945 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

36e8de07 10/25/2008 08:41 PM Carl Eugen Hoyos

Remove unused code that can't be compiled without svn archive.

Originally committed as revision 27827 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

aeb87a49 10/23/2008 04:23 PM Diego Biurrun

cosmetics: typo fix

Originally committed as revision 27816 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

7ad6469e 10/16/2008 01:34 PM Diego Pettenò

Convert asm keyword into asm.

Neither the asm() nor the asm() keyword is not part of the C99
standard, but while GCC accepts the former in C89 syntax, it is not
accepted in C99 unless GNU extensions are turned on (with -fasm). The
latter form is accepted in any syntax as an extension (without...

6683a37f 10/09/2008 11:10 AM Diego Pettenò

Invert logic for the single-pass in swScale() functions.

Instead of having a firstTime variable defaulting to 1, have a
warnedAlready defaulting to 0. While this should make no difference in
code speed at runtime, it allows to aggregate the four bytes of that...

e150ef8d 10/08/2008 05:48 PM Vitor Sessak

Do not set src1 to the palette, it is now in the context

Originally committed as revision 27731 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

88e2a9ae 10/04/2008 06:50 PM Carl Eugen Hoyos

Remove b5Dither, g5Dither and r5Dither from libswscale.

Originally committed as revision 27718 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

92c7b471 10/04/2008 04:40 PM Carl Eugen Hoyos

Remove g6Dither from libswscale.

Originally committed as revision 27715 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

896a22b8 09/18/2008 12:26 AM Luca Barbato

Uniform *ToY and *ToUV function signatures

Originally committed as revision 27636 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

3a5ba0c3 09/18/2008 12:24 AM Luca Barbato

Split mono2Y in monowhite and monoblack

Originally committed as revision 27635 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

e48a79c9 09/18/2008 12:22 AM Luca Barbato

Factorize unit32_t* casts for palette pointer

Originally committed as revision 27634 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

a35acd7f 09/13/2008 04:13 PM Benjamin Zores

Fix libswscale build after r27561 if --enable-runtime-cpudetection is used.

Originally committed as revision 27602 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

14014d47 09/13/2008 01:41 PM Michael Niedermayer

Fix indention.

Originally committed as revision 27600 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

f433c8ab 09/13/2008 03:12 AM Michael Niedermayer

Disable mmx routines that are not bitexact when the user wants
bitexact ones.

Originally committed as revision 27597 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

ef423a66 09/13/2008 02:18 AM Michael Niedermayer

Make horizontal mmx scaling code match C code.

Originally committed as revision 27596 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

881c4294 09/12/2008 10:29 PM Michael Niedermayer

Make the horizontal C scaler code clip only against INT16_MAX not 0,
this decreases the difference between C and MMX, its also faster.

Originally committed as revision 27593 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

78454dfc 09/12/2008 06:05 PM Michael Niedermayer

Fix another 1000l bug in the mono input code.

Originally committed as revision 27590 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

4bb9adcf 09/12/2008 05:28 PM Michael Niedermayer

10000l PIX_FMT_MONOWHITE check was really a || 1.
Thats what happens when one does not do the full set of tests before each commit
and just quickly goes over the diff thinking, "hey its a trivial change".

Originally committed as revision 27588 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

3d05e078 09/12/2008 04:46 PM Michael Niedermayer

Support mono as input format.

Originally committed as revision 27587 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

ec1bca2a 09/12/2008 04:01 PM Michael Niedermayer

Add support for PIX_FMT_MONOWHITE as output format.

Originally committed as revision 27586 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

e09d7eef 09/11/2008 02:47 PM Michael Niedermayer

Fix typo that lead to averaging of the same pixel in rgb24ToUV_half().

Originally committed as revision 27582 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

f0faee4c 09/11/2008 02:39 PM Michael Niedermayer

Implement full horizontal chroma for rgb/bgr24/32 output.

Originally committed as revision 27580 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

e69bd294 09/11/2008 02:36 AM Michael Niedermayer

Factorize yuv2packedXinC().

Originally committed as revision 27578 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

ac0ad729 09/10/2008 10:41 PM Michael Niedermayer

Make the 2point linear interpolation coefficients correct even for the
nearly never occuring 0.0, 1.0.

Originally committed as revision 27574 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

33a67bd6 09/10/2008 08:47 PM Michael Niedermayer

Fix overflow.

Originally committed as revision 27573 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

ff9a056d 09/10/2008 05:50 PM Michael Niedermayer

Fix build failure due to %%eip on x86_64.

Originally committed as revision 27569 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

6b79dbce 09/10/2008 04:39 PM Michael Niedermayer

Change RGB2YUV_SHIFT from 16 to 15 to make it able to work
with 16bit signed constants (like SIMD might use).

Originally committed as revision 27568 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

ba83d862 09/10/2008 01:55 PM Michael Niedermayer

Add bgr/rgb15/16/32->UV-half to the macro so theres less code duplication
at the source level.

Originally committed as revision 27567 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

a0baa07a 09/10/2008 03:56 AM Michael Niedermayer

Factorize RGB/BGR15/16/32->UV by using the preprocessor.

Originally committed as revision 27566 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

214892ee 09/10/2008 03:42 AM Michael Niedermayer

Factorize rgb/bgr15/16/32->Y by using the preprocessor.

Originally committed as revision 27565 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

2f60f629 09/10/2008 02:28 AM Michael Niedermayer

Make SWS_FULL_CHR_H_INP work.

Originally committed as revision 27564 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

dfb09bd1 09/09/2008 11:30 PM Michael Niedermayer

Rewrite bgr24->yuv mmx code, the new code is cleaner, more accurate,
and does not throw half the chroma away.

Originally committed as revision 27561 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

35ab2b64 09/09/2008 04:55 PM Michael Niedermayer

More correct rounding for the rgb/bgr->yuv converters.

Originally committed as revision 27557 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

aa13b0fc 09/09/2008 03:35 AM Michael Niedermayer

Prevent overflows during mpeg->jpeg yuv.

Originally committed as revision 27552 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

6bc0c792 09/08/2008 12:36 PM Michael Niedermayer

Fix jpeg yuv.
Fixes issue504.

Originally committed as revision 27547 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

1625216e 09/07/2008 09:06 PM Michael Niedermayer

Fix accurate rounding mode on x86_64.
Fixes issue222.

Originally committed as revision 27545 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

97b93389 09/07/2008 06:22 PM Luca Barbato

Make ToY and ToUV family of function consistent part I
Convert width argument from int to long (note: srcW is still an int).

Originally committed as revision 27544 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

b0880d5d 09/04/2008 10:58 PM Michael Niedermayer

Make 16bit grayscale output work.

Originally committed as revision 27524 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

9990e426 09/04/2008 09:59 PM Michael Niedermayer

Support PIX_FMT_RGB32_1 and PIX_FMT_BGR32_1.
Fixes issue248.

Originally committed as revision 27522 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

27a90b04 09/04/2008 06:24 PM Michael Niedermayer

Fix rgb15/16 vs. bgr part2.

Originally committed as revision 27517 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

a1f3ffa3 07/18/2008 12:09 AM Michael Niedermayer

Make C code in yuv2yuv1() do accurate rounding, this could be split
depending on SWS_ACCURATE as well if someone wants.

Originally committed as revision 27323 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

d78c1ea1 07/17/2008 11:43 PM Michael Niedermayer

indent

Originally committed as revision 27322 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

bf2bdde6 07/17/2008 11:42 PM Michael Niedermayer

Forgotten accurate rounding function YSCALEYUV2YV121_ACCURATE.

Originally committed as revision 27321 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

7bae01c6 07/17/2008 11:35 PM Michael Niedermayer

simplify yuv2yuv1()

Originally committed as revision 27320 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

fcc402b1 07/06/2008 03:32 AM Luca Barbato

Remove ASSERT macro. SoC Patch from Keiji Costantini

Originally committed as revision 27214 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

8a322796 07/04/2008 01:49 PM Diego Biurrun

spelling/grammar/wording overhaul

Originally committed as revision 27190 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

87cf861c 06/01/2008 03:28 AM Baptiste Coudurier

cast to correct type, suppress warnings

Originally committed as revision 26946 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

4cf16bbe 03/22/2008 05:35 PM Diego Biurrun

cosmetics: comment typo fixes

Originally committed as revision 26269 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

4b0c30b7 03/06/2008 09:51 AM Baptiste Coudurier

remove redundant SwScaler text since av_log uses AVClass context

Originally committed as revision 26182 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

8b2fce0d 03/05/2008 03:00 AM Michael Niedermayer

Turn ancient V offset numerical constants into named ones.
Add a check that checks that the width is within the choosen constant.
This might have been exploitable.

Originally committed as revision 26165 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

f018bc10 02/24/2008 02:59 PM Reimar Döffinger

__asm __volatile -> asm volatile part 3

Originally committed as revision 26091 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

0cb25594 02/22/2008 08:08 AM Carl Eugen Hoyos

Discard two symbols from libswscale.

Originally committed as revision 26060 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

5802683a 01/29/2008 02:58 PM Reimar Döffinger

Make some assembler constants global instead of declaring them multiple times.

Originally committed as revision 25910 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

1b0a4572 01/17/2008 03:49 PM Benoit Fouet

Change (a == NULL) condition to (!a) and (a != NULL) condition to (a).

Originally committed as revision 25780 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

e5091488 01/17/2008 08:57 AM Benoit Fouet

Remove non cosmetic spaces inside parentheses.

Originally committed as revision 25777 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

bc279024 11/30/2007 01:21 PM Diego Biurrun

Comment some #endif directives.

Originally committed as revision 25211 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

a680708d 11/04/2007 12:34 PM Diego Biurrun

The function names of [rgb|bgr]156to[UV|Y] had rgb<->bgr flipped.
Rename them to match the actual implementation. Fixes issue 162.

Originally committed as revision 24965 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

b19bcbaa 07/05/2007 10:18 AM Diego Biurrun

license header consistency cosmetics

Originally committed as revision 23722 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

ddda6fcd 06/28/2007 11:18 AM Diego Biurrun

comment grammar fixes

Originally committed as revision 23685 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

fa884294 05/09/2007 09:34 PM Ivo van Poorten

remove the need of one extra shift in rgb16ToUV

Originally committed as revision 23281 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

f96829d2 05/09/2007 05:29 PM Ivo van Poorten

Fix rgb15ToUV. Correct order of components and use one shift less.

Originally committed as revision 23279 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

2da0d70d 04/30/2007 08:05 AM Diego Biurrun

cosmetics attack, part IV: Remove all tabs and prettyprint/reindent the code.

Originally committed as revision 23179 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

6a4970ab 04/26/2007 11:07 PM Diego Biurrun

cosmetics: Remove trailing whitespace.

Originally committed as revision 23147 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

fa65e2f6 04/15/2007 01:27 AM Michael Niedermayer

improve horizontal chroma resolution with pal

Originally committed as revision 22994 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

21c08a3f 04/15/2007 12:53 AM Michael Niedermayer

convert palette to yuv instead of converting each pixel after pal->rgb

Originally committed as revision 22993 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

911406f2 04/07/2007 02:07 PM Diego Biurrun

typo

Originally committed as revision 22932 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

9340a995 03/01/2007 07:48 PM Reimar Döffinger

Fix a possible crash on 64 bit systems when the lumSrcPtr or chrSrcPtr
does not fit in 32 bits. The SWS_ACCURATE_RND is still broken though.

Originally committed as revision 22401 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

adcec46a 02/25/2007 10:27 AM Reimar Döffinger

Add av_ prefix to clip functions

Originally committed as revision 22339 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

18064f5c 02/17/2007 11:36 AM Michael Niedermayer

BGR/RGB4 byte formats as input
fixing isRGB/BGR for the byte formats

Originally committed as revision 22244 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

e28630fc 02/16/2007 09:17 PM Michael Niedermayer

pal8 input
this is not optimized or anything (that is easy to add just use the existing unscaled converters if possible ...)

Originally committed as revision 22236 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

2d529db5 01/23/2007 01:41 PM Luca Abeni

Pass a context to av_log(), when possible

Originally committed as revision 21999 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

b2afecbe 12/26/2006 06:08 PM Luca Abeni

change all the occurrences of "FFMIN)" to clip_uint8() or clip()

Originally committed as revision 21776 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

7d19628b 12/26/2006 04:21 PM Luca Abeni

Add some explicit casts to avoid some warnings

Originally committed as revision 21772 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

0683a5c5 12/20/2006 03:58 PM Luca Abeni

Fix compilation of non-MMX code with gcc 2.95

Originally committed as revision 21702 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

e96da13b 11/27/2006 09:59 PM Reimar Döffinger

Change "p" asm constraints to "g", since "p" was a no longer necessary hack to
make AMD64 compilation work and ICC can not handle "p".

Originally committed as revision 21341 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

807e0c66 11/19/2006 10:38 AM Luca Abeni

Clarify that some of the non-SIMD code is now LGPLed.
All the authours of such code agreed.

Originally committed as revision 21045 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

6264a515 11/16/2006 02:49 PM Michael Niedermayer

forgotten 2 converters (yeah svn up, svn di svn ci isnt enough i should actually look at the code after svn up not just the diff ...)

Originally committed as revision 20962 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

c2271987 11/16/2006 02:44 PM Michael Niedermayer

fixing the lamest bug in swscale, all the rgb/bgr->* code did 2x2 downsampling for chroma, it should just be 2x1 (the rest of the code also belived its 2x1 ...)

Originally committed as revision 20961 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

d904b5fc 11/07/2006 07:07 AM Nigel Pearson

Fix MacIntel build: "/nop" is illegal on Apple's older version of GAS
Patch by Nigel Pearson % nigel A ind P tansu P com P au %
Original thread:
Date: Nov 6, 2006 10:43 PM
Subject: [Ffmpeg-devel] [PATCH] swscale uses /nop, illegal for old versions of GAS
...

a43fb6b3 11/02/2006 09:01 AM Luca Abeni

Add support for conversions from the rgb565 and rgb555 formats

Originally committed as revision 20605 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

3d6a30d9 11/01/2006 06:36 PM Diego Biurrun

Use common define for x86_32 and x86_64.

Originally committed as revision 20592 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

4884b9e5 10/24/2006 05:02 AM Kostya Shishkov

16-bit grayscale support

Originally committed as revision 20427 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

d026b45e 10/07/2006 03:33 PM Diego Biurrun

Change license headers to say 'FFmpeg' instead of 'this program'.

Originally committed as revision 20100 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale