summaryrefslogtreecommitdiff
path: root/libswscale/swscale_template.c
Commit message (Collapse)AuthorAge
* Another try at fixing swscale on win64, as per r31153.Anton Mitrofanov2010-07-18
| | | | | | | | | | | | Don't change paramater passing, but instead use casts. Shouldn't affect asm output on anything other than win64. libswscale should work on win64 now. The rest of ffmpeg still isn't win64 compatible due to the issue of xmm clobbers, but swscale doesn't use any SSE. Patch by Anton Mitrofanov <BugMaster AT narod DOT ru>. Originally committed as revision 31751 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Revert r31153. It failed to build on:Ramiro Polla2010-05-12
| | | | | | | | | | | 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-11
| | | | | | | 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-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
* Replace wrong condition name in #endif comment by correct instance.Diego Biurrun2010-03-19
| | | | Originally committed as revision 30938 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* try to avoid returning odd slices.Michael Niedermayer2010-03-05
| | | | Originally committed as revision 30847 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Reorder buffer debug. Also print out if slice was buffered.Ramiro Polla2010-02-23
| | | | Originally committed as revision 30722 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
* Declare with av_unused the variable alpMmxFilter, fix the gcc warning:Stefano Sabatini2010-01-16
| | | | | | | | swscale_template.c: In function ‘swScale_C’: swscale_template.c:2580: warning: unused variable ‘alpMmxFilter’ swscale_template.c: In function ‘sws_init_swScale_C’: Originally committed as revision 30332 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Reuse h{lum,chr}Filter{,Pos} variables for MMX2 fast_bilinear horizontal scaler.Ramiro Polla2010-01-16
| | | | Originally committed as revision 30327 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Const correctness for src pointer. Remove all constness related warnings inZuxy Meng2010-01-15
| | | | | | libswscale. Originally committed as revision 30306 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* cosmetics: {} placement.Ramiro Polla2010-01-11
| | | | Originally committed as revision 30272 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Remove unused PREFETCHW macroZuxy Meng2010-01-09
| | | | Originally committed as revision 30253 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Do not needlessly use the BP register in x86_64-specific code, there areReimar Döffinger2010-01-01
| | | | | | enough other registers available that are less likely to cause issues. Originally committed as revision 30160 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Remove unused variable, fixes the warning:Diego Biurrun2009-12-28
| | | | | | libswscale/swscale_template.c:2575: warning: unused variable ‘srcFormat’ Originally committed as revision 30132 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Remove parameters no longer used in h[yc]scale().Ramiro Polla2009-12-21
| | | | Originally committed as revision 30099 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Move fast bilinear scaler code to the existing h[yc]scale_fast() functions.Ramiro Polla2009-12-21
| | | | Originally committed as revision 30098 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Rename function pointers used to convert from the input pixel format to theRamiro Polla2009-12-21
| | | | | | intermediate YV12 to a more descriptive name. Originally committed as revision 30097 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Check if chroma horizontal scaler is needed in sws_init_swScale().Ramiro Polla2009-12-21
| | | | Originally committed as revision 30096 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Indent.Ramiro Polla2009-12-20
| | | | Originally committed as revision 30086 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Set fast_bilinear functions in sws_init_swScale().Ramiro Polla2009-12-20
| | | | Originally committed as revision 30085 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Set horizontal scaler's range conversion in context in sws_init_swScale().Ramiro Polla2009-12-20
| | | | Originally committed as revision 30082 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Set horizontal scaler's src offsets in context in sws_init_swScale().Ramiro Polla2009-12-20
| | | | Originally committed as revision 30081 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Start using intermediate buffers at index 0.Ramiro Polla2009-12-06
| | | | | | | These index variables are incremented before each use, so they should be initialized to -1. Originally committed as revision 29977 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Fix compilation with runtime cpu detection.Ramiro Polla2009-12-05
| | | | | | All functions in swscale_template.c should be declared with the RENAME macro. Originally committed as revision 29976 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Add support for nv12/nv21 input.Ramiro Polla2009-12-03
| | | | Originally committed as revision 29974 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Use enum PixelFormat instead of int for srcFormat and dstFormat.Carl Eugen Hoyos2009-11-08
| | | | Originally committed as revision 29857 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Replace manual gcc version check by AV_GCC_VERSION_AT_LEAST macro.Diego Biurrun2009-09-22
| | | | Originally committed as revision 29701 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Cleanup buffer debugs in swScale().Ramiro Polla2009-09-16
| | | | Originally committed as revision 29686 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Use correct buffers in vertical scaler in unscaled YV12 case.Ramiro Polla2009-09-16
| | | | Originally committed as revision 29685 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Make 16bit YUV formats compatible with NE avcodec_get_pix_fmt().Lars Täuber2009-09-05
| | | | | | Patch by Lars Täuber <lars <dot> taeuber <at> gmx <dot> net>. Originally committed as revision 29650 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* More indentation changes leftover from r29522:Ramiro Polla2009-08-16
| | | | | | | - Align asm code to the column 4 spaces after the call to __asm__(); - Align cases in switch statements to the same column as "switch". Originally committed as revision 29524 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Cosmetics:Ramiro Polla2009-08-16
| | | | | | | - 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. Originally committed as revision 29523 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Indent libswscale:Ramiro Polla2009-08-16
| | | | | | | | | | | - 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". Originally committed as revision 29522 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Indent.Ramiro Polla2009-08-15
| | | | Originally committed as revision 29518 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Vertical yuv -> yuv16 scaler.Ramiro Polla2009-08-14
| | | | Originally committed as revision 29517 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Remove duplicate define (it is the same in the lum code).Ramiro Polla2009-08-13
| | | | Originally committed as revision 29508 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Rename "funny" code to "mmx2 filter" code.Ramiro Polla2009-08-13
| | | | Originally committed as revision 29507 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Remove disabled crufty code.Diego Biurrun2009-08-08
| | | | Originally committed as revision 29482 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Indent.Ramiro Polla2009-07-28
| | | | Originally committed as revision 29451 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Remove duplicate horizontal scaling when there aren't enough lines in a sliceRamiro Polla2009-07-28
| | | | | | to output the dstY line. Originally committed as revision 29450 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Do not misuse HAVE_ defines. Introduce COMPILE_TEMPLATE_ defines and use themRamiro Polla2009-07-27
| | | | | | instead. Originally committed as revision 29446 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Factorize x86 fast_bilinear assembly.Ramiro Polla2009-07-27
| | | | Originally committed as revision 29445 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Fix assembly comments for x86 fast_bilinear so they match the C code.Ramiro Polla2009-07-27
| | | | Originally committed as revision 29444 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Kill warnings of possibly unused variables by using av_unused.Ramiro Polla2009-06-11
| | | | Originally committed as revision 29355 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Replace more uses of __attribute__((aligned)) by DECLARE_ALIGNED.Ramiro Polla2009-06-04
| | | | Originally committed as revision 29349 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Partial (low bits ignored, no direct transcoding into other RGB formats) supportKostya Shishkov2009-06-02
| | | | | | for inputting RGB48BE/LE. Originally committed as revision 29341 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Move colorspace conversion functions implemented in pure C from templateKostya Shishkov2009-05-25
| | | | | | into swscale.c Originally committed as revision 29320 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Fix chroma shift when scaling from ARGB on LE and BGRA on BECédric Schieli2009-05-02
| | | | Originally committed as revision 29242 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale