aboutsummaryrefslogtreecommitdiff
path: root/libswscale/swscale_template.c
AgeCommit message (Collapse)Author
2011-03-19Replace FFmpeg with Libav in licence headersMans Rullgard
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-02-13Fix MMX rgb24 to yuv conversion with gcc 4.6Mans Rullgard
When built with gcc 4.6, the MMX rgb24 to yuv conversion gives wrong output. The compiler produces this warning: libswscale/swscale_template.c:1885:5: warning: use of memory input without lvalue in asm operand 4 is deprecated Changing the memory operand to a register makes it work. Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-01-18Replace ASMALIGN() with .p2alignMans Rullgard
This macro has unconditionally used .p2align for a long time and serves no useful purpose.
2010-09-27Y400A (gray alpha) input support in libswscaleBaptiste Coudurier
Originally committed as revision 32394 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2010-08-23swscale: fix unaligned accesses in (RGB|BGR)32_1 to YUV conversionMåns Rullgård
Originally committed as revision 32011 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2010-07-18Another try at fixing swscale on win64, as per r31153.Anton Mitrofanov
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
2010-05-12Revert r31153. It failed to build on:Ramiro Polla
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
2010-05-11Use int instead of long to pass width parameters in non-public functions.Ramiro Polla
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
2010-03-27libswscale: Relicense almost all x86 assembler optimizations as LGPL.Diego Biurrun
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
2010-03-19Replace wrong condition name in #endif comment by correct instance.Diego Biurrun
Originally committed as revision 30938 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2010-03-05try to avoid returning odd slices.Michael Niedermayer
Originally committed as revision 30847 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2010-02-23Reorder buffer debug. Also print out if slice was buffered.Ramiro Polla
Originally committed as revision 30722 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2010-01-26Use isAnyRGB() where possibleMichael Niedermayer
Originally committed as revision 30435 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2010-01-26Rename isRGB() and isBGR() as their meaning is confusing.Michael Niedermayer
Originally committed as revision 30433 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2010-01-16Declare with av_unused the variable alpMmxFilter, fix the gcc warning:Stefano Sabatini
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
2010-01-16Reuse h{lum,chr}Filter{,Pos} variables for MMX2 fast_bilinear horizontal scaler.Ramiro Polla
Originally committed as revision 30327 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2010-01-15Const correctness for src pointer. Remove all constness related warnings inZuxy Meng
libswscale. Originally committed as revision 30306 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2010-01-11cosmetics: {} placement.Ramiro Polla
Originally committed as revision 30272 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2010-01-09Remove unused PREFETCHW macroZuxy Meng
Originally committed as revision 30253 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2010-01-01Do not needlessly use the BP register in x86_64-specific code, there areReimar Döffinger
enough other registers available that are less likely to cause issues. Originally committed as revision 30160 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-12-28Remove unused variable, fixes the warning:Diego Biurrun
libswscale/swscale_template.c:2575: warning: unused variable ‘srcFormat’ Originally committed as revision 30132 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-12-21Remove parameters no longer used in h[yc]scale().Ramiro Polla
Originally committed as revision 30099 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-12-21Move fast bilinear scaler code to the existing h[yc]scale_fast() functions.Ramiro Polla
Originally committed as revision 30098 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-12-21Rename function pointers used to convert from the input pixel format to theRamiro Polla
intermediate YV12 to a more descriptive name. Originally committed as revision 30097 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-12-21Check if chroma horizontal scaler is needed in sws_init_swScale().Ramiro Polla
Originally committed as revision 30096 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-12-20Indent.Ramiro Polla
Originally committed as revision 30086 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-12-20Set fast_bilinear functions in sws_init_swScale().Ramiro Polla
Originally committed as revision 30085 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-12-20Set horizontal scaler's range conversion in context in sws_init_swScale().Ramiro Polla
Originally committed as revision 30082 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-12-20Set horizontal scaler's src offsets in context in sws_init_swScale().Ramiro Polla
Originally committed as revision 30081 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-12-06Start using intermediate buffers at index 0.Ramiro Polla
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
2009-12-05Fix compilation with runtime cpu detection.Ramiro Polla
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
2009-12-03Add support for nv12/nv21 input.Ramiro Polla
Originally committed as revision 29974 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-11-08Use enum PixelFormat instead of int for srcFormat and dstFormat.Carl Eugen Hoyos
Originally committed as revision 29857 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-09-22Replace manual gcc version check by AV_GCC_VERSION_AT_LEAST macro.Diego Biurrun
Originally committed as revision 29701 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-09-16Cleanup buffer debugs in swScale().Ramiro Polla
Originally committed as revision 29686 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-09-16Use correct buffers in vertical scaler in unscaled YV12 case.Ramiro Polla
Originally committed as revision 29685 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-09-05Make 16bit YUV formats compatible with NE avcodec_get_pix_fmt().Lars Täuber
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
2009-08-16More indentation changes leftover from r29522:Ramiro Polla
- 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
2009-08-16Cosmetics:Ramiro Polla
- 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
2009-08-16Indent libswscale:Ramiro Polla
- 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
2009-08-15Indent.Ramiro Polla
Originally committed as revision 29518 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-08-14Vertical yuv -> yuv16 scaler.Ramiro Polla
Originally committed as revision 29517 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-08-13Remove duplicate define (it is the same in the lum code).Ramiro Polla
Originally committed as revision 29508 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-08-13Rename "funny" code to "mmx2 filter" code.Ramiro Polla
Originally committed as revision 29507 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-08-08Remove disabled crufty code.Diego Biurrun
Originally committed as revision 29482 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-07-28Indent.Ramiro Polla
Originally committed as revision 29451 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-07-28Remove duplicate horizontal scaling when there aren't enough lines in a sliceRamiro Polla
to output the dstY line. Originally committed as revision 29450 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-07-27Do not misuse HAVE_ defines. Introduce COMPILE_TEMPLATE_ defines and use themRamiro Polla
instead. Originally committed as revision 29446 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-07-27Factorize x86 fast_bilinear assembly.Ramiro Polla
Originally committed as revision 29445 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-07-27Fix assembly comments for x86 fast_bilinear so they match the C code.Ramiro Polla
Originally committed as revision 29444 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale