summaryrefslogtreecommitdiffstats
path: root/libswscale
Commit message (Collapse)AuthorAgeFilesLines
* Replace some "m" constraints by MANGLE to avoid issues with some compilers notreimar2010-03-311-106/+43
| | | | | | | being able to compile it and deduplicate the code at the same time. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30978 b3059339-0415-0410-9bf9-f77b7e298cf2
* libswscale: Relicense almost all x86 assembler optimizations as LGPL.diego2010-03-275-74/+59
| | | | | | | | This is of course done with permissions from the authors. The only GPL component left are MMX optimizations for YUV to RGB conversion. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30965 b3059339-0415-0410-9bf9-f77b7e298cf2
* HAVE_MMX2 implies HAVE_MMX, so checking the latter is enough.diego2010-03-261-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30961 b3059339-0415-0410-9bf9-f77b7e298cf2
* AltiVec implies a PPC CPU, so there is no need to check for both.diego2010-03-232-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30954 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not compile AltiVec code when AltiVec is not available; not even indiego2010-03-231-3/+3
| | | | | | | | runtime cpudetection mode. Fixes compilation with '--enable-runtime-cpudetect --disable-altivec'. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30952 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace wrong condition name in #endif comment by correct instance.diego2010-03-191-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30938 b3059339-0415-0410-9bf9-f77b7e298cf2
* Check whether COMPILE_ALTIVEC is defined, not if it is set to a 0/1 value.diego2010-03-191-1/+1
| | | | | | | COMPILE_ALTIVEC is never set to 1, it is just #defined. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30937 b3059339-0415-0410-9bf9-f77b7e298cf2
* Extend the generic path of the yuv2rgb converter with support for rgb444cehoyos2010-03-182-2/+24
| | | | | | | | | output format. Patch by Janusz Krzysztofik, jkrzyszt A tis D icnet D pl git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30934 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix compilation on powerpc with --disable-altivecsiretart2010-03-091-2/+2
| | | | | | | | | in case altivec is disabled, even compilation of code using altivec keywords or asm must be avoided. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30869 b3059339-0415-0410-9bf9-f77b7e298cf2
* Check for allocation failure for c->lumMmx2FilterCode and c->chrMmx2FilterCode.reimar2010-03-081-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30864 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix memleak due to incorrect VirtualFree arguments: size must be 0 for ↵reimar2010-03-081-2/+2
| | | | | | MEM_RELEASE. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30863 b3059339-0415-0410-9bf9-f77b7e298cf2
* Avoid duplication of usePal() macro.stefano2010-03-063-3/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30856 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add support to BGR444/RGB444 foreign endian output in libswscale.stefano2010-03-062-4/+12
| | | | | | Patch by Janusz Krzysztofik |jkrzyszt ^ tis icnet pl|. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30855 b3059339-0415-0410-9bf9-f77b7e298cf2
* try to avoid returning odd slices.michael2010-03-051-1/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30847 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cosmetics: fix vertical alignment.benoit2010-03-051-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30842 b3059339-0415-0410-9bf9-f77b7e298cf2
* libswscale: Extend the unaccelerated path of the unscaled yuv2rgb specialbenoit2010-03-053-1/+59
| | | | | | | | 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
* Support BGR555, BGR565, RGB555 and RGB565 foreign endian output incehoyos2010-03-043-10/+28
| | | | | | | | | 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
* Revert r30825, it was not supposed to be committed.stefano2010-03-042-35/+18
| | | | | | | | 127.32L to me, beware when using git svn dcommit for committing stuff to svn... git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30827 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fill the r, g, b values used for computing the c->pal_yuv table in thestefano2010-03-041-0/+2
| | | | | | | | | case where the source format is PIX_FMT_GRAY8. This is required as PIX_FMT_GRAY8 has been declared as a paletted format in FFmpeg r22191, fix GRAY8 -> RGB conversion. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30826 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make swscale-test take in input the name of the input and the outputstefano2010-03-042-18/+35
| | | | | | | | | | | | | | format. Make swscale-test only perform the test from the input to the output format rather than perform all. Also implement swscale-test-all.sh, for performing all the tests. Improve flexibility of the swscale-test tool, this way is simpler to perform only a subset of tests. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30825 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make sws_dcVec static: It is only used inside libswscale/utils.c.cehoyos2010-02-281-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30787 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove pointless empty line.stefano2010-02-251-1/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30730 b3059339-0415-0410-9bf9-f77b7e298cf2
* Apply consistency nit.stefano2010-02-251-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30729 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reorder buffer debug. Also print out if slice was buffered.ramiro2010-02-231-10/+12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30722 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reindent and fix brace placement.stefano2010-02-181-5/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30643 b3059339-0415-0410-9bf9-f77b7e298cf2
* Vertically align a list of comparisons in sws_getCachedContext().stefano2010-02-181-5/+9
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30642 b3059339-0415-0410-9bf9-f77b7e298cf2
* Merge two if conditions, allow to decrese the level of indentation ofstefano2010-02-181-4/+4
| | | | | | | the block. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30641 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplify how usesVFilter and usesHFilter are set.stefano2010-02-051-9/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30520 b3059339-0415-0410-9bf9-f77b7e298cf2
* Apply misc fixes to sws_getCoefficients() doxy.stefano2010-02-051-2/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30519 b3059339-0415-0410-9bf9-f77b7e298cf2
* Satisfy consistency need:stefano2010-02-051-1/+1
| | | | | | | int * sws_getCoefficients -> int *sws_getCoefficients. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30518 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add function to translate SWS_CS_* to coefficient arrayconrad2010-02-052-1/+14
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30513 b3059339-0415-0410-9bf9-f77b7e298cf2
* Implement shuffle_bytes_abcd() functions and use them for shufflingstefano2010-02-033-6/+55
| | | | | | | | | | | | | bytes when converting between RGB32 variants. In particular fix the argb -> rgba and abgr -> bgra conversions. See the thread: Subject: [FFmpeg-devel] [RFC] RGB32 / BGR32 ethernal bug Date: Tue, 26 Jan 2010 01:06:18 +0100 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30501 b3059339-0415-0410-9bf9-f77b7e298cf2
* Declare support for the pixel formats:stefano2010-01-311-0/+8
| | | | | | | | | | | | | | | | | | | | | PIX_FMT_YUVJ420P PIX_FMT_YUVJ422P PIX_FMT_YUVJ440P PIX_FMT_YUVJ444P in the isSupported{In,Out} macros. These pixel formats are not true pixel formats but hacks specific to JPEG in libavcodec. They are deprecated and should be removed (that is from libavcodec first and libswscale second)... but they must be tested by swscale-test. See thread: Subject: [FFmpeg-devel] [PATCH] Extend show_pix_fmts() to make it print the input/output support Date: 2010-01-30 15:54:08 GMT git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30474 b3059339-0415-0410-9bf9-f77b7e298cf2
* Blackfin: use SRAM only when CONFIG_SRAM is setmru2010-01-313-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30472 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reindent.stefano2010-01-301-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30467 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use a consistent convention for the names of the internal wrapperstefano2010-01-301-30/+30
| | | | | | | functions. Improve readability. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30466 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix randomness of the swscale-test output.stefano2010-01-301-3/+3
| | | | | | | | | See the thread: Subject: [FFmpeg-devel] [RFC] Make swscale-test perform only one convertion Date: Fri, 29 Jan 2010 01:52:23 +0100 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30457 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename swscale-example to swscale-test, to better reflect the intendedstefano2010-01-272-2/+1
| | | | | | | use of the program. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30439 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use isAnyRGB() where possiblemichael2010-01-263-13/+11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30435 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add 3 more RGB makros that allow specifying RGB in bytes and any rgb/bgr.michael2010-01-261-0/+16
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30434 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename isRGB() and isBGR() as their meaning is confusing.michael2010-01-264-19/+19
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30433 b3059339-0415-0410-9bf9-f77b7e298cf2
* Merge two "if (flags & SWS_PRINT_INFO) { ... }" blocks, slightlystefano2010-01-251-2/+0
| | | | | | | simplify code. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30432 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix mis-computation of the needsDither variable erroneously introducedstefano2010-01-241-1/+1
| | | | | | | | | in r30419, which was causing a swscale-example regression. Also increase my liter count by 20.0 units. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30431 b3059339-0415-0410-9bf9-f77b7e298cf2
* Merge two "if (flags & SWS_PRINT_INFO) { ... }" blocks.stefano2010-01-241-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30425 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use av_get_bits_per_pixel() for computing the bits per pixel of thestefano2010-01-244-46/+12
| | | | | | | | | 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
* Indent.ramiro2010-01-241-94/+94
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30413 b3059339-0415-0410-9bf9-f77b7e298cf2
* Don't redefine M_PI. It is already defined from libavutil/mathematics.h.ramiro2010-01-241-10/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30412 b3059339-0415-0410-9bf9-f77b7e298cf2
* Split swscale.c into scaler code (swscale.c) and utility code (utils.c).ramiro2010-01-244-1539/+1620
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30411 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move array specifiers outside DECLARE_ALIGNED() invocationsmru2010-01-224-18/+18
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30385 b3059339-0415-0410-9bf9-f77b7e298cf2
* More const-correctness for sws_scaleconrad2010-01-212-5/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30381 b3059339-0415-0410-9bf9-f77b7e298cf2
* Document some more of SwsContext.ramiro2010-01-201-26/+54
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30380 b3059339-0415-0410-9bf9-f77b7e298cf2
* Avoid more pointless tests, the input and output formats need to bestefano2010-01-201-2/+2
| | | | | | | | supported both as input and as output, as the conversion performed is: yuva420p -> src -> dst -> yuva420p. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30379 b3059339-0415-0410-9bf9-f77b7e298cf2
* Split overly long line.stefano2010-01-191-1/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30378 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make selfTest() perform tests where both the input and output formatsstefano2010-01-191-0/+6
| | | | | | | are supported, avoid pointless loops. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30377 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make const prototypes for input sources of sws_scale_* stricter.benoit2010-01-192-4/+4
| | | | | | | Patch by Alexis Ballier gmailify($firstname, $familyname) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30374 b3059339-0415-0410-9bf9-f77b7e298cf2
* swscale-example: Add comment about the use of av_{malloc,free}.ramiro2010-01-191-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30373 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove useless forward declaration.ramiro2010-01-191-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30371 b3059339-0415-0410-9bf9-f77b7e298cf2
* User friendly warning message that gives out names of source and target formatszuxy2010-01-191-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30370 b3059339-0415-0410-9bf9-f77b7e298cf2
* swscale-example: use av_malloc()mru2010-01-191-10/+11
| | | | | | | Image buffers require 16-byte alignment, so av_malloc() should be used. Fixes crash on PPC. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30369 b3059339-0415-0410-9bf9-f77b7e298cf2
* Split long line.stefano2010-01-181-1/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30368 b3059339-0415-0410-9bf9-f77b7e298cf2
* Convert int -> enum PixelFormat in doTest().stefano2010-01-181-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30367 b3059339-0415-0410-9bf9-f77b7e298cf2
* Define out currently unused static functions.zuxy2010-01-181-1/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30365 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove stray '\' at the end of macro definitions.stefano2010-01-171-15/+14
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30362 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove duplicated or pointless newlines.stefano2010-01-171-12/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30361 b3059339-0415-0410-9bf9-f77b7e298cf2
* Factorize error message logging, log it if the converter cannot bestefano2010-01-171-7/+6
| | | | | | | set. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30360 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reindent after the last commit.stefano2010-01-171-15/+15
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30359 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make the pal2rgbWrapper set and use the converter in pal2rgbWrapperstefano2010-01-171-2/+3
| | | | | | | | | only if the input format is paletted. Fix potential crashes/weirdness if the input format is non-paletted. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30358 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove double constmru2010-01-171-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30357 b3059339-0415-0410-9bf9-f77b7e298cf2
* Factorize error message logging in rgb2rgbWrapper().stefano2010-01-171-8/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30356 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reindentmru2010-01-171-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30350 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove inline from initFilter()mru2010-01-171-1/+1
| | | | | | It makes no sense having that function inlined. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30349 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add a const qualifier in a cast, fix the gcc warning:stefano2010-01-171-1/+1
| | | | | | | | swscale.c: In function ‘sws_scale’: swscale.c:2968: warning: cast discards qualifiers from pointer target type git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30341 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add a const qualifier in a cast, fix the gcc warning:stefano2010-01-171-1/+1
| | | | | | | | swscale.c: In function ‘planarCopy’: swscale.c:2256: warning: cast discards qualifiers from pointer target type git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30340 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix typo, "get rid off" -> "get rid of".stefano2010-01-161-1/+1
| | | |