Ivo van Poorten
3052ddb2a8
preserve alpha channel when converting rgb32 to bgr32 in plain C
...
Originally committed as revision 23022 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-18 16:40:58 +00:00
Ivo van Poorten
19b202f9d1
fix red_15mask and green_15mask. the previous values were wrong and caused
...
some SIMD functions to output wrong data.
Originally committed as revision 23021 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-18 16:40:07 +00:00
Ivo van Poorten
0c4c70e5ef
test widths all down to one. this tests whether the scalers correctly switch
...
to plain C when width < unit size of assembly code.
Originally committed as revision 23018 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-18 14:22:42 +00:00
Ivo van Poorten
35a9994977
skip MMX code in rgb24tobgr24 if the size of the input is smaller than the
...
size of the units the MMX code processes
Originally committed as revision 23015 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-18 09:27:59 +00:00
Ivo van Poorten
3983057065
skip MMX code in rgb32to16 if the size of the input is smaller than the
...
size of the units the MMX code processes
Originally committed as revision 23014 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-18 09:26:22 +00:00
Ivo van Poorten
b2117ceed0
skip MMX code in rgb32to15 if the size of the input is smaller than the
...
size of the units the MMX code processes
Originally committed as revision 23013 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-18 09:24:49 +00:00
Ivo van Poorten
935f50c82c
slightly faster rgb32tobgr32; avoid one add and one cmp
...
Originally committed as revision 23012 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-17 20:38:17 +00:00
Ivo van Poorten
b38d487466
New implementation of rgb32tobgr32
...
The previous implementation segfaulted with MMX enabled when fed an image
smaller than the size of the units the MMX code processed. The new code:
- is faster for MMX, MMX2 and plain C
- processes small images correctly
- is LGPL
Originally committed as revision 23009 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-16 21:41:03 +00:00
Michael Niedermayer
fa65e2f63a
improve horizontal chroma resolution with pal
...
Originally committed as revision 22994 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-15 01:27:34 +00:00
Michael Niedermayer
21c08a3f1c
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
2007-04-15 00:53:32 +00:00
Ivo van Poorten
3a74415d59
cosmetics, expand all tabs to four spaces.
...
Originally committed as revision 22983 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-12 19:31:35 +00:00
Ivo van Poorten
2a80b21d38
Replace huge switch statement by a lookup table.
...
Add newline to final report.
Originally committed as revision 22982 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-12 19:25:36 +00:00
Ivo van Poorten
ea70817379
cosmetics after last commit; remove superfluous braces
...
Originally committed as revision 22979 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-11 22:17:58 +00:00
Ivo van Poorten
df170b81d9
Remove code duplication in sws_rgb2rgb_init.
...
The lists of assignments of all rgbxtoy variants are removed from
sws_rgb2rgb_init and replaced by a single list inside the template file.
This way, multiple lists are generated by the preprocessor and each list
gets its own initialization function. Those are called from the main
sws_rgb2rgb_init function, if applicable.
Originally committed as revision 22978 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-11 21:00:25 +00:00
Diego Biurrun
911406f2c4
typo
...
Originally committed as revision 22932 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-07 14:07:51 +00:00
Carl Eugen Hoyos
94bd08b069
Fix crash when trying to convert from or to RGBi (i<15) as in bgr8torgb24
...
Originally committed as revision 22910 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-03 16:22:19 +00:00
Marc Hoffman
8ec491e3fd
Handle proper compilation on Mac OS X.
...
Fix data alignment bug (the original purpose of the code is unclear, though).
patch by Marc Hoffman, mmh pleasantst com
Originally committed as revision 22847 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-03-30 22:09:13 +00:00
Michael Niedermayer
edf97a75f9
fix full range (jpeg yuv) chroma
...
Originally committed as revision 22713 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-03-18 12:31:53 +00:00
Karl H. Beckers
6cbac7ed3a
Add PIX_FMT_PAL8 to isPacked().
...
patch by "Karl H. Beckers", karl.h.beckers gmx net
Originally committed as revision 22487 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-03-08 10:02:49 +00:00
Michael Niedermayer
dd9bdeb9f3
a small step toward 4 plane support
...
Originally committed as revision 22411 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-03-02 13:33:18 +00:00
Michael Niedermayer
0c84001325
copy src to prevent the user supplied argumet from being changed
...
Originally committed as revision 22410 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-03-02 13:32:10 +00:00
Reimar Döffinger
9340a99588
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
2007-03-01 19:48:40 +00:00
Diego Biurrun
2bfdde2435
Remove useless conditional.
...
Originally committed as revision 22355 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-02-27 00:19:01 +00:00
Reimar Döffinger
adcec46a83
Add av_ prefix to clip functions
...
Originally committed as revision 22339 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-02-25 10:27:43 +00:00
Diego Biurrun
606f68bd10
cosmetics: typo fixes, usefuLL --> useful and aswell --> as well
...
Originally committed as revision 22307 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-02-22 00:18:10 +00:00
Michael Niedermayer
20da77449d
negative stride and h_size-=8 fix
...
Originally committed as revision 22247 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-02-17 13:28:44 +00:00
Michael Niedermayer
18064f5cf3
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
2007-02-17 11:36:02 +00:00
Michael Niedermayer
e28630fc70
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
2007-02-16 21:17:15 +00:00
Luca Barbato
94d122e96e
stray fflush spotted by Aurel
...
Originally committed as revision 22051 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-01-28 20:38:35 +00:00
Luca Barbato
66e9de3891
Make example and test build and link correctly
...
Originally committed as revision 22048 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-01-28 17:52:59 +00:00
Luca Barbato
da095a23a1
av_logify
...
Originally committed as revision 22047 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-01-28 17:51:41 +00:00
Diego Biurrun
91f2de5e18
Simplify conditional compilation handling.
...
Originally committed as revision 22009 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-01-25 00:35:29 +00:00
Luca Abeni
2d529db50f
Pass a context to av_log(), when possible
...
Originally committed as revision 21999 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-01-23 13:41:45 +00:00
Diego Biurrun
2c86a5786a
Fix license headers and FSF postal address.
...
Originally committed as revision 21994 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-01-22 01:21:36 +00:00
Diego Biurrun
10ef990d96
cosmetics: typo pallete --> palette
...
Originally committed as revision 21892 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-01-13 04:32:14 +00:00
Luca Abeni
d28ef27031
deprecate sws_scale_ordered(), as it now is a duplicate of sws_scale()
...
Originally committed as revision 21888 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-01-12 15:45:47 +00:00
Luca Abeni
703b56fb5d
Add "support for both orderings of the slices (top->down / bottom->up)"
...
(r15249) to sws_scale() too (until now, it only was in sws_scale_ordered())
Originally committed as revision 21887 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-01-12 15:40:08 +00:00
Luca Abeni
0dea6433fd
replace some av_malloc();memset(...,0,...) sequences with av_mallocz()
...
Originally committed as revision 21835 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-01-06 12:11:25 +00:00
Luca Abeni
b2afecbe02
change all the occurrences of "FFMIN(FFMAX())" to clip_uint8() or clip()
...
Originally committed as revision 21776 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2006-12-26 18:08:40 +00:00
Luca Abeni
789237cad0
Mark some variables as possibly unused to avoid warnings
...
Originally committed as revision 21775 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2006-12-26 17:59:28 +00:00
Luca Abeni
628bc5e862
Add some explicit casts to avoid "assignment from incompatible pointer type"
...
warnings
Originally committed as revision 21774 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2006-12-26 17:41:38 +00:00
Luca Abeni
44060a7391
Add some other casts, to remove void pointers arithmetic
...
Originally committed as revision 21773 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2006-12-26 16:28:34 +00:00
Luca Abeni
7d19628b14
Add some explicit casts to avoid some warnings
...
Originally committed as revision 21772 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2006-12-26 16:21:13 +00:00
Luca Abeni
9effd94abc
Remove some void pointers arithmetic
...
Originally committed as revision 21771 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2006-12-26 16:12:37 +00:00
Luca Abeni
d32d303568
Clarify that yuv2rgb_init.c cannot be used under LGPL
...
Originally committed as revision 21730 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2006-12-22 17:57:19 +00:00
Luca Abeni
19a6be3463
Remove useless include (not needed now that libswscale uses libavutil)
...
Originally committed as revision 21728 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2006-12-22 11:22:49 +00:00
Luca Abeni
0683a5c558
Fix compilation of non-MMX code with gcc 2.95
...
Originally committed as revision 21702 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2006-12-20 15:58:15 +00:00
Luca Abeni
9bde778e73
Allow to compile swscale's non-SIMD code under the LGPL license.
...
Since mplayer always define CONFIG_GPL, this commit should not change
anything for mplayer.
Originally committed as revision 21699 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2006-12-20 13:09:29 +00:00
Reimar Döffinger
e96da13bc7
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
2006-11-27 21:59:13 +00:00
Luca Abeni
807e0c6645
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
2006-11-19 10:38:12 +00:00