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
2008-09-13 16:13:04 +00:00
Michael Niedermayer
14014d47cb
Fix indention.
...
Originally committed as revision 27600 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-13 13:41:47 +00:00
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
2008-09-13 03:12:15 +00:00
Michael Niedermayer
ef423a6618
Make horizontal mmx scaling code match C code.
...
Originally committed as revision 27596 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-13 02:18:12 +00:00
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
2008-09-12 22:29:21 +00:00
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
2008-09-12 18:05:57 +00:00
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
2008-09-12 17:28:36 +00:00
Michael Niedermayer
3d05e078ee
Support mono as input format.
...
Originally committed as revision 27587 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-12 16:46:38 +00:00
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
2008-09-12 16:01:17 +00:00
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
2008-09-11 14:47:18 +00:00
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
2008-09-11 14:39:12 +00:00
Michael Niedermayer
e69bd29425
Factorize yuv2packedXinC().
...
Originally committed as revision 27578 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-11 02:36:51 +00:00
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
2008-09-10 22:41:55 +00:00
Michael Niedermayer
33a67bd6c7
Fix overflow.
...
Originally committed as revision 27573 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-10 20:47:16 +00:00
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
2008-09-10 17:50:49 +00:00
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
2008-09-10 16:39:56 +00:00
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
2008-09-10 13:55:51 +00:00
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
2008-09-10 03:56:06 +00:00
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
2008-09-10 03:42:45 +00:00
Michael Niedermayer
2f60f6297c
Make SWS_FULL_CHR_H_INP work.
...
Originally committed as revision 27564 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-10 02:28:38 +00:00
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
2008-09-09 23:30:06 +00:00
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
2008-09-09 16:55:58 +00:00
Michael Niedermayer
aa13b0fc55
Prevent overflows during mpeg->jpeg yuv.
...
Originally committed as revision 27552 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-09 03:35:07 +00:00
Michael Niedermayer
6bc0c7928a
Fix jpeg yuv.
...
Fixes issue504.
Originally committed as revision 27547 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-08 12:36:38 +00:00
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
2008-09-07 21:06:21 +00:00
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
2008-09-07 18:22:29 +00:00
Michael Niedermayer
b0880d5da4
Make 16bit grayscale output work.
...
Originally committed as revision 27524 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-04 22:58:16 +00:00
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
2008-09-04 21:59:15 +00:00
Michael Niedermayer
27a90b0450
Fix rgb15/16 vs. bgr part2.
...
Originally committed as revision 27517 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-04 18:24:25 +00:00
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
2008-07-18 00:09:09 +00:00
Michael Niedermayer
d78c1ea16f
indent
...
Originally committed as revision 27322 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-07-17 23:43:48 +00:00
Michael Niedermayer
bf2bdde67a
Forgotten accurate rounding function YSCALEYUV2YV121_ACCURATE.
...
Originally committed as revision 27321 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-07-17 23:42:06 +00:00
Michael Niedermayer
7bae01c62c
simplify yuv2yuv1()
...
Originally committed as revision 27320 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-07-17 23:35:36 +00:00
Luca Barbato
fcc402b1c9
Remove ASSERT() macro. SoC Patch from Keiji Costantini
...
Originally committed as revision 27214 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-07-06 03:32:47 +00:00
Diego Biurrun
8a3227968c
spelling/grammar/wording overhaul
...
Originally committed as revision 27190 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-07-04 13:49:45 +00:00
Baptiste Coudurier
87cf861c7d
cast to correct type, suppress warnings
...
Originally committed as revision 26946 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-06-01 03:28:15 +00:00
Diego Biurrun
4cf16bbed5
cosmetics: comment typo fixes
...
Originally committed as revision 26269 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-03-22 17:35:32 +00:00
Baptiste Coudurier
4b0c30b79c
remove redundant SwScaler text since av_log uses AVClass context
...
Originally committed as revision 26182 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-03-06 09:51:25 +00:00
Michael Niedermayer
8b2fce0d3f
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
2008-03-05 03:00:25 +00:00
Reimar Döffinger
f018bc1000
__asm __volatile -> asm volatile part 3
...
Originally committed as revision 26091 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-02-24 14:59:16 +00:00
Carl Eugen Hoyos
0cb2559445
Discard two symbols from libswscale.
...
Originally committed as revision 26060 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-02-22 08:08:19 +00:00
Reimar Döffinger
5802683a97
Make some assembler constants global instead of declaring them multiple times.
...
Originally committed as revision 25910 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-01-29 14:58:10 +00:00
Benoit Fouet
1b0a4572f4
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
2008-01-17 15:49:31 +00:00
Benoit Fouet
e5091488a5
Remove non cosmetic spaces inside parentheses.
...
Originally committed as revision 25777 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-01-17 08:57:15 +00:00
Diego Biurrun
bc279024c2
Comment some #endif directives.
...
Originally committed as revision 25211 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-11-30 13:21:20 +00:00
Diego Biurrun
a680708d2d
The function names of [rgb|bgr]1[56]to[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
2007-11-04 12:34:46 +00:00
Diego Biurrun
b19bcbaa78
license header consistency cosmetics
...
Originally committed as revision 23722 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-07-05 10:18:58 +00:00
Diego Biurrun
ddda6fcddc
comment grammar fixes
...
Originally committed as revision 23685 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-06-28 11:18:16 +00:00
Ivo van Poorten
fa88429489
remove the need of one extra shift in rgb16ToUV
...
Originally committed as revision 23281 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-05-09 21:34:05 +00:00
Ivo van Poorten
f96829d2d0
Fix rgb15ToUV. Correct order of components and use one shift less.
...
Originally committed as revision 23279 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-05-09 17:29:20 +00:00