Jindřich Makovička
57f9a56051
remove the rest of x86 asm from LGPL build
...
Originally committed as revision 28804 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Cédric Schieli
f8a138be52
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
16 years ago
Cédric Schieli
404944183d
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
16 years ago
Cédric Schieli
df57ab1479
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
16 years ago
Cédric Schieli
9c77b26b35
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
16 years ago
Kostya Shishkov
12794f73eb
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
16 years ago
Diego Biurrun
f4406ec177
HAVE_3DNOW --> HAVE_AMD3DNOW to sync with latest configure changes.
...
Originally committed as revision 28358 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Aurelien Jacobs
b63f641e9b
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
16 years ago
Diego Biurrun
5155b8395c
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
16 years ago
Carl Eugen Hoyos
36e8de07ed
Remove unused code that can't be compiled without svn archive.
...
Originally committed as revision 27827 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Diego Biurrun
aeb87a49a7
cosmetics: typo fix
...
Originally committed as revision 27816 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Diego Pettenò
7ad6469eae
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
requiring further command-line options).
Sun Studio C99 compiler also does not accept asm() while accepting
__asm__(), albeit reporting warnings that it's not valid C99 synta.
Originally committed as revision 27778 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Diego Pettenò
6683a37f89
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
variable with clip_table in .bss section, rather than issuing a .data
section just for that.
As it is, libswscale require no .data section but .data.rel.ro (that
can be mitigated by prelinking), so the change might actually save one
page of memory at runtime (per process).
Originally committed as revision 27734 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Vitor Sessak
e150ef8d34
Do not set src[1] to the palette, it is now in the context
...
Originally committed as revision 27731 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Carl Eugen Hoyos
88e2a9aebc
Remove b5Dither, g5Dither and r5Dither from libswscale.
...
Originally committed as revision 27718 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Carl Eugen Hoyos
92c7b4713d
Remove g6Dither from libswscale.
...
Originally committed as revision 27715 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Luca Barbato
896a22b851
Uniform *ToY and *ToUV function signatures
...
Originally committed as revision 27636 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Luca Barbato
3a5ba0c33f
Split mono2Y in monowhite and monoblack
...
Originally committed as revision 27635 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Luca Barbato
e48a79c91a
Factorize unit32_t* casts for palette pointer
...
Originally committed as revision 27634 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Benjamin Zores
a35acd7f8c
Fix libswscale build after r27561 if --enable-runtime-cpudetection is used.
...
Originally committed as revision 27602 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Michael Niedermayer
14014d47cb
Fix indention.
...
Originally committed as revision 27600 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Michael Niedermayer
f433c8abd3
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
16 years ago
Michael Niedermayer
ef423a6618
Make horizontal mmx scaling code match C code.
...
Originally committed as revision 27596 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Michael Niedermayer
881c429407
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
16 years ago
Michael Niedermayer
78454dfc01
Fix another 1000l bug in the mono input code.
...
Originally committed as revision 27590 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Michael Niedermayer
4bb9adcff1
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
16 years ago
Michael Niedermayer
3d05e078ee
Support mono as input format.
...
Originally committed as revision 27587 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Michael Niedermayer
ec1bca2a0f
Add support for PIX_FMT_MONOWHITE as output format.
...
Originally committed as revision 27586 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Michael Niedermayer
e09d7eef37
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
16 years ago
Michael Niedermayer
f0faee4c63
Implement full horizontal chroma for rgb/bgr24/32 output.
...
Originally committed as revision 27580 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Michael Niedermayer
e69bd29425
Factorize yuv2packedXinC().
...
Originally committed as revision 27578 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Michael Niedermayer
ac0ad72981
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
16 years ago
Michael Niedermayer
33a67bd6c7
Fix overflow.
...
Originally committed as revision 27573 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Michael Niedermayer
ff9a056d1a
Fix build failure due to %%eip on x86_64.
...
Originally committed as revision 27569 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Michael Niedermayer
6b79dbce0c
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
16 years ago
Michael Niedermayer
ba83d86299
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
16 years ago
Michael Niedermayer
a0baa07aef
Factorize RGB/BGR15/16/32->UV by using the preprocessor.
...
Originally committed as revision 27566 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Michael Niedermayer
214892ee42
Factorize rgb/bgr15/16/32->Y by using the preprocessor.
...
Originally committed as revision 27565 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Michael Niedermayer
2f60f6297c
Make SWS_FULL_CHR_H_INP work.
...
Originally committed as revision 27564 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Michael Niedermayer
dfb09bd1d4
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
16 years ago
Michael Niedermayer
35ab2b6445
More correct rounding for the rgb/bgr->yuv converters.
...
Originally committed as revision 27557 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Michael Niedermayer
aa13b0fc55
Prevent overflows during mpeg->jpeg yuv.
...
Originally committed as revision 27552 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Michael Niedermayer
6bc0c7928a
Fix jpeg yuv.
...
Fixes issue504.
Originally committed as revision 27547 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Michael Niedermayer
1625216eaa
Fix accurate rounding mode on x86_64.
...
Fixes issue222.
Originally committed as revision 27545 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Luca Barbato
97b93389af
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
16 years ago
Michael Niedermayer
b0880d5da4
Make 16bit grayscale output work.
...
Originally committed as revision 27524 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Michael Niedermayer
9990e4269c
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
16 years ago
Michael Niedermayer
27a90b0450
Fix rgb15/16 vs. bgr part2.
...
Originally committed as revision 27517 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Michael Niedermayer
a1f3ffa3ce
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
17 years ago
Michael Niedermayer
d78c1ea16f
indent
...
Originally committed as revision 27322 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
17 years ago