summaryrefslogtreecommitdiffstats
path: root/libswscale/swscale_template.c
Commit message (Collapse)AuthorAgeFilesLines
* HAVE_3DNOW --> HAVE_AMD3DNOW to sync with latest configure changes.diego2009-01-251-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28358 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change semantic of CONFIG_*, HAVE_* and ARCH_*.aurel2009-01-141-43/+43
| | | | | | | They are now always defined to either 0 or 1. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28311 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
* 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
* cosmetics: typo fixdiego2008-10-231-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27816 b3059339-0415-0410-9bf9-f77b7e298cf2
* Convert asm keyword into __asm__.flameeyes2008-10-161-42/+42
| | | | | | | | | | | | | | 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
* 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
* Do not set src[1] to the palette, it is now in the contextvitor2008-10-081-2/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27731 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove b5Dither, g5Dither and r5Dither from libswscale.cehoyos2008-10-041-34/+34
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27718 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove g6Dither from libswscale.cehoyos2008-10-041-8/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27715 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 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
* 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
* 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
* 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
* 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-121-1/+16
| | | | 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-121-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27586 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
* Implement full horizontal chroma for rgb/bgr24/32 output. michael2008-09-111-0/+28
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27580 b3059339-0415-0410-9bf9-f77b7e298cf2
* Factorize yuv2packedXinC().michael2008-09-111-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27578 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make the 2point linear interpolation coefficients correct even for themichael2008-09-101-2/+2
| | | | | | | nearly never occurring 0.0, 1.0. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27574 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix overflow.michael2008-09-101-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27573 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix build failure due to %%eip on x86_64.michael2008-09-101-4/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27569 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change RGB2YUV_SHIFT from 16 to 15 to make it able to workmichael2008-09-101-4/+2
| | | | | | | with 16bit signed constants (like SIMD might use). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27568 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add bgr/rgb15/16/32->UV-half to the macro so there is less code duplicationmichael2008-09-101-124/+24
| | | | | | | at the source level. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27567 b3059339-0415-0410-9bf9-f77b7e298cf2
* Factorize RGB/BGR15/16/32->UV by using the preprocessor.michael2008-09-101-93/+20
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27566 b3059339-0415-0410-9bf9-f77b7e298cf2
* Factorize rgb/bgr15/16/32->Y by using the preprocessor.michael2008-09-101-81/+20
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27565 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make SWS_FULL_CHR_H_INP work.michael2008-09-101-10/+164
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27564 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rewrite bgr24->yuv mmx code, the new code is cleaner, more accurate,michael2008-09-091-195/+131
| | | | | | | and does not throw half the chroma away. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27561 b3059339-0415-0410-9bf9-f77b7e298cf2
* More correct rounding for the rgb/bgr->yuv converters.michael2008-09-091-20/+20
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27557 b3059339-0415-0410-9bf9-f77b7e298cf2
* Prevent overflows during mpeg->jpeg yuv.michael2008-09-091-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27552 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix jpeg yuv.michael2008-09-081-6/+35
| | | | | | | Fixes issue504. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27547 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix accurate rounding mode on x86_64.michael2008-09-071-20/+21
| | | | | | | Fixes issue222. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27545 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make ToY and ToUV family of function consistent part Ilu_zero2008-09-071-16/+16
| | | | | | | Convert width argument from int to long (note: srcW is still an int). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27544 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make 16bit grayscale output work.michael2008-09-041-5/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27524 b3059339-0415-0410-9bf9-f77b7e298cf2
* Support PIX_FMT_RGB32_1 and PIX_FMT_BGR32_1.michael2008-09-041-0/+22
| | | | | | | Fixes issue248. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27522 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix rgb15/16 vs. bgr part2.michael2008-09-041-24/+24
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27517 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make C code in yuv2yuv1() do accurate rounding, this could be splitmichael2008-07-181-3/+3
| | | | | | | depending on SWS_ACCURATE as well if someone wants. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27323 b3059339-0415-0410-9bf9-f77b7e298cf2
* indentmichael2008-07-171-8/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27322 b3059339-0415-0410-9bf9-f77b7e298cf2
* Forgotten accurate rounding function YSCALEYUV2YV121_ACCURATE.michael2008-07-171-2/+31
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27321 b3059339-0415-0410-9bf9-f77b7e298cf2
* simplify yuv2yuv1()michael2008-07-171-16/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27320 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove ASSERT() macro. SoC Patch from Keiji Costantinilu_zero2008-07-061-18/+18
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27214 b3059339-0415-0410-9bf9-f77b7e298cf2
* spelling/grammar/wording overhauldiego2008-07-041-20/+21
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27190 b3059339-0415-0410-9bf9-f77b7e298cf2
* cast to correct type, suppress warningsbcoudurier2008-06-011-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26946 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: comment typo fixesdiego2008-03-221-1/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26269 b3059339-0415-0410-9bf9-f77b7e298cf2
* remove redundant SwScaler text since av_log uses AVClass contextbcoudurier2008-03-061-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26182 b3059339-0415-0410-9bf9-f77b7e298cf2
* Turn ancient V offset numerical constants into named ones.michael2008-03-051-61/+61
| | | | | | | | Add a check that checks that the width is within the chosen constant. This might have been exploitable. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26165 b3059339-0415-0410-9bf9-f77b7e298cf2
* __asm __volatile -> asm volatile part 3reimar2008-02-241-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26091 b3059339-0415-0410-9bf9-f77b7e298cf2
* Discard two symbols from libswscale.cehoyos2008-02-221-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26060 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make some assembler constants global instead of declaring them multiple times.reimar2008-01-291-15/+15
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25910 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change (a == NULL) condition to (!a) and (a != NULL) condition to (a).benoit2008-01-171-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25780 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove non cosmetic spaces inside parentheses.benoit2008-01-171-12/+12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25777 b3059339-0415-0410-9bf9-f77b7e298cf2
* Comment some #endif directives.diego2007-11-301-14/+14
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25211 b3059339-0415-0410-9bf9-f77b7e298cf2
* The function names of [rgb|bgr]1[56]to[UV|Y] had rgb<->bgr flipped.diego2007-11-041-8/+8
| | | | | | | Rename them to match the actual implementation. Fixes issue 162. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24965 b3059339-0415-0410-9bf9-f77b7e298cf2
* license header consistency cosmeticsdiego2007-07-051-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23722 b3059339-0415-0410-9bf9-f77b7e298cf2
* comment grammar fixesdiego2007-06-281-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23685 b3059339-0415-0410-9bf9-f77b7e298cf2
* remove the need of one extra shift in rgb16ToUVivo2007-05-091-6/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23281 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix rgb15ToUV. Correct order of components and use one shift less.ivo2007-05-091-7/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23279 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics attack, part IV: Remove all tabs and prettyprint/reindent the code.diego2007-04-301-2682/+2681
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23179 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: Remove trailing whitespace.diego2007-04-261-32/+32
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23147 b3059339-0415-0410-9bf9-f77b7e298cf2
* improve horizontal chroma resolution with palmichael2007-04-151-5/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22994 b3059339-0415-0410-9bf9-f77b7e298cf2
* convert palette to yuv instead of converting each pixel after pal->rgbmichael2007-04-151-9/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22993 b3059339-0415-0410-9bf9-f77b7e298cf2
* typodiego2007-04-071-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22932 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix a possible crash on 64 bit systems when the lumSrcPtr or chrSrcPtrreimar2007-03-011-0/+2
| | | | | | | does not fit in 32 bits. The SWS_ACCURATE_RND is still broken though. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22401 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add av_ prefix to clip functionsreimar2007-02-251-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22339 b3059339-0415-0410-9bf9-f77b7e298cf2
* BGR/RGB4 byte formats as inputmichael2007-02-171-2/+2
| | | | | | | fixing isRGB/BGR() for the byte formats git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22244 b3059339-0415-0410-9bf9-f77b7e298cf2
* pal8 inputmichael2007-02-161-6/+51
| | | | | | | this is not optimized or anything (that is easy to add just use the existing unscaled converters if possible ...) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22236 b3059339-0415-0410-9bf9-f77b7e298cf2
* Pass a context to av_log(), when possiblelucabe2007-01-231-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21999 b3059339-0415-0410-9bf9-f77b7e298cf2
* change all the occurrences of "FFMIN(FFMAX())" to clip_uint8() or clip()lucabe2006-12-261-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21776 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add some explicit casts to avoid some warningslucabe2006-12-261-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21772 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix compilation of non-MMX code with gcc 2.95lucabe2006-12-201-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21702 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change "p" asm constraints to "g", since "p" was a no longer necessary hack toreimar2006-11-271-2/+2