summaryrefslogtreecommitdiffstats
path: root/libswscale/swscale.c
Commit message (Collapse)AuthorAgeFilesLines
* Introduce and use sws_allocVec().ramiro2009-08-191-18/+18
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29536 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reuse sws_getConstVec() where possible.ramiro2009-08-191-34/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29535 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cosmetics:ramiro2009-08-161-349/+278
| | | | | | | - Place curly brackets in the same line as while/for/if/switch/else/do; - Place curly brackets at column 0 in the next line starting a function. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29523 b3059339-0415-0410-9bf9-f77b7e298cf2
* Indent libswscale:ramiro2009-08-161-135/+135
| | | | | | | | | | | | - Use 4 spaces throughout for indentation; - Fix inconsistent indentation; - Indent function calls and declarations aligning arguments on multiple lines to the column after the opening parentheses; - Align asm code to the column 4 spaces after the call to __asm__(); - Align cases in switch statements to the same column as "switch". git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29522 b3059339-0415-0410-9bf9-f77b7e298cf2
* Vertical yuv -> yuv16 scaler.ramiro2009-08-141-0/+81
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29517 b3059339-0415-0410-9bf9-f77b7e298cf2
* Indent.ramiro2009-08-131-20/+20
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29512 b3059339-0415-0410-9bf9-f77b7e298cf2
* MMX2 horizontal scaler: Determine code size at runtime.ramiro2009-08-131-14/+22
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29510 b3059339-0415-0410-9bf9-f77b7e298cf2
* Protect mmx2 filter code buffers so they are not executable and writeable atramiro2009-08-131-2/+7
| | | | | | | the same time (only mmap for now). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29509 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename "funny" code to "mmx2 filter" code.ramiro2009-08-131-24/+24
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29507 b3059339-0415-0410-9bf9-f77b7e298cf2
* Put some altivec code under COMPILE_ALTIVEC, and not HAVE_ALTIVEC.ramiro2009-08-091-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29484 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove disabled crufty code.diego2009-08-081-26/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29482 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix regression when converting to nv12/nv21.cehoyos2009-08-011-1/+3
| | | | | | | Patch by Guennadi Liakhovetski, g D liakhovetski A gmx D de git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29464 b3059339-0415-0410-9bf9-f77b7e298cf2
* MMX2 scaler: Remove {} block leftover from factorization in initMMX2Scaler().ramiro2009-07-281-19/+16
| | | | | | | Merge variable declarations to previous {} block and indent. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29454 b3059339-0415-0410-9bf9-f77b7e298cf2
* MMX2 scaler: factorize initMMX2Scaler().ramiro2009-07-281-30/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29453 b3059339-0415-0410-9bf9-f77b7e298cf2
* MMX2 scaler: add variable to ease factorization of initMMX2Scaler().ramiro2009-07-281-3/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29452 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove useless code.ramiro2009-07-281-3/+1
| | | | | | flags can never be any other kind of scaling algorithm inside this if(). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29449 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not misuse HAVE_ defines. Introduce COMPILE_TEMPLATE_ defines and use themramiro2009-07-271-38/+32
| | | | | | | instead. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29446 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace WORDS_BIGENDIAN with HAVE_BIGENDIANmru2009-07-261-5/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29439 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unnecessary #include <unistd.h>mru2009-07-231-1/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29437 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused variables.ramiro2009-07-211-3/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29435 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
* Use DECLARE_ALIGNED macro instead of gcc __attribute__.ramiro2009-06-041-10/+10
| | | | | | 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
* YUV into RGB48 BE/LE conversion supportkostya2009-06-021-0/+18
| | | | 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-021-0/+44
| | | | | | | | 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-251-0/+115
| | | | | | | | into swscale.c git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29320 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make SwScaler recognize RGB48 BE/LE colourspaces (not support though).kostya2009-05-191-0/+4
| | | | 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-101-2/+3
| | | | | | | | 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
* Fix sliced yuv410 -> yuv420 conversionvitor2009-05-071-4/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29272 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-211-1/+34
| | | | | | | | | 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
* 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
* 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-181-8/+0
| | | | | | | swscale.h. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29186 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-041-2/+15
| | | | 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-041-12/+12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29143 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
* 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
* 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
* YUVA420P is now supported as output formatsdrik2009-03-201-8/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29012 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add alpha channel scalingsdrik2009-03-201-50/+188
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29011 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use a simpler and more general check for the gray case in the planarCopy ↵sdrik2009-03-201-4/+1
| | | | | | function git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29009 b3059339-0415-0410-9bf9-f77b7e298cf2
* Allocate executable memory with VirtualAlloc() in Windows.ramiro2009-03-191-0/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29006 b3059339-0415-0410-9bf9-f77b7e298cf2
* Drop unnecessary cast and cosmetically align.ramiro2009-03-191-5/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29005 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix 10l typo.michael2009-03-191-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29002 b3059339-0415-0410-9bf9-f77b7e298cf2
* Unscaled converters formichael2009-03-191-0/+53
| | | | | | | | | | YUYV->YUV420P YUYV->YUV422P UYVY->YUV420P UYVY->YUV422P git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28997 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not assume long is same width as x86 register.ramiro2009-03-181-6/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28992 b3059339-0415-0410-9bf9-f77b7e298cf2
* Consistently use ff_ prefixes for internal symbols.diego2009-03-181-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28988 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add a fillPlane function to fill a plane with one constant valuesdrik2009-03-171-8/+11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28986 b3059339-0415-0410-9bf9-f77b7e298cf2
* Don't write outside of the picture buffer in planarCopy in the gray casesdrik2009-03-171-2/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28985 b3059339-0415-0410-9bf9-f77b7e298cf2
* In initMMX2HScaler, when chrDstW is not divisible by 4, the last filterPos ↵sdrik2009-03-111-1/+1
| | | | | | element is initialized on the wrong index (not evenly aligned). This fixes it git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28933 b3059339-0415-0410-9bf9-f77b7e298cf2
* Let the 4th plane reach the swScale functionsdrik2009-03-071-6/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28868 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix bug introduced by me in r28756sdrik2009-03-051-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28825 b3059339-0415-0410-9bf9-f77b7e298cf2
* When converting from a non alpha format to an alpha format, defaults to all ↵sdrik2009-02-281-4/+4
| | | | | | ones rather than all zeroes git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28756 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use YUV420P code path for YUVA420P where appropriatesdrik2009-02-271-3/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28746 b3059339-0415-0410-9bf9-f77b7e298cf2
* New LGPLed YUV2RGB table generator for SwScalerkostya2009-02-221-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28700 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use sws_printVec2() instead of the deprecated sws_printVec(). stefano2009-02-141-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28567 b3059339-0415-0410-9bf9-f77b7e298cf2
* Implement sws_printVec2() and deprecate sws_printVec().stefano2009-02-141-4/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28566 b3059339-0415-0410-9bf9-f77b7e298cf2
* Some AltiVec functions in SwScaler produce different output than theirkostya2009-02-141-0/+1
| | | | | | | | counterparts in pure C, so don't invoke them in bitexact mode. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28555 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move sws_getGaussianVec() documentation from swscale.c to swscale.h.stefano2009-02-101-4/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28528 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move documentation of sws_getCachedContext() from swscale.c tostefano2009-02-101-10/+0
| | | | | | | swscale.h. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28523 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove pointless comment regarding sws_scale_ordered().stefano2009-02-101-3/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28522 b3059339-0415-0410-9bf9-f77b7e298cf2
* Prefix visible YUV2RGB functions with sws_kostya2009-02-091-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28496 b3059339-0415-0410-9bf9-f77b7e298cf2
* Give better name to Inverse_Table_6_9kostya2009-02-091-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28495 b3059339-0415-0410-9bf9-f77b7e298cf2
* Drop the deprecated sws_scale_ordered() at the next major versionstefano2009-02-081-0/+2
| | | | | | | bump. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28492 b3059339-0415-0410-9bf9-f77b7e298cf2
* HAVE_3DNOW --> HAVE_AMD3DNOW to sync with latest configure changes.diego2009-01-251-14/+14
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28358 b3059339-0415-0410-9bf9-f77b7e298cf2
* Disable C code when compiling AltiVec code, fixes the warning:diego2009-01-251-0/