Commit Graph

110 Commits

Author SHA1 Message Date
diego 5d9e73bcc6 cosmetics: Replace manual tab indentation by \n\t as in the rest of the file.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23157 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-28 11:41:11 +00:00
diego 95000b0ca7 cosmetics: Remove trailing whitespace.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23147 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-26 23:07:11 +00:00
diego 9e14239422 Don't declare -lm as a dependency of swscale-example.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23140 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-26 15:14:12 +00:00
diego 0d29d76058 Remove large automatics from stack.
patch by Marc Hoffman, mmh pleasantst com


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23117 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-26 11:05:59 +00:00
ivo 79b2f1581d preserve alpha channel when converting rgb32 to bgr32 in plain C
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23022 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-18 16:40:58 +00:00
ivo 8c86c5cc58 fix red_15mask and green_15mask. the previous values were wrong and caused
some SIMD functions to output wrong data.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23021 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-18 16:40:07 +00:00
ivo ecbdb90970 test widths all down to one. this tests whether the scalers correctly switch
to plain C when width < unit size of assembly code.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23018 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-18 14:22:42 +00:00
ivo 59a2d69862 skip MMX code in rgb24tobgr24 if the size of the input is smaller than the
size of the units the MMX code processes


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23015 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-18 09:27:59 +00:00
ivo 346fa283f5 skip MMX code in rgb32to16 if the size of the input is smaller than the
size of the units the MMX code processes


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23014 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-18 09:26:22 +00:00
ivo a3284e8e5b skip MMX code in rgb32to15 if the size of the input is smaller than the
size of the units the MMX code processes


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23013 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-18 09:24:49 +00:00
ivo f854708977 slightly faster rgb32tobgr32; avoid one add and one cmp
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23012 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-17 20:38:17 +00:00
ivo 589238fbe5 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



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23009 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-16 21:41:03 +00:00
michael a381e71128 improve horizontal chroma resolution with pal
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22994 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-15 01:27:34 +00:00
michael 31be965950 convert palette to yuv instead of converting each pixel after pal->rgb
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22993 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-15 00:53:32 +00:00
ivo ccca77761e cosmetics, expand all tabs to four spaces.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22983 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-12 19:31:35 +00:00
ivo c32cfa90c9 Replace huge switch statement by a lookup table.
Add newline to final report.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22982 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-12 19:25:36 +00:00
ivo 42ece1776c cosmetics after last commit; remove superfluous braces
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22979 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-11 22:17:58 +00:00
ivo fdc96044ff 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.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22978 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-11 21:00:25 +00:00
diego 2a39682956 typo
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22932 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-07 14:07:51 +00:00
cehoyos cb644a4a9d Fix crash when trying to convert from or to RGBi (i<15) as in bgr8torgb24
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22910 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-03 16:22:19 +00:00
diego 75cf17e3f8 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


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22847 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-30 22:09:13 +00:00
michael f605cf5f93 fix full range (jpeg yuv) chroma
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22713 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-18 12:31:53 +00:00
diego a708559fe5 Add PIX_FMT_PAL8 to isPacked().
patch by "Karl H. Beckers", karl.h.beckers gmx net


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22487 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-08 10:02:49 +00:00
michael 5a39cd78b7 a small step toward 4 plane support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22411 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-02 13:33:18 +00:00
michael 2c64943519 copy src to prevent the user supplied argumet from being changed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22410 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-02 13:32:10 +00:00
reimar 0f2246a083 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.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22401 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-01 19:48:40 +00:00
diego e3b1929925 Remove useless conditional.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22355 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-02-27 00:19:01 +00:00
reimar 0b7929b8ad Add av_ prefix to clip functions
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22339 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-02-25 10:27:43 +00:00
diego 8ed3ba4995 cosmetics: typo fixes, usefuLL --> useful and aswell --> as well
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22307 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-02-22 00:18:10 +00:00
michael 099c9b26f4 negative stride and h_size-=8 fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22247 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-02-17 13:28:44 +00:00
michael 2a0c4363cf BGR/RGB4 byte formats as input
fixing isRGB/BGR() for the byte formats


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22244 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-02-17 11:36:02 +00:00
michael db9d35b669 pal8 input
this is not optimized or anything (that is easy to add just use the existing unscaled converters if possible ...)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22236 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-02-16 21:17:15 +00:00
lu_zero 91fdfc6820 stray fflush spotted by Aurel
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22051 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-28 20:38:35 +00:00
lu_zero 3707a1426b Make example and test build and link correctly
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22048 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-28 17:52:59 +00:00
lu_zero a1dcee10f4 av_logify
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22047 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-28 17:51:41 +00:00
diego 2dc888b0c0 Simplify conditional compilation handling.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22009 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-25 00:35:29 +00:00
lucabe aaac7f6eaf Pass a context to av_log(), when possible
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21999 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-23 13:41:45 +00:00
diego 2d33f0d405 Fix license headers and FSF postal address.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21994 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-22 01:21:36 +00:00
diego addb047274 cosmetics: typo pallete --> palette
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21892 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-13 04:32:14 +00:00
lucabe 3caab47323 deprecate sws_scale_ordered(), as it now is a duplicate of sws_scale()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21888 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-12 15:45:47 +00:00
lucabe 86bfe9c6b8 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())


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21887 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-12 15:40:08 +00:00
lucabe a72f029add replace some av_malloc();memset(...,0,...) sequences with av_mallocz()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21835 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-06 12:11:25 +00:00
lucabe 43aa3a1b7e change all the occurrences of "FFMIN(FFMAX())" to clip_uint8() or clip()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21776 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-12-26 18:08:40 +00:00
lucabe 896f3ac12b Mark some variables as possibly unused to avoid warnings
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21775 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-12-26 17:59:28 +00:00
lucabe 471fc34cb7 Add some explicit casts to avoid "assignment from incompatible pointer type"
warnings


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21774 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-12-26 17:41:38 +00:00
lucabe 9d9fce6419 Add some other casts, to remove void pointers arithmetic
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21773 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-12-26 16:28:34 +00:00
lucabe c5c0e11eeb Add some explicit casts to avoid some warnings
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21772 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-12-26 16:21:13 +00:00
lucabe ac68c5b03d Remove some void pointers arithmetic
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21771 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-12-26 16:12:37 +00:00
lucabe fa035363aa Clarify that yuv2rgb_init.c cannot be used under LGPL
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21730 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-12-22 17:57:19 +00:00
lucabe b16725e8b1 Remove useless include (not needed now that libswscale uses libavutil)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21728 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-12-22 11:22:49 +00:00