Commit Graph

74 Commits

Author SHA1 Message Date
stefano 387aa47084 Add support to BGR444/RGB444 foreign endian output in libswscale.
Patch by Janusz Krzysztofik |jkrzyszt ^ tis icnet pl|.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30855 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-06 11:27:31 +00:00
benoit de6f717b09 Cosmetics: fix vertical alignment.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30842 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-05 08:41:35 +00:00
benoit 11d73c297d libswscale: Extend the unaccelerated path of the unscaled yuv2rgb special
converter with support for rgb444 output format.
Patch by Janusz Krzysztofik jkrzyszt chez tis icnet pl


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30841 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-05 08:32:54 +00:00
cehoyos 487b94aa88 Support BGR555, BGR565, RGB555 and RGB565 foreign endian output in
libswscale.

Patch by Alexis Ballier, alexis D ballier A gmail


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30840 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-04 16:57:04 +00:00
stefano 83b756a65d Apply consistency nit.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30729 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-25 21:12:38 +00:00
conrad 2e9988220c Add function to translate SWS_CS_* to coefficient array
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30513 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-05 16:09:03 +00:00
stefano 213092c8dc Use av_get_bits_per_pixel() for computing the bits per pixel of the
source and destination format, cache those values in the newly added
SwsContext:srcFormatBpp and SwsContext:dstFormatBpp fields, and remove
the fmt_depth() function.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30419 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-24 12:55:05 +00:00
zuxy 4455af6720 User friendly warning message that gives out names of source and target formats
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30370 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-19 05:21:17 +00:00
zuxy 2257b14a19 Define out currently unused static functions.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30365 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-18 08:42:04 +00:00
zuxy 0bd2e793c1 Const correctness for src pointer. Remove all constness related warnings in
libswscale.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30306 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-15 08:51:51 +00:00
ramiro b490da35c8 Cosmetics:
- Place curly brackets in the same line as while/for/if/switch/else/do;
- Place curly brackets at column 0 in the next line starting a function.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29523 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-16 21:11:28 +00:00
kostya 1e1a332bbf Remove 'offset' argument from PUTRGB* macros since it's unneeded and caused
pixel swapping during some YUV2RGB conversions.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29483 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-09 15:04:17 +00:00
diego cd6a9ea77a The AltiVec code in libswscale no longer is under GPL.
Remove one erroneous preprocessor check for CONFIG_GPL in the AltiVec code.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29412 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-07-05 20:10:59 +00:00
kostya 615d3ead23 YUV into RGB48 BE/LE conversion support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29342 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-06-02 12:30:11 +00:00
sdrik c8509646d5 Remove useless duplicated code in yuv2rgb_c_32, yuva2rgba_c and yuva2argb_c
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29240 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-04-27 14:25:44 +00:00
ramiro ab921d2cb6 Move yuv2rgb code to subdirs.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29063 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-26 01:30:10 +00:00
sdrik e7d0a352fc Simpler and more elegant fix to the x86_32/OSX+PIC build failure
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29046 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-24 07:09:19 +00:00
sdrik 3349369dfa Fix build failure on x86_32 Mac OS X with PIC enabled
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29022 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-21 12:16:32 +00:00
sdrik 6667f198c2 Add YUVA420P -> RGBA/BGRA/ARGB/ABGR unscaled converters
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29010 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-20 14:14:28 +00:00
ramiro 72e3d88202 Do not assume long is same width as x86 register.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28992 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-18 17:07:30 +00:00
diego a186cc5523 Consistently use ff_ prefixes for internal symbols.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28988 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-18 08:06:08 +00:00
diego 972614cb38 Fix ff_bfin_yuv2rgb_get_func_ptr() vs. sws_ff_bfin_yuv2rgb_get_func_ptr() name
mismatch. The function is now called sws_yuv2rgb_get_func_ptr_bfin().


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28982 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-17 12:05:56 +00:00
sdrik 6be0336c0d Add an alpha parameter to the YUV2RGBFUNC macro to ease the upcoming yuva2rgb patch
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28978 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-16 20:04:32 +00:00
reimar 25a27fd17a Fix braindead and broken way to calculate abase, fixes regression tests on
big-endian systems.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28773 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-01 11:33:10 +00:00
sdrik 3a81bf82a0 When converting from a non alpha format to an alpha format, defaults to all ones rather than all zeroes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28756 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-28 08:01:52 +00:00
diego e1724e3000 Rename yuv2rgb2.c --> yuv2rgb.c.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28723 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-24 22:40:20 +00:00
diego 9e540cc708 Remove GPL version of yuv2rgb.c that has been replaced by an LGPL substitute.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28716 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-24 14:50:28 +00:00
kostya ab3f56987f Prefix visible YUV2RGB functions with sws_
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28496 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-09 14:31:53 +00:00
kostya c5bf12666b Give better name to Inverse_Table_6_9
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28495 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-09 14:17:30 +00:00
diego ce1a533059 Remove file name from file headers.
It provides no useful information and breaks on renames.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28494 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-09 11:19:19 +00:00
diego cecfbf85db HAVE_3DNOW --> HAVE_AMD3DNOW to sync with latest configure changes.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28358 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-25 19:58:33 +00:00
aurel be34ba7a39 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
They are now always defined to either 0 or 1.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28311 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-14 00:13:56 +00:00
flameeyes 98fb4aebc2 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.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27736 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-09 11:12:38 +00:00
cehoyos 99877b2fc6 Remove b5Dither, g5Dither and r5Dither from libswscale.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27718 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-04 18:50:39 +00:00
cehoyos 15d516ffdf Remove g6Dither from libswscale.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27715 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-04 16:40:35 +00:00
michael 5f9a7d91b9 Move dither tables from yuv2rgb to swscale, they have been written by me and
can be used under LGPL.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27609 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-14 18:00:49 +00:00
michael fd6cd1c95c Fix chroma yuv->rgb tables for jpeg style yuv, this was missed as it
only affects the C code while mmx uses different tables.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27576 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-11 00:09:01 +00:00
michael 172a4bfaea Support PIX_FMT_RGB32_1 and PIX_FMT_BGR32_1.
Fixes issue248.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27522 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-04 21:59:15 +00:00
michael b387cc68b6 Fix rgb15/16 vs. bgr part1.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27516 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-04 18:14:29 +00:00
diego 1e95d9f4ef spelling/grammar/wording overhaul
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27190 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-04 13:49:45 +00:00
lu_zero 275128c8d2 Build sparc arch specific code using the Makefile
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26670 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-05-04 20:19:33 +00:00
diego 37d20cbc93 Fix wrong #endif comment.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26300 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-03-29 15:51:05 +00:00
diego ebfa5122b3 Classify mlib as a configurable option, not as a hardware feature.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26275 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-03-25 21:30:46 +00:00
diego c388f79c0f Mark Y variable in EPILOG macro as av_unused to avoid unused variable warnings.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26220 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-03-11 09:01:38 +00:00
cehoyos 50899e9083 Discard two symbols from libswscale.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26060 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-02-22 08:08:19 +00:00
cehoyos 9e83b53822 Make dither4 & dither8 const.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25967 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-02-09 22:57:37 +00:00
reimar da8ab92c7d Make some assembler constants global instead of declaring them multiple times.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25910 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-29 14:58:10 +00:00
reimar 4ceb92650a Use DECLARE_ASM_CONST where possible in libswscale code
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25903 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-28 14:38:11 +00:00
diego b13c49493c Revert wrong ARCH_BFIN --> HAVE_BFIN change.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24627 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-27 08:00:22 +00:00
mhoffman 503a85926f renaming ARCH_BFIN to HAVE_BFIN
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24309 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-31 14:57:50 +00:00