summaryrefslogtreecommitdiffstats
path: root/libswscale
Commit message (Collapse)AuthorAgeFilesLines
* 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
| | | | | | | only affects the C code while mmx uses different tables. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27576 b3059339-0415-0410-9bf9-f77b7e298cf2
* Correct normalization constant for the vertical filter.michael2008-09-101-2/+2
| | | | | | | | I am not completely sure why this was at such an incorrect value, but I could not find any problems when it was set correctly. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27575 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-102-5/+3
| | | | | | | 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-102-11/+165
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27564 b3059339-0415-0410-9bf9-f77b7e298cf2
* spelling/wording cosmeticsdiego2008-09-101-4/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27563 b3059339-0415-0410-9bf9-f77b7e298cf2
* More accurate rounding for 8bit inputs.michael2008-09-091-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27562 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rewrite bgr24->yuv mmx code, the new code is cleaner, more accurate,michael2008-09-092-196/+147
| | | | | | | and does not throw half the chroma away. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27561 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add table of rgb->yuv conversion coefficients.michael2008-09-091-0/+11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27558 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-082-8/+37
| | | | | | | Fixes issue504. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27547 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix typo in comment.michael2008-09-081-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27546 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix accurate rounding mode on x86_64.michael2008-09-073-21/+34
| | | | | | | 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 fast bilinear scaler work again.michael2008-09-071-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27543 b3059339-0415-0410-9bf9-f77b7e298cf2
* simplify function selection codebcoudurier2008-09-051-6/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27528 b3059339-0415-0410-9bf9-f77b7e298cf2
* enable yuv422p to uyvy converterbcoudurier2008-09-054-0/+48
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27527 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make 16bit grayscale output work.michael2008-09-042-6/+75
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27524 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix SWS_FAST_BILINEAR and SWS_POINT with some unscaled rgb<->bgr converters.michael2008-09-041-7/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27523 b3059339-0415-0410-9bf9-f77b7e298cf2
* Support PIX_FMT_RGB32_1 and PIX_FMT_BGR32_1.michael2008-09-044-8/+53
| | | | | | | Fixes issue248. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27522 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix 4 and 8 bit RGB/BGR input.michael2008-09-041-9/+34
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27521 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove workaround for rgb/bgr mess.michael2008-09-041-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27520 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix 4 of the unscaled rgb15/16 converters, each of these containedmichael2008-09-041-28/+10
| | | | | | | | | 2-3 bugs each of which made it fail completely, this code clearly has never been tested and been written by somone who knows the difference between a potato and a computer is that the first is round. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27519 b3059339-0415-0410-9bf9-f77b7e298cf2
* rgb vs bgr fix for the unscaled converters.michael2008-09-043-42/+42
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27518 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
* Fix rgb15/16 vs. bgr part1.michael2008-09-041-5/+12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27516 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add fflush to prevent stdout & stderr from being mixed.michael2008-09-041-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27515 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change header inclusion guard names in line with FFmpeg r15120.stefano2008-08-313-9/+9
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27499 b3059339-0415-0410-9bf9-f77b7e298cf2
* Implement swscale_version().stefano2008-08-292-1/+11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27492 b3059339-0415-0410-9bf9-f77b7e298cf2
* compilation fix with GCC 4.0.1 on MacOSX tiger, broken by the removal of ↵gpoirier2008-07-251-8/+8
| | | | | | AVV() macro git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27349 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: Fix indentation after last commit.diego2008-07-241-6/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27345 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove AltiVec vector declaration compiler compatibility macros.diego2008-07-241-47/+47
| | | | | | | | | | | The original problem was that FSF and Apple gcc used a different syntax for vector declarations, i.e. {} vs. (). Nowadays Apple gcc versions support the standard {} syntax and versions that support {} are available on all relevant Mac OS X versions. Thus the greater compatibility is no longer worth cluttering the code with macros. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27344 b3059339-0415-0410-9bf9-f77b7e298cf2
* fix memleakmichael2008-07-211-4/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27332 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cleanup, use av_freep() instead of av_free(x); x=NULLmichael2008-07-211-46/+22
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27331 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
*