summaryrefslogtreecommitdiffstats
path: root/libswscale
Commit message (Collapse)AuthorAgeFilesLines
* Avoid POSIX-reserved _t namespace.diego2008-12-271-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28195 b3059339-0415-0410-9bf9-f77b7e298cf2
* consistency cosmetics: Rename POWERPC identifiers to PPC.diego2008-12-271-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28194 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove pointless malloc.h #include.diego2008-12-193-9/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28164 b3059339-0415-0410-9bf9-f77b7e298cf2
* Some forgotten eax -> REG_a changes.reimar2008-12-121-24/+24
| | | | | | | It seems that binutils >= 2.18 just treat eax as rax but older versions fail. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28136 b3059339-0415-0410-9bf9-f77b7e298cf2
* Delete unnecessary 'extern' keywords.diego2008-12-033-31/+31
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28082 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove commented-out duplicate declarations.diego2008-12-021-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28058 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused declarations.diego2008-12-021-15/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28057 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: Consistently place HEADERS before OBJS in all Makefiles.diego2008-11-201-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27970 b3059339-0415-0410-9bf9-f77b7e298cf2
* Put variable declaration inside an #ifdef to avoid an unused variable warning.diego2008-11-171-2/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27945 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add some const specifiers to function name variables; fixes a bunch ofdiego2008-11-041-2/+2
| | | | | | | "initialization discards qualifiers from pointer target type" warnings. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27894 b3059339-0415-0410-9bf9-f77b7e298cf2
* Merge ARCH_BFIN lines.diego2008-11-031-3/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27889 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add tests target for libswscale test programs.diego2008-11-031-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27888 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove forgotten ASM_OBJS in libswscalemru2008-11-031-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27887 b3059339-0415-0410-9bf9-f77b7e298cf2
* Silence GCC warnings:vitor2008-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 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27837 b3059339-0415-0410-9bf9-f77b7e298cf2
* rgb2rgb.h was not really intended to be a public header, thus remove it.michael2008-10-271-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27836 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove rgb2rgb.h dependancy.michael2008-10-271-6/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27835 b3059339-0415-0410-9bf9-f77b7e298cf2
* Silence the following GCC warning:vitor2008-10-261-1/+1
| | | | | | | | | | libswscale/swscale.c: In function ‘pal2rgbWrapper’: libswscale/swscale.c:1744: warning: passing argument 4 of ‘conv’ from incompatible pointer type git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27834 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused code that can't be compiled without svn archive.cehoyos2008-10-251-269/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27827 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not attempt to use the unscaled yuv2rgb converter when height is odd becausemichael2008-10-251-1/+1
| | | | | | | it will overflow the buffer by 1 line. This might have been exploitable. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27826 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cosmetics: alignmentvitor2008-10-231-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27818 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix broken palette8to*.vitor2008-10-233-75/+43
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27817 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: typo fixdiego2008-10-233-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27816 b3059339-0415-0410-9bf9-f77b7e298cf2
* Convert typeof keyword into __typeof__conrad2008-10-191-10/+10
| | | | | | | | | typeof is a gcc extension and the former is not accepted in C99 without GNU extensions enabled (e.g. via -fasm). This fixes compilation on PPC. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27805 b3059339-0415-0410-9bf9-f77b7e298cf2
* Convert asm keyword into __asm__.flameeyes2008-10-166-180/+180
| | | | | | | | | | | | | | Neither the asm() nor the __asm__() keyword is 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 syntax. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27778 b3059339-0415-0410-9bf9-f77b7e298cf2
* Mark some symbols in swscale.c as constant.flameeyes2008-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. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27737 b3059339-0415-0410-9bf9-f77b7e298cf2
* Mark dither_2x2_{8,4} static to swscale.cflameeyes2008-10-092-4/+2
| | | | | | | | | These two tables are not used outside swscale.c even though they are declared also in yuv2rgb.c. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27736 b3059339-0415-0410-9bf9-f77b7e298cf2
* Mark variation-specific interleaveBytes static.flameeyes2008-10-091-1/+1
| | | | | | | | | These functions are never called by themselves, the alias interleaveBytes is used instead. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27735 b3059339-0415-0410-9bf9-f77b7e298cf2
* Invert logic for the single-pass in swScale() functions.flameeyes2008-10-091-3/+3
| | | | | | | | | | | | | | | | Instead of having a firstTime variable defaulting to 1, have a warnedAlready defaulting to 0. While this should make no difference in code speed at runtime, it allows to aggregate the four bytes of that variable with clip_table in .bss section, rather than issuing a .data section just for that. As it is, libswscale require no .data section but .data.rel.ro (that can be mitigated by prelinking), so the change might actually save one page of memory at runtime (per process). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27734 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change variable types from int to enum PixelFormat.cehoyos2008-10-091-2/+2
| | | | | | | Fixes icc warning #188: enumerated type mixed with another type git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27733 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not set src[1] to the palette, it is now in the contextvitor2008-10-082-3/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27731 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add a new unscaled PAL8 -> RGB converter.vitor2008-10-082-10/+55
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27730 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change one more variable type from int to enum PixelFormat.aurel2008-10-081-1/+1
| | | | | | | This one was missing from r27727. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27728 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change variable types from int to enum PixelFormat.cehoyos2008-10-072-6/+6
| | | | | | | Fixes icc warning #188: enumerated type mixed with another type git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27727 b3059339-0415-0410-9bf9-f77b7e298cf2
* gcc-apple specific fallback not necessary anymorelu_zero2008-10-051-5/+0
| | | | | | | | (btw no apple hardware is less than a Intel core, thus it won't come there w/out disabling all the optimizations) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27722 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use HAVE_FAST_64BIT instead of nonstandard __WORDSIZE macro.diego2008-10-051-3/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27720 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove b5Dither, g5Dither and r5Dither from libswscale.cehoyos2008-10-044-58/+48
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27718 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove g6Dither from libswscale.cehoyos2008-10-044-14/+12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27715 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove MPlayer-specific MP_WORDSIZE hack.diego2008-10-041-5/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27698 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused function fast_memcpy.diego2008-09-291-4/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27673 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: indentationdiego2008-09-291-6/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27672 b3059339-0415-0410-9bf9-f77b7e298cf2
* Revert mistakenly committed hunk.michael2008-09-291-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27671 b3059339-0415-0410-9bf9-f77b7e298cf2
* Print all cases that are tested, not just the ones that are bad.michael2008-09-291-3/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27670 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix infinite loop with spline, bug was introduced in r27612 by me.michael2008-09-291-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27669 b3059339-0415-0410-9bf9-f77b7e298cf2
* Uniform *ToY and *ToUV function signatureslu_zero2008-09-181-51/+51
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27636 b3059339-0415-0410-9bf9-f77b7e298cf2
* Split mono2Y in monowhite and monoblacklu_zero2008-09-181-4/+19
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27635 b3059339-0415-0410-9bf9-f77b7e298cf2
* Factorize unit32_t* casts for palette pointerlu_zero2008-09-181-6/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27634 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix segfault with rgb24 and full_internal_chroma due to non-existing alphamichael2008-09-161-2/+7
| | | | | | | byte being written after the array. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27628 b3059339-0415-0410-9bf9-f77b7e298cf2
* Avoid using floating point for calculating filter coefficients.michael2008-09-151-81/+83
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27612 b3059339-0415-0410-9bf9-f77b7e298cf2
* Avoid some explicit types in sizeof().michael2008-09-141-6/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27611 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use av_mallocz() instead of for() =0;michael2008-09-141-2/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27610 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move dither tables from yuv2rgb to swscale, they have been written by me andmichael2008-09-142-111/+111
| | | | | | | can be used under LGPL. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27609 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix libswscale build after r27561 if --enable-runtime-cpudetection is used.ben2008-09-131-6/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27602 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix indention.michael2008-09-131-313/+313
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27600 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename yuv2rgb variables to avoid name clashes with the ones used by bfin asm.michael2008-09-132-12/+17
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27599 b3059339-0415-0410-9bf9-f77b7e298cf2
* Disable mmx routines that are not bitexact when the user wantsmichael2008-09-131-6/+15
| | | | | | | bitexact ones. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27597 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make horizontal mmx scaling code match C code.michael2008-09-131-16/+15
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27596 b3059339-0415-0410-9bf9-f77b7e298cf2
* Ensure that additional filter coeffs that exist due to alignmentmichael2008-09-131-0/+2
| | | | | | | are 0 if bitexact mode is requested. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27595 b3059339-0415-0410-9bf9-f77b7e298cf2
* yvu9toyv12Wrapper is not bitexact so disable it when the user wantsmichael2008-09-121-1/+1
| | | | | | | bitexactness to C. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27594 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make the horizontal C scaler code clip only against INT16_MAX not 0,michael2008-09-121-1/+1
| | | | | | | this decreases the difference between C and MMX, its also faster. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27593 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add bitexact flag.michael2008-09-122-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27592 b3059339-0415-0410-9bf9-f77b7e298cf2
* The yuv->rgb tables are too small for cliping to be avoidable,michael2008-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. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27591 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix another 1000l bug in the mono input code.michael2008-09-121-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27590 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add support for PIX_FMT_YUV440P.michael2008-09-121-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27589 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10000l PIX_FMT_MONOWHITE check was really a || 1.michael2008-09-121-1/+1
| | | | | | | | Thats what happens when one does not do the full set of tests before each commit and just quickly goes over the diff thinking, "hey it is a trivial change". git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27588 b3059339-0415-0410-9bf9-f77b7e298cf2
* Support mono as input format.michael2008-09-122-1/+18
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27587 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add support for PIX_FMT_MONOWHITE as output format.michael2008-09-123-8/+13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27586 b3059339-0415-0410-9bf9-f77b7e298cf2
* rgb24toyv12 is not accurately rounding, so disable it as well when themichael2008-09-121-1/+1
| | | | | | | user asks for accurate rounding. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27585 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not use the unscaled yuv->rgb converters if SWS_ACCURATE_RND is set,michael2008-09-121-1/+2
| | | | | | | because they do not accurately round. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27584 b3059339-0415-0410-9bf9-f77b7e298cf2
* 100000000000000l, forgot to commit header change for r27580.michael2008-09-111-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27583 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix typo that lead to averaging of the same pixel in rgb24ToUV_half().michael2008-09-111-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27582 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove mistakely commited code i used for testing.michael2008-09-111-7/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27581 b3059339-0415-0410-9bf9-f77b7e298cf2
* Implement full horizontal chroma for rgb/bgr24/32 output. michael2008-09-112-1/+115
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27580 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not do unneeded clipping in YSCALE_YUV_2_PACKEDX_C.michael2008-09-111-2/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27579 b3059339-0415-0410-9bf9-f77b7e298cf2
* Factorize yuv2packedXinC().michael2008-09-112-228/+58
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27578 b3059339-0415-0410-9bf9-f77b7e298cf2
* Set rgb2yuv constants more accurately, makes no real difference though.michael2008-09-111-9/+9
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27577 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix chroma yuv->rgb tables for jpeg style yuv, this was missed as itmichael2008-09-111-4/+4
| | | | | | |