summaryrefslogtreecommitdiff
path: root/libswscale/swscale.c
Commit message (Collapse)AuthorAgeFilesLines
* consistency cosmetics: Rename POWERPC identifiers to PPC.Diego Biurrun2008-12-271-3/+3
| | | | Originally committed as revision 28194 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Silence GCC warnings:Vitor Sessak2008-10-271-1/+2
| | | | | | | | | | | | ibswscale/swscale.c: In function ‘sws_scale’: libswscale/swscale.c:2678: warning: ‘b’ may be used uninitialized in this function libswscale/swscale.c:2678: warning: ‘g’ may be used uninitialized in this function libswscale/swscale.c:2678: warning: ‘r’ may be used uninitialized in this function Originally committed as revision 27837 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Silence GCC warningVitor Sessak2008-10-261-1/+1
| | | | Originally committed as revision 27834 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Do not attempt to use the unscaled yuv2rgb converter when height is odd becauseMichael Niedermayer2008-10-251-1/+1
| | | | | | it will overflow the buffer by 1 line. This might have been exploitable. Originally committed as revision 27826 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Cosmetics: alignmentVitor Sessak2008-10-231-3/+3
| | | | Originally committed as revision 27818 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Fix broken palette8to*.Vitor Sessak2008-10-231-5/+36
| | | | Originally committed as revision 27817 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Convert asm keyword into __asm__.Diego Pettenò2008-10-161-4/+4
| | | | | | | | | | | | | Neither the asm() nor the __asm__() keyword is not part of the C99 standard, but while GCC accepts the former in C89 syntax, it is not accepted in C99 unless GNU extensions are turned on (with -fasm). The latter form is accepted in any syntax as an extension (without requiring further command-line options). Sun Studio C99 compiler also does not accept asm() while accepting __asm__(), albeit reporting warnings that it's not valid C99 synta. Originally committed as revision 27778 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Mark some symbols in swscale.c as constant.Diego Pettenò2008-10-091-7/+7
| | | | | | | These are only used in swscale_template.c (and thus don't need to be made extern), and can be declared as ASM constants. Originally committed as revision 27737 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Mark dither_2x2_{8,4} static to swscale.cDiego Pettenò2008-10-091-2/+2
| | | | | | | These two tables are not used outside swscale.c even though they are declared also in yuv2rgb.c. Originally committed as revision 27736 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Change variable types from int to enum PixelFormat.Carl Eugen Hoyos2008-10-091-2/+2
| | | | | | Fixes icc warning #188: enumerated type mixed with another type Originally committed as revision 27733 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Do not set src[1] to the palette, it is now in the contextVitor Sessak2008-10-081-1/+0
| | | | Originally committed as revision 27731 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Add a new unscaled PAL8 -> RGB converter.Vitor Sessak2008-10-081-10/+52
| | | | Originally committed as revision 27730 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Change one more variable type from int to enum PixelFormat.Aurelien Jacobs2008-10-081-1/+1
| | | | | | This one was missing from r27727. Originally committed as revision 27728 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Change variable types from int to enum PixelFormat.Carl Eugen Hoyos2008-10-071-5/+5
| | | | | | Fixes icc warning #188: enumerated type mixed with another type Originally committed as revision 27727 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Remove b5Dither, g5Dither and r5Dither from libswscale.Carl Eugen Hoyos2008-10-041-4/+0
| | | | Originally committed as revision 27718 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Remove g6Dither from libswscale.Carl Eugen Hoyos2008-10-041-1/+0
| | | | Originally committed as revision 27715 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Fix infinite loop with spline, bug was introduced in r27612 by me.Michael Niedermayer2008-09-291-1/+1
| | | | Originally committed as revision 27669 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Fix segfault with rgb24 and full_internal_chrome due to non existing alphaMichael Niedermayer2008-09-161-2/+7
| | | | | | byte being written after the array. Originally committed as revision 27628 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Avoid using floating point for calculating filter coefficients.Michael Niedermayer2008-09-151-81/+83
| | | | Originally committed as revision 27612 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Avoid some explicit types in sizeof().Michael Niedermayer2008-09-141-6/+6
| | | | Originally committed as revision 27611 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Use av_mallocz() instead of for() =0;Michael Niedermayer2008-09-141-2/+1
| | | | Originally committed as revision 27610 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Move dither tables from yuv2rgb to swscale, they have been written by me andMichael Niedermayer2008-09-141-5/+106
| | | | | | can be used under LGPL. Originally committed as revision 27609 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Rename yuv2rgb variables to avoid name clashes with the ones used by bfin asm.Michael Niedermayer2008-09-131-11/+11
| | | | Originally committed as revision 27599 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Ensure that additional filter coeffs that exist due to alignmentMichael Niedermayer2008-09-131-0/+2
| | | | | | are 0 if bitexact mode is requested. Originally committed as revision 27595 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* yvu9toyv12Wrapper is not bitexact so disable it when the user wantsMichael Niedermayer2008-09-121-1/+1
| | | | | | bitexactness to C. Originally committed as revision 27594 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* The yuv->rgb tables are too small for cliping to be avoidable,Michael Niedermayer2008-09-121-1/+1
| | | | | | | | thus revert the respective optimization. The table generator code has to be rewritten anyway one day by some volunteer because its not LGPL, fixing the GPL table generator thus seems like wasted time. Originally committed as revision 27591 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Add support for PIX_FMT_YUV440P.Michael Niedermayer2008-09-121-0/+2
| | | | Originally committed as revision 27589 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Support mono as input format.Michael Niedermayer2008-09-121-0/+2
| | | | Originally committed as revision 27587 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Add support for PIX_FMT_MONOWHITE as output format.Michael Niedermayer2008-09-121-5/+7
| | | | Originally committed as revision 27586 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* rgb24toyv12 isnt accuratly rounding, so disable it as well when theMichael Niedermayer2008-09-121-1/+1
| | | | | | user asks for accurate rounding. Originally committed as revision 27585 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Do not use the unscaled yuv->rgb converters if SWS_ACCURATE_RND is set,Michael Niedermayer2008-09-121-1/+2
| | | | | | because they do not accurately round. Originally committed as revision 27584 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Remove mistakely commited code i used for testing.Michael Niedermayer2008-09-111-7/+0
| | | | Originally committed as revision 27581 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Implement full horizontal chroma for rgb/bgr24/32 output.Michael Niedermayer2008-09-111-1/+87
| | | | Originally committed as revision 27580 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Do not do unneeded cliping in YSCALE_YUV_2_PACKEDX_C.Michael Niedermayer2008-09-111-2/+5
| | | | Originally committed as revision 27579 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Factorize yuv2packedXinC().Michael Niedermayer2008-09-111-225/+55
| | | | Originally committed as revision 27578 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Set rgb2yuv constants more accurately, makes no real difference though.Michael Niedermayer2008-09-111-9/+9
| | | | Originally committed as revision 27577 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Correct normalization constant for the vertical filter, iam notMichael Niedermayer2008-09-101-2/+2
| | | | | | | completely sure why this was at such incorrect value, but i could not find any problems when it was set correctly. Originally committed as revision 27575 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Change RGB2YUV_SHIFT from 16 to 15 to make it able to workMichael Niedermayer2008-09-101-1/+1
| | | | | | with 16bit signed constants (like SIMD might use). Originally committed as revision 27568 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Make SWS_FULL_CHR_H_INP work.Michael Niedermayer2008-09-101-1/+1
| | | | Originally committed as revision 27564 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* More accurate rounding for 8bit inputs.Michael Niedermayer2008-09-091-3/+3
| | | | Originally committed as revision 27562 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Rewrite bgr24->yuv mmx code, the new code is cleaner, more accurate,Michael Niedermayer2008-09-091-1/+16
| | | | | | and does not throw half the chroma away. Originally committed as revision 27561 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Add table of rgb->yuv convertion coefficients.Michael Niedermayer2008-09-091-0/+11
| | | | Originally committed as revision 27558 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Fix jpeg yuv.Michael Niedermayer2008-09-081-2/+2
| | | | | | Fixes issue504. Originally committed as revision 27547 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Fix accurate rounding mode on x86_64.Michael Niedermayer2008-09-071-1/+1
| | | | | | Fixes issue222. Originally committed as revision 27545 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Make fast bilinear scaler work again.Michael Niedermayer2008-09-071-0/+1
| | | | Originally committed as revision 27543 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* simplify function selection codeBaptiste Coudurier2008-09-051-6/+4
| | | | Originally committed as revision 27528 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* enable yuv422p to uyvy converterBaptiste Coudurier2008-09-051-0/+26
| | | | Originally committed as revision 27527 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Make 16bit grayscale output work.Michael Niedermayer2008-09-041-1/+70
| | | | Originally committed as revision 27524 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Fix SWS_FAST_BILINEAR and SWS_POINT with some unscaled rgb<->bgr converters.Michael Niedermayer2008-09-041-7/+1
| | | | Originally committed as revision 27523 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
* Support PIX_FMT_RGB32_1 and PIX_FMT_BGR32_1.Michael Niedermayer2008-09-041-4/+15
| | | | | | Fixes issue248. Originally committed as revision 27522 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale