Commit Graph

133 Commits

Author SHA1 Message Date
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
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 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 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 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 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 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 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 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 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
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
michael c3c284f8d2 Add table of rgb->yuv conversion coefficients.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27558 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-09 18:01:25 +00:00
michael b128f3e558 Fix jpeg yuv.
Fixes issue504.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27547 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-08 12:36:38 +00:00
michael 7dd7068c7a Fix accurate rounding mode on x86_64.
Fixes issue222.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27545 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-07 21:06:21 +00:00
michael 1333189983 Make fast bilinear scaler work again.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27543 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-07 16:59:04 +00:00
bcoudurier 244d3d1622 simplify function selection code
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27528 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-05 01:44:33 +00:00
bcoudurier 3178a5606a enable yuv422p to uyvy converter
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27527 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-05 00:25:39 +00:00
michael a0d85f9301 Make 16bit grayscale output work.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27524 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-04 22:58:16 +00:00
michael c1fa10dc7e Fix SWS_FAST_BILINEAR and SWS_POINT with some unscaled rgb<->bgr converters.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27523 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-04 22:31:22 +00:00
michael 172a4bfaea Support PIX_FMT_RGB32_1 and PIX_FMT_BGR32_1.
Fixes issue248.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27522 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-04 21:59:15 +00:00
michael 1a636fc7f9 Fix 4 and 8 bit RGB/BGR input.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27521 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-04 20:46:36 +00:00
stefano 6c30638aa1 Implement swscale_version().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27492 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-08-29 18:23:54 +00:00
michael 4993d0c46a fix memleak
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27332 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-21 11:41:13 +00:00
michael 76affcd2cb Cleanup, use av_freep() instead of av_free(x); x=NULL
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27331 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-21 11:18:24 +00:00
michael 8d04d0c285 10l forgot SWS_BILINEAR
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27318 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-17 22:30:02 +00:00
michael fb9c400ac2 Ensure that exactly one scaler algo is used.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27317 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-17 22:01:18 +00:00
lu_zero afbb3b8a16 Split AVOption/AVClass in a separate file. SoC Patch from Keiji Costantini
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27244 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-09 22:43:08 +00:00
lu_zero d34eccfec3 Remove ASSERT() macro. SoC Patch from Keiji Costantini
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27214 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-06 03:32:47 +00:00
lu_zero 4e3106460f Reindent. SoC Patch from Keiji Costantini
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27213 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-06 03:27:31 +00:00
lu_zero ba7100e51c Split simpleCopy into packedCopy and planarCopy. SoC Patch from Keiji Costantini
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27212 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-06 03:26:32 +00:00
bcoudurier 3b5904ef9a cast to correct type, suppress warnings
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26949 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-01 03:36:23 +00:00
bcoudurier f8ac253ab4 cast to correct type, suppress warnings
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26948 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-01 03:35:27 +00:00
bcoudurier cdd5253352 cast to correct type, suppress warning
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26947 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-01 03:34:39 +00:00
bcoudurier 1a38d2aaea add const, suppress warnings
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26945 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-01 03:27:45 +00:00
superdump 429e8afc84 Remove in_asm_used_var_warning_killer()
Patch by Keiji Costantini ( strites gmail com )


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26706 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-05-09 12:47:55 +00:00
diego e6f301c8ae Use full path for #includes from another directory.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26702 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-05-09 12:00:25 +00:00
diego b090190936 Fix 64 bit shared library compilation with MMX2 by properly using PIC mangling.
patch by Alexander Strange, astrange ithinksw com


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26270 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-03-22 18:22:53 +00:00