diego
f7bb9b8955
Remove unused function fast_memcpy.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27673 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-29 06:06:19 +00:00
diego
e440b6bbdc
cosmetics: indentation
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27672 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-29 05:41:54 +00:00
michael
deea294c89
Revert mistakenly committed hunk.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27671 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-29 01:15:54 +00:00
michael
0c42ebdc5c
Print all cases that are tested, not just the ones that are bad.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27670 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-29 01:14:27 +00:00
michael
f627d46a0d
Fix infinite loop with spline, bug was introduced in r27612 by me.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27669 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-29 01:08:01 +00:00
lu_zero
cec6a449ef
Uniform *ToY and *ToUV function signatures
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27636 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-18 00:26:37 +00:00
lu_zero
3a3d1283b6
Split mono2Y in monowhite and monoblack
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27635 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-18 00:24:32 +00:00
lu_zero
b1f6b96548
Factorize unit32_t* casts for palette pointer
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27634 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-18 00:22:53 +00:00
michael
e4a71d0818
Fix segfault with rgb24 and full_internal_chroma due to non-existing alpha
...
byte being written after the array.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27628 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-16 03:49:54 +00:00
michael
da1f355a05
Avoid using floating point for calculating filter coefficients.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27612 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-15 03:33:09 +00:00
michael
c9a70bb478
Avoid some explicit types in sizeof().
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27611 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-14 19:29:14 +00:00
michael
aee49d5e58
Use av_mallocz() instead of for() =0;
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27610 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-14 19:25:16 +00:00
michael
5f9a7d91b9
Move dither tables from yuv2rgb to swscale, they have been written by me and
...
can be used under LGPL.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27609 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-14 18:00:49 +00:00
ben
62146f22be
Fix libswscale build after r27561 if --enable-runtime-cpudetection is used.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27602 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-13 16:13:04 +00:00
michael
b726d73ed1
Fix indention.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27600 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-13 13:41:47 +00:00
michael
f5a4bd86cb
Rename yuv2rgb variables to avoid name clashes with the ones used by bfin asm.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27599 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-13 11:52:03 +00:00
michael
79c5484c9f
Disable mmx routines that are not bitexact when the user wants
...
bitexact ones.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27597 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-13 03:12:15 +00:00
michael
6869e4a7a4
Make horizontal mmx scaling code match C code.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27596 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-13 02:18:12 +00:00
michael
07fd651300
Ensure that additional filter coeffs that exist due to alignment
...
are 0 if bitexact mode is requested.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27595 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-13 02:04:10 +00:00
michael
57db6892cf
yvu9toyv12Wrapper is not bitexact so disable it when the user wants
...
bitexactness to C.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27594 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-12 23:52:37 +00:00
michael
68de5a33c9
Make the horizontal C scaler code clip only against INT16_MAX not 0,
...
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
2008-09-12 22:29:21 +00:00
michael
d8bf925d4c
Add bitexact flag.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27592 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-12 21:46:53 +00:00
michael
e5f0ead24f
The yuv->rgb tables are too small for cliping to be avoidable,
...
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
2008-09-12 21:25:42 +00:00
michael
df44f03e48
Fix another 1000l bug in the mono input code.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27590 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-12 18:05:57 +00:00
michael
02da3e1bf9
Add support for PIX_FMT_YUV440P.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27589 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-12 17:51:13 +00:00
michael
d28a3ad668
10000l PIX_FMT_MONOWHITE check was really a || 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
2008-09-12 17:28:36 +00:00
michael
296ccc70ea
Support mono as input format.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27587 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-12 16:46:38 +00:00
michael
fc855e63d2
Add support for PIX_FMT_MONOWHITE as output format.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27586 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-12 16:01:17 +00:00
michael
229dec600d
rgb24toyv12 is not accurately rounding, so disable it as well when the
...
user asks for accurate rounding.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27585 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-12 04:40:51 +00:00
michael
cc3ec5b4f2
Do not use the unscaled yuv->rgb converters if SWS_ACCURATE_RND is set,
...
because they do not accurately round.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27584 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-12 02:05:37 +00:00
michael
fa93e449fc
100000000000000l, forgot to commit header change for r27580.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27583 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-11 22:02:15 +00:00
michael
6d7e720009
Fix typo that lead to averaging of the same pixel in rgb24ToUV_half().
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27582 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-11 14:47:18 +00:00
michael
42643629cd
Remove mistakely commited code i used for testing.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27581 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-11 14:40:29 +00:00
michael
6009a04a23
Implement full horizontal chroma for rgb/bgr24/32 output.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27580 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-11 14:39:12 +00:00
michael
3ea1657e65
Do not do unneeded clipping in YSCALE_YUV_2_PACKEDX_C.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27579 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-11 03:22:39 +00:00
michael
9c49671d8b
Factorize yuv2packedXinC().
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27578 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-11 02:36:51 +00:00
michael
4abaf837d9
Set rgb2yuv constants more accurately, makes no real difference though.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27577 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-11 01:49:35 +00:00
michael
fd6cd1c95c
Fix chroma yuv->rgb tables for jpeg style yuv, this was missed as it
...
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
2008-09-11 00:09:01 +00:00
michael
d351b78abd
Correct normalization constant for the vertical filter.
...
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
2008-09-10 23:23:47 +00:00
michael
53a3e8ee69
Make the 2point linear interpolation coefficients correct even for the
...
nearly never occurring 0.0, 1.0.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27574 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-10 22:41:55 +00:00
michael
60a3099c0d
Fix overflow.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27573 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-10 20:47:16 +00:00
michael
b42b0e0c92
Fix build failure due to %%eip on x86_64.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27569 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-10 17:50:49 +00:00
michael
a92e68d5a8
Change RGB2YUV_SHIFT from 16 to 15 to make it able to work
...
with 16bit signed constants (like SIMD might use).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27568 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-10 16:39:56 +00:00
michael
9af0a56c05
Add bgr/rgb15/16/32->UV-half to the macro so there is less code duplication
...
at the source level.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27567 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-10 13:55:51 +00:00
michael
bd999ce6c7
Factorize RGB/BGR15/16/32->UV by using the preprocessor.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27566 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-10 03:56:06 +00:00
michael
d49d2d9a86
Factorize rgb/bgr15/16/32->Y by using the preprocessor.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27565 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-10 03:42:45 +00:00
michael
50e3ffeacb
Make SWS_FULL_CHR_H_INP work.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27564 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-10 02:28:38 +00:00
diego
b15d176346
spelling/wording cosmetics
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27563 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-10 00:02:31 +00:00
michael
0382fdf50a
More accurate rounding for 8bit inputs.
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27562 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-09 23:39:32 +00:00
michael
0c6d92bfda
Rewrite bgr24->yuv mmx code, the new code is cleaner, more accurate,
...
and does not throw half the chroma away.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27561 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-09 23:30:06 +00:00