summaryrefslogtreecommitdiff
path: root/libswscale/utils.c
Commit message (Collapse)AuthorAge
...
* 100l, fix sws_getCachedContext. It did not set the colorspace details,Reimar Döffinger2010-10-03
| | | | | | | but worse it did not set up destination dimensions, thus every user of it would necessarily fail. Originally committed as revision 32424 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Set default values for the scale context in sws_alloc_context().Stefano Sabatini2010-09-29
| | | | Originally committed as revision 32415 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Cosmetics: put "if (...)" and "av_log(...)" in the same line forStefano Sabatini2010-09-29
| | | | | | improving vertical alignment and readability. Originally committed as revision 32405 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Put if (...) av_log() in the same line, more compact and increaseStefano Sabatini2010-09-29
| | | | | | readibility. Originally committed as revision 32404 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Cosmetics: fix braces placement.Stefano Sabatini2010-09-29
| | | | Originally committed as revision 32402 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Deprecate sws_getContext(), use sws_alloc_context() andStefano Sabatini2010-09-28
| | | | | | sws_init_context() instead. Originally committed as revision 32401 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Y400A (gray alpha) input support in libswscaleBaptiste Coudurier2010-09-27
| | | | Originally committed as revision 32394 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* swscale: clear SWS_CPU_CAPS_SSE2 in update_flags_cpu() missed in r32068Janne Grunau2010-09-27
| | | | Originally committed as revision 32393 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* cosmetics: break long line update_flags_cpuJanne Grunau2010-09-27
| | | | Originally committed as revision 32392 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Split alloc and init of context so that parameters can be set in the contextMichael Niedermayer2010-09-26
| | | | | | | instead of requireing being passed through function parameters. This also makes sws work with AVOptions. Originally committed as revision 32368 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* swscale: use full chroma input for point scalerRamiro Polla2010-09-26
| | | | Originally committed as revision 32360 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* swscale: also update flags on sws_getCachedContext()Ramiro Polla2010-09-06
| | | | Originally committed as revision 32052 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* fix anonymous memory mapping for NetBSDGrant Carver2010-08-19
| | | | | | | | | mmap() with MAP_ANONYMOUS requires the file descriptor to be -1 in NetBSD. Linux just ignores this parameter. Patch by Grant Carver <grantc at cat dot co dot za> Originally committed as revision 31984 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* darwin: allow 64-bit darwin to allocate executable memoryRamiro Polla2010-07-21
| | | | | | | | | darwin requires _DARWIN_C_SOURCE to be defined for MAP_ANON, which is used by swscale to determine whether to use malloc() or mmap(). 64-bit darwin does not have an executable heap, so mmap() must be used instead of malloc(), and therefore _DARWIN_C_SOURCE must be defined. Originally committed as revision 31760 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Move internal scale context fields initialization fromStefano Sabatini2010-06-01
| | | | | | | | sws_setColorspaceDetails() to ff_yuv2rgb_c_init_tables(). Allow to factorize duplicated code. Originally committed as revision 31300 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Cosmetics: make more compact the code for handle_jpeg(), this also allowsStefano Sabatini2010-05-19
| | | | | | vertical alignment. Improve readability. Originally committed as revision 31186 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Remove PI definition and use M_PI instead.Stefano Sabatini2010-05-19
| | | | | | M_PI is defined by the included file libavutil/mathematics.h. Originally committed as revision 31185 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* libswscale: Relicense almost all x86 assembler optimizations as LGPL.Diego Biurrun2010-03-27
| | | | | | | 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-23
| | | | Originally committed as revision 30954 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Do not compile AltiVec code when AltiVec is not available; not even inDiego Biurrun2010-03-23
| | | | | | | runtime cpudetection mode. Fixes compilation with '--enable-runtime-cpudetect --disable-altivec'. Originally committed as revision 30952 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Extend the generic path of the yuv2rgb converter with support for rgb444Janusz Krzysztofik2010-03-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
* Check for allocation failure for c->lumMmx2FilterCode and c->chrMmx2FilterCode.Reimar Döffinger2010-03-08
| | | | Originally committed as revision 30864 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Fix memleak due to incorrect VirtualFree arguments: size must be 0 for ↵Reimar Döffinger2010-03-08
| | | | | | MEM_RELEASE. Originally committed as revision 30863 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Avoid duplication of usePal() macro.Stefano Sabatini2010-03-06
| | | | Originally committed as revision 30856 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Make sws_dcVec static: It is only used inside libswscale/utils.c.Carl Eugen Hoyos2010-02-28
| | | | Originally committed as revision 30787 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Remove pointless empty line.Stefano Sabatini2010-02-25
| | | | Originally committed as revision 30730 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Reindent and fix brace placement.Stefano Sabatini2010-02-18
| | | | Originally committed as revision 30643 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Vertically align a list of comparisons in sws_getCachedContext().Stefano Sabatini2010-02-18
| | | | Originally committed as revision 30642 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Merge two if conditions, allow to decrese the level of indentation ofStefano Sabatini2010-02-18
| | | | | | the block. Originally committed as revision 30641 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Simplify how usesVFilter and usesHFilter are set.Stefano Sabatini2010-02-05
| | | | Originally committed as revision 30520 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Declare support for the pixel formats:Stefano Sabatini2010-01-31
| | | | | | | | | | | | | | | | | | | | 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 Originally committed as revision 30474 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Use isAnyRGB() where possibleMichael Niedermayer2010-01-26
| | | | 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-26
| | | | Originally committed as revision 30433 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Merge two "if (flags & SWS_PRINT_INFO) { ... }" blocks, slightlyStefano Sabatini2010-01-25
| | | | | | simplify code. Originally committed as revision 30432 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Merge two "if (flags & SWS_PRINT_INFO) { ... }" blocks.Stefano Sabatini2010-01-24
| | | | Originally committed as revision 30425 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Use av_get_bits_per_pixel() for computing the bits per pixel of theStefano Sabatini2010-01-24
| | | | | | | | 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
* Don't redefine M_PI. It is already defined from libavutil/mathematics.h.Ramiro Polla2010-01-24
| | | | Originally committed as revision 30412 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Split swscale.c into scaler code (swscale.c) and utility code (utils.c).Ramiro Polla2010-01-24
Originally committed as revision 30411 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale