summaryrefslogtreecommitdiffstats
path: root/libswscale/utils.c
Commit message (Collapse)AuthorAgeFilesLines
* Cosmetics: make more compact the code for handle_jpeg(), this also allowsstefano2010-05-191-14/+5
| | | | | | vertical alignment. Improve readability. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31186 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove PI definition and use M_PI instead.stefano2010-05-191-1/+1
| | | | | | M_PI is defined by the included file libavutil/mathematics.h. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31185 b3059339-0415-0410-9bf9-f77b7e298cf2
* libswscale: Relicense almost all x86 assembler optimizations as LGPL.diego2010-03-271-17/+14
| | | | | | | | 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
* AltiVec implies a PPC CPU, so there is no need to check for both.diego2010-03-231-3/+3
| | | | 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
* Extend the generic path of the yuv2rgb converter with support for rgb444cehoyos2010-03-181-1/+6
| | | | | | | | | 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
* 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-061-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30856 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
* 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
* 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
* Use isAnyRGB() where possiblemichael2010-01-261-5/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30435 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename isRGB() and isBGR() as their meaning is confusing.michael2010-01-261-5/+5
| | | | 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
* 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-241-0/+2
| | | | | | | | | 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
* 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-241-0/+1589
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30411 b3059339-0415-0410-9bf9-f77b7e298cf2