Diego Pettenò
b5c44b1ab6
Mark some symbols in swscale.c as constant.
...
These are only used in swscale_template.c (and thus don't need to be
made extern), and can be declared as ASM constants.
Originally committed as revision 27737 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Diego Pettenò
d0b69b2855
Mark dither_2x2_{8,4} static to swscale.c
...
These two tables are not used outside swscale.c even though they are
declared also in yuv2rgb.c.
Originally committed as revision 27736 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Diego Pettenò
faf6112e26
Mark variation-specific interleaveBytes static.
...
These functions are never called by themselves, the alias
interleaveBytes is used instead.
Originally committed as revision 27735 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
Carl Eugen Hoyos
f5a2c9816e
Change variable types from int to enum PixelFormat.
...
Fixes icc warning #188 : enumerated type mixed with another type
Originally committed as revision 27733 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
Vitor Sessak
4900461742
Add a new unscaled PAL8 -> RGB converter.
...
Originally committed as revision 27730 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Aurelien Jacobs
13394e8cbb
Change one more variable type from int to enum PixelFormat.
...
This one was missing from r27727.
Originally committed as revision 27728 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Carl Eugen Hoyos
58e4b706c5
Change variable types from int to enum PixelFormat.
...
Fixes icc warning #188 : enumerated type mixed with another type
Originally committed as revision 27727 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Luca Barbato
7cff2c7f44
gcc-apple specific fallback not necessary anymore (btw no apple hardware is less than a Intel core, thus it won't come there w/out disabling all the optimizations)
...
Originally committed as revision 27722 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Diego Biurrun
02a6a6eea4
Use HAVE_FAST_64BIT instead of nonstandard __WORDSIZE macro.
...
Originally committed as revision 27720 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
Diego Biurrun
0d696d34ef
Remove MPlayer-specific MP_WORDSIZE hack.
...
Originally committed as revision 27698 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Diego Biurrun
92ca910542
Remove unused function fast_memcpy.
...
Originally committed as revision 27673 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Diego Biurrun
ed2164f37e
cosmetics: indentation
...
Originally committed as revision 27672 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Michael Niedermayer
8335a9f0cb
Revert mistakely commited hunk.
...
Originally committed as revision 27671 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Michael Niedermayer
0473e31faa
Print all cases that are tested, not just the ones that are bad.
...
Originally committed as revision 27670 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Michael Niedermayer
f830d8244a
Fix infinite loop with spline, bug was introduced in r27612 by me.
...
Originally committed as revision 27669 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
Michael Niedermayer
d616c8ae3d
Fix segfault with rgb24 and full_internal_chrome due to non existing alpha
...
byte being written after the array.
Originally committed as revision 27628 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Michael Niedermayer
a64a062fb9
Avoid using floating point for calculating filter coefficients.
...
Originally committed as revision 27612 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Michael Niedermayer
8588e1484e
Avoid some explicit types in sizeof().
...
Originally committed as revision 27611 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Michael Niedermayer
22129c78d7
Use av_mallocz() instead of for() =0;
...
Originally committed as revision 27610 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Michael Niedermayer
45e18be87d
Move dither tables from yuv2rgb to swscale, they have been written by me and
...
can be used under LGPL.
Originally committed as revision 27609 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
43c164788c
Rename yuv2rgb variables to avoid name clashes with the ones used by bfin asm.
...
Originally committed as revision 27599 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
88bc5a64f6
Ensure that additional filter coeffs that exist due to alignment
...
are 0 if bitexact mode is requested.
Originally committed as revision 27595 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Michael Niedermayer
84c1253513
yvu9toyv12Wrapper is not bitexact so disable it when the user wants
...
bitexactness to C.
Originally committed as revision 27594 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
ceb700babb
Add bitexact flag.
...
Originally committed as revision 27592 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Michael Niedermayer
b82ecd6258
The yuv->rgb tables are too small for cliping to be avoidable,
...
thus revert the respective optimization. The table generator code
has to be rewritten anyway one day by some volunteer because its
not LGPL, fixing the GPL table generator thus seems like wasted time.
Originally committed as revision 27591 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
6c80eb1626
Add support for PIX_FMT_YUV440P.
...
Originally committed as revision 27589 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
0885770455
rgb24toyv12 isnt accuratly rounding, so disable it as well when the
...
user asks for accurate rounding.
Originally committed as revision 27585 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Michael Niedermayer
4155ece530
Do not use the unscaled yuv->rgb converters if SWS_ACCURATE_RND is set,
...
because they do not accurately round.
Originally committed as revision 27584 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
16 years ago
Michael Niedermayer
fd5c57b813
100000000000000l, forgot to commit header change for r27580.
...
Originally committed as revision 27583 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
8e7ba004ed
Remove mistakely commited code i used for testing.
...
Originally committed as revision 27581 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
bdf397ba4b
Do not do unneeded cliping in YSCALE_YUV_2_PACKEDX_C.
...
Originally committed as revision 27579 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