summaryrefslogtreecommitdiffstats
path: root/libswscale
Commit message (Collapse)AuthorAgeFilesLines
* Remove libswscale directory in MPlayer sourcesUoti Urpala2009-07-2621-15626/+0
| | | | libswscale will be used through FFmpeg.
* Remove dependency from swscale_internal.h to lavu/internal.h, it is no longerramiro2009-07-092-7/+10
| | | | | | | | | | | | needed for DECLARE_ALIGNED. Remove dependency from swscale-example.c to swscale_internal.h by duplicating the necessary code. The duplicated code is a hack and should be removed once a cleaner pixel format information system exists. swscale-example.c is example code on how to use the library and therefore shouldn't rely on internal headers. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29415 b3059339-0415-0410-9bf9-f77b7e298cf2
* The AltiVec code in libswscale no longer is under GPL.diego2009-07-051-1/+1
| | | | | | | 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
* Use enum PixelFormat in sws_format_name() prototypemru2009-07-011-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29409 b3059339-0415-0410-9bf9-f77b7e298cf2
* AltiVec code and runtime cpudetect do not require CONFIG_GPL.diego2009-06-251-5/+5
| | | | | | | Make sure the latter is only checked for x86 optimizations, which are GPL. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29390 b3059339-0415-0410-9bf9-f77b7e298cf2
* The AltiVec optimizations of libswscale are no longer under GPL.diego2009-06-251-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29389 b3059339-0415-0410-9bf9-f77b7e298cf2
* PPC: Make sure that COMPILE_C is not deactivated if RUNTIME_CPUDETECT is set.diego2009-06-251-2/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29388 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not call rgb2rgbWrapper() for rgb48*, there is no special converter vitor2009-06-171-0/+2
| | | | | | | yet for those formats git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29371 b3059339-0415-0410-9bf9-f77b7e298cf2
* Kill warnings of possibly unused variables by using av_unused.ramiro2009-06-111-8/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29355 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix compilation: #undef standard library functions that arediego2009-06-111-0/+6
| | | | | | | forbidden within FFmpeg, but allowed in example code. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29354 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add libavutil/internal.h #include, required for the DECLARE_ALIGNED macro.diego2009-06-111-0/+1
| | | | | | | This fixes swscale-example compilation. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29353 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove '\p' doxygen markup, as it should improve plain text doxystefano2009-06-061-16/+15
| | | | | | | readability. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29351 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use DECLARE_ALIGNED macro instead of __attribute__((aligned)) for ppc code.ramiro2009-06-042-6/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29350 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace more uses of __attribute__((aligned)) by DECLARE_ALIGNED.ramiro2009-06-041-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29349 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use DECLARE_ALIGNED macro instead of gcc __attribute__.ramiro2009-06-042-39/+39
| | | | | | Patch by Pavel Pavlov <pavel at summit-tech dot ca> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29348 b3059339-0415-0410-9bf9-f77b7e298cf2
* Testing RGB48 variants requires bigger stride in swscale-example.ckostya2009-06-021-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29343 b3059339-0415-0410-9bf9-f77b7e298cf2
* YUV into RGB48 BE/LE conversion supportkostya2009-06-022-0/+57
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29342 b3059339-0415-0410-9bf9-f77b7e298cf2
* Partial (low bits ignored, no direct transcoding into other RGB formats) supportkostya2009-06-023-1/+61
| | | | | | | | for inputting RGB48BE/LE. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29341 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move colorspace conversion functions implemented in pure C from templatekostya2009-05-252-137/+138
| | | | | | | | into swscale.c git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29320 b3059339-0415-0410-9bf9-f77b7e298cf2
* Let SwScaler know that RGB48 BE/LE is 16-bits per component format.kostya2009-05-191-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29317 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make SwScaler recognize RGB48 BE/LE colourspaces (not support though).kostya2009-05-192-0/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29316 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add const qualifier to param argument of sws_getContext() anddiego2009-05-102-4/+5
| | | | | | | | sws_getCachedContext(). Fixes the warning: swscale.c:3408: warning: assignment discards qualifiers from pointer target type git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29288 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move preprocessor condition before variable declaration, fixes the warning:diego2009-05-101-1/+1
| | | | | | | libswscale/swscale.c:1795: warning: unused variable 'flags' git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29287 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add missing const qualifiers to AltiVec function parameters where appropriate.diego2009-05-093-7/+11
| | | | | | | Fixes a couple of 'discards qualifiers from pointer target type' warnings. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29281 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix sliced yuv410 -> yuv420 conversionvitor2009-05-071-4/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29272 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change VOFW for x86 to 5120, it allows larger images to be scaled and wasmichael2009-05-051-1/+6
| | | | | | | not slower. Other archs are not changed as the larger VOFW was slower on PPC. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29256 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix chroma shift when scaling from ARGB on LE and BGRA on BEsdrik2009-05-021-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29242 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove useless duplicated code in yuv2rgb_c_32, yuva2rgba_c and yuva2argb_csdrik2009-04-271-9/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29240 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make reset_ptr() void.cehoyos2009-04-231-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29229 b3059339-0415-0410-9bf9-f77b7e298cf2
* Planar 16bit 420 422 444 YUV support (output is only supported in somemichael2009-04-213-2/+129
| | | | | | | | | unscaled convertions). This, like gray16 converts down to 8bit, which is a big FIXME & patch welcome, we should preserve more bits. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29217 b3059339-0415-0410-9bf9-f77b7e298cf2
* Merge gray->gray converters into planarCopy(), this should also make ↵michael2009-04-211-90/+37
| | | | | | | | | planarCopy() useable for other 16bit formats once we support them. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29216 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add macro to check for 16bit per sample.michael2009-04-211-0/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29215 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make sure src/dst are NULL when they arent used, some code uses this tomichael2009-04-211-5/+28
| | | | | | | simpify checks. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29214 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use generic BE check instead of checking for gray16LE.michael2009-04-201-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29213 b3059339-0415-0410-9bf9-f77b7e298cf2
* add isBE()michael2009-04-201-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29212 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove 2 useless += at the end of rgb16to15(), found by CSA.michael2009-04-181-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29189 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename swscale_avoption.c to options.c.stefano2009-04-182-1/+1
| | | | | | | Consistent with lavc and lavf. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29188 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make sws_setColorspaceDetails() return -1 if the destination format isstefano2009-04-181-1/+1
| | | | | | | not supported. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29187 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move sws_[gs]etColorspaceDetails() documentation from swscale.c tostefano2009-04-182-9/+9
| | | | | | | swscale.h. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29186 b3059339-0415-0410-9bf9-f77b7e298cf2
* whitespace cosmetics: Break some overly long lines.diego2009-04-141-10/+18
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29180 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not use abgrToA for both luma and alpha channel in hyscale.sdrik2009-04-142-10/+11
| | | | | | This fixes RGB32 (et al.) scaling. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29179 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move addition of MMX-OBJS to OBJS into common.mak instead of duplicating it.diego2009-04-121-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29175 b3059339-0415-0410-9bf9-f77b7e298cf2
* whitespace cosmetics: Reindent a few lines and break a few excessively long ↵diego2009-04-121-12/+15
| | | | | | lines. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29174 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename RUNTIME_CPUDETECT to CONFIG_RUNTIME_CPUDETECT and always define it.ramiro2009-04-081-10/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29154 b3059339-0415-0410-9bf9-f77b7e298cf2
* swscale: Remove X86 commented out code.ramiro2009-04-051-11/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29149 b3059339-0415-0410-9bf9-f77b7e298cf2
* swscale: Use function pointers for swScale functions.ramiro2009-04-043-205/+186
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29145 b3059339-0415-0410-9bf9-f77b7e298cf2
* swscale: {}-related cosmetics.ramiro2009-04-041-7/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29144 b3059339-0415-0410-9bf9-f77b7e298cf2
* swscale: Add const to some swScale functions' parameters.ramiro2009-04-042-70/+72
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29143 b3059339-0415-0410-9bf9-f77b7e298cf2
* swscale: Remove mmx2 params from h[yc]scale().ramiro2009-04-021-29/+36
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29129 b3059339-0415-0410-9bf9-f77b7e298cf2
* swscale: Split h[yc]scale_fast() into their own functions.ramiro2009-04-021-23/+38
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29128 b3059339-0415-0410-9bf9-f77b7e298cf2
* swscale: Execute sfence and emms depending on runtime flags.ramiro2009-04-021-17/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29127 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make examples and test progs depend on librariesmru2009-04-011-5/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29119 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add missing $(EXESUF) to example/test program dependency declaration.diego2009-03-311-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29114 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use correct PRId64 instead of "lld" in printf string, fixes compiler warnings.reimar2009-03-301-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29107 b3059339-0415-0410-9bf9-f77b7e298cf2
* Generalize example target rule in common.mak so that it sets a -example$(EXESUF)diego2009-03-291-1/+1
| | | | | | | suffix for all example files instead of doing this in individual Makefiles. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29100 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move swscale AltiVec template code to ppc subdirectory.diego2009-03-292-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29099 b3059339-0415-0410-9bf9-f77b7e298cf2
* Relicense file to LGPL with the permission of Romain Dolbeau, the author.diego2009-03-291-8/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29097 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move bfin specific code to its subdir.ramiro2009-03-274-4/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29079 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename cs_test.c --> colorspace-test.c. This is more consistent with the namesdiego2009-03-262-2/+2
| | | | | | | of other test programs and more descriptive of what the program does. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29067 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move yuv2rgb code to subdirs.ramiro2009-03-269-65/+113
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29063 b3059339-0415-0410-9bf9-f77b7e298cf2
* swscale-example is an API example, not a test program.diego2009-03-251-1/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29056 b3059339-0415-0410-9bf9-f77b7e298cf2
* Adds "YUYV422 to YUVA420P" and "UYVY422 to YUVA420P" unscaled convertionsdrik2009-03-241-2/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29048 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix some places where "non-alpha to YUVA420P" do not fill the alpha planesdrik2009-03-241-0/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29047 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simpler and more elegant fix to the x86_32/OSX+PIC build failuresdrik2009-03-242-10/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29046 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename 'tests' target to 'testprogs'. It is too easily confused with thediego2009-03-221-1/+1
| | | | | | | 'test' target and a directory named tests exists. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29039 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unnecessary CLEANFILES declaration. Test programs do not require it.diego2009-03-221-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29038 b3059339-0415-0410-9bf9-f77b7e298cf2
* Enable unscaled packed422 -> planar 420 converters by default as themichael2009-03-211-5/+4
| | | | | | | imgconvert inherited quality issues should be fixed. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29031 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10l (C code was buggy and untested)michael2009-03-211-4/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29030 b3059339-0415-0410-9bf9-f77b7e298cf2
* Average chroma of 2 lines in packed 422 -> planar 420.michael2009-03-211-4/+110
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29029 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix build failure on x86_32 Mac OS X with PIC enabledsdrik2009-03-212-2/+12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29022 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix planarCopy to ignore the GRAY8 "pseudo"-palette, fixes libavtest ↵reimar2009-03-211-1/+3
| | | | | | regression test. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29021 b3059339-0415-0410-9bf9-f77b7e298cf2
* Avoid crash on planarCopy to a destination without alpha.reimar2009-03-201-1/+2
| | | | | | | Makes regression tests run again, though the results are still wrong. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29018 b3059339-0415-0410-9bf9-f77b7e298cf2
* Initialize pointer arrays which may be freed before being initialized.benoit2009-03-201-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29017 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do _not_ use rbx on x86_64, it will fail to compile with PIC, besides itreimar2009-03-201-4/+3
| | | | | | | added completely pointless code. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29016 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix swscale compilation with Altivec enabled.reimar2009-03-201-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29015 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reindent after last commitsdrik2009-03-201-66/+66
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29014 b3059339-0415-0410-9bf9-f77b7e298cf2
* Also test the alpha channel in swscale-examplesdrik2009-03-201-19/+22
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29013 b3059339-0415-0410-9bf9-f77b7e298cf2
* YUVA420P is now supported as output formatsdrik2009-03-202-8/+13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29012 b3059339-0415-0410-9bf9-f77b7e298cf2
*