summaryrefslogtreecommitdiffstats
path: root/libswscale/swscale.c
Commit message (Collapse)AuthorAgeFilesLines
* deprecate palette8topacked32 in favor of public API functions ↵Reinhard Tartler2010-06-011-6/+29
| | | | | | | | | | | sws_convertPalette8ToPacked32 and -24 additionallym deprecate palette8torgb16 and its bgr variant without replacement. These functions are not meant to be used by applications. Discussed at: http://comments.gmane.org/gmane.comp.video.ffmpeg.devel/109340 Originally committed as revision 31301 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Remove PI definition and use M_PI instead.Stefano Sabatini2010-05-191-6/+1
| | | | | | M_PI is defined by the included file libavutil/mathematics.h. Originally committed as revision 31185 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Revert r31153. It failed to build on:Ramiro Polla2010-05-121-8/+8
| | | | | | | | | | | x86_64 / Mac OS X gcc 4.0.1 x86_64 / Linux icc (all) x86_64 / Linux gcc 4.0.4 x86_64 / OpenBSD gcc 3.3.5 x86_64 / Linux suncc 5.10 and there are some reports of crashes. Originally committed as revision 31170 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Use int instead of long to pass width parameters in non-public functions.Ramiro Polla2010-05-111-8/+8
| | | | | | | long was being incorrectly used as an x86-sized register, both for 32 and 64 bits, but this is not the case in win64. Originally committed as revision 31153 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* libswscale: Relicense almost all x86 assembler optimizations as LGPL.Diego Biurrun2010-03-271-19/+16
| | | | | | | This is of course done with permissions from the authors. The only GPL component left are MMX optimizations for YUV to RGB conversion. Originally committed as revision 30965 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* AltiVec implies a PPC CPU, so there is no need to check for both.Diego Biurrun2010-03-231-1/+1
| | | | Originally committed as revision 30954 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Check whether COMPILE_ALTIVEC is defined, not if it is set to a 0/1 value.Diego Biurrun2010-03-191-1/+1
| | | | | | COMPILE_ALTIVEC is never set to 1, it is just #defined. Originally committed as revision 30937 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Extend the generic path of the yuv2rgb converter with support for rgb444Janusz Krzysztofik2010-03-181-1/+18
| | | | | | | | output format. Patch by Janusz Krzysztofik, jkrzyszt A tis D icnet D pl Originally committed as revision 30934 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Fix compilation on powerpc with --disable-altivecReinhard Tartler2010-03-091-2/+2
| | | | | | | in case altivec is disabled, even compilation of code using altivec keywords or asm must be avoided. Originally committed as revision 30869 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Avoid duplication of usePal() macro.Stefano Sabatini2010-03-061-1/+0
| | | | Originally committed as revision 30856 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* libswscale: Extend the unaccelerated path of the unscaled yuv2rgb specialJanusz Krzysztofik2010-03-051-1/+8
| | | | | | | converter with support for rgb444 output format. Patch by Janusz Krzysztofik jkrzyszt chez tis icnet pl Originally committed as revision 30841 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Support BGR555, BGR565, RGB555 and RGB565 foreign endian output inAlexis Ballier2010-03-041-4/+8
| | | | | | | | libswscale. Patch by Alexis Ballier, alexis D ballier A gmail Originally committed as revision 30840 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Fill the r, g, b values used for computing the c->pal_yuv table in theStefano Sabatini2010-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. Originally committed as revision 30826 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Implement shuffle_bytes_abcd() functions and use them for shufflingStefano Sabatini2010-02-031-6/+30
| | | | | | | | | | | | 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 Originally committed as revision 30501 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Reindent.Stefano Sabatini2010-01-301-4/+4
| | | | Originally committed as revision 30467 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Use a consistent convention for the names of the internal wrapperStefano Sabatini2010-01-301-30/+30
| | | | | | | | | functions. Improve readability. -This line, and those below, will be ignored-- swscale.c Originally committed as revision 30466 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Use isAnyRGB() where possibleMichael Niedermayer2010-01-261-7/+6
| | | | Originally committed as revision 30435 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Rename isRGB() and isBGR() as their meaning is confusing.Michael Niedermayer2010-01-261-11/+11
| | | | Originally committed as revision 30433 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Fix mis-computation of the needsDither variable erroneously introducedStefano Sabatini2010-01-241-1/+1
| | | | | | | | in r30419, which was causing a swscale-example regression. Also increase my liter count by 20.0 units. Originally committed as revision 30431 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Use av_get_bits_per_pixel() for computing the bits per pixel of theStefano Sabatini2010-01-241-7/+7
| | | | | | | | source and destination format, cache those values in the newly added SwsContext:srcFormatBpp and SwsContext:dstFormatBpp fields, and remove the fmt_depth() function. Originally committed as revision 30419 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Indent.Ramiro Polla2010-01-241-94/+94
| | | | Originally committed as revision 30413 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Split swscale.c into scaler code (swscale.c) and utility code (utils.c).Ramiro Polla2010-01-241-1538/+13
| | | | Originally committed as revision 30411 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Move array specifiers outside DECLARE_ALIGNED() invocationsMåns Rullgård2010-01-221-11/+11
| | | | Originally committed as revision 30385 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* More const-correctness for sws_scaleDavid Conrad2010-01-211-2/+2
| | | | Originally committed as revision 30381 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Split overly long line.Stefano Sabatini2010-01-191-1/+2
| | | | Originally committed as revision 30378 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Make const prototypes for input sources of sws_scale_* stricter.Alexis Ballier2010-01-191-2/+2
| | | | | | Patch by Alexis Ballier gmailify($firstname, $familyname) Originally committed as revision 30374 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Remove useless forward declaration.Ramiro Polla2010-01-191-2/+0
| | | | Originally committed as revision 30371 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Remove stray '\' at the end of macro definitions.Stefano Sabatini2010-01-171-15/+14
| | | | Originally committed as revision 30362 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Remove duplicated or pointless newlines.Stefano Sabatini2010-01-171-12/+0
| | | | Originally committed as revision 30361 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Factorize error message logging, log it if the converter cannot beStefano Sabatini2010-01-171-7/+6
| | | | | | set. Originally committed as revision 30360 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Reindent after the last commit.Stefano Sabatini2010-01-171-15/+15
| | | | Originally committed as revision 30359 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Make the pal2rgbWrapper set and use the converter in pal2rgbWrapperStefano Sabatini2010-01-171-2/+3
| | | | | | | | only if the input format is paletted. Fix potential crashes/weirdness if the input format is non-paletted. Originally committed as revision 30358 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Remove double constMåns Rullgård2010-01-171-1/+1
| | | | Originally committed as revision 30357 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Factorize error message logging in rgb2rgbWrapper().Stefano Sabatini2010-01-171-8/+4
| | | | Originally committed as revision 30356 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* ReindentMåns Rullgård2010-01-171-2/+2
| | | | Originally committed as revision 30350 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Remove inline from initFilter()Måns Rullgård2010-01-171-1/+1
| | | | | | It makes no sense having that function inlined. Originally committed as revision 30349 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Add a const qualifier in a cast, fix the gcc warning:Stefano Sabatini2010-01-171-1/+1
| | | | | | | swscale.c: In function ‘sws_scale’: swscale.c:2968: warning: cast discards qualifiers from pointer target type Originally committed as revision 30341 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Add a const qualifier in a cast, fix the gcc warning:Stefano Sabatini2010-01-171-1/+1
| | | | | | | swscale.c: In function ‘planarCopy’: swscale.c:2256: warning: cast discards qualifiers from pointer target type Originally committed as revision 30340 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Fix typo, "get rid off" -> "get rid of".Stefano Sabatini2010-01-161-1/+1
| | | | Originally committed as revision 30338 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Revert r30331, which broke compilation.Stefano Sabatini2010-01-161-3/+12
| | | | | | | swScale_C is not templated if any optimization is to be used and !runtime_cpudetect. Originally committed as revision 30334 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Factorize the code which calls the non optimized C functions inStefano Sabatini2010-01-161-12/+3
| | | | | | getSwsFunc(). Originally committed as revision 30331 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Prefer "to %s%s" over "to%s %s", slightly more readable.Stefano Sabatini2010-01-161-2/+2
| | | | Originally committed as revision 30330 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Simplify code in sws_getContext() which logs if the destination formatStefano Sabatini2010-01-161-6/+5
| | | | | | | support dithering, remove the const char *dither variable and use a literal string instead. Originally committed as revision 30329 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Reuse h{lum,chr}Filter{,Pos} variables for MMX2 fast_bilinear horizontal scaler.Ramiro Polla2010-01-161-10/+6
| | | | Originally committed as revision 30327 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Factorize code which logs the source and destination formats inStefano Sabatini2010-01-161-6/+4
| | | | | | sws_getContext(). Originally committed as revision 30326 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Simplify reset_ptr(): employ usePal() macro rather than enumeratingStefano Sabatini2010-01-161-6/+2
| | | | | | all the paletted formats. Originally committed as revision 30317 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Don't initialize normal horizontal filter if MMX2 filter is used.Ramiro Polla2010-01-151-17/+18
| | | | Originally committed as revision 30313 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Const correctness for src pointer. Remove all constness related warnings inZuxy Meng2010-01-151-26/+26
| | | | | | libswscale. Originally committed as revision 30306 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Fix typo.Stefano Sabatini2010-01-151-1/+1
| | | | Originally committed as revision 30304 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Remove unused clip_table code.Ramiro Polla2010-01-141-14/+0
| | | | Originally committed as revision 30303 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
OpenPOWER on IntegriCloud