Commit Graph

535 Commits

Author SHA1 Message Date
sdrik 4acac0faf5 Make the source buffer operands parametrized in the YSCALEYUV2RGB_YA macro
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28943 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-14 08:11:03 +00:00
sdrik 437ee8cc61 Make MMX registers parametrized in the YSCALEYUV2PACKEDX_YA macro
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28934 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-11 14:44:22 +00:00
sdrik 7fee9f0101 In initMMX2HScaler, when chrDstW is not divisible by 4, the last filterPos element is initialized on the wrong index (not evenly aligned). This fixes it
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28933 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-11 14:22:53 +00:00
kostya 72304af23b Mask all unused bits for packed pixel format instead of green and alpha mask only.
That fixes the case when converting 15-bit RGB/BGR to YUV and high bit is set
for input value(s).



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28916 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-09 17:25:43 +00:00
sdrik 052223b195 Let the 4th plane reach the swScale function
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28868 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-07 09:39:48 +00:00
sdrik b099db94af YUVA420P is a planar YUV format
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28867 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-07 09:37:25 +00:00
sdrik 71cc30d9d5 Fix bug introduced by me in r28756
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28825 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-05 21:02:33 +00:00
sdrik a0b901212b Rewrite of rgb15to32 and rgb16to32 using fewer asm instructions and setting alpha channel to 0xFF
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28808 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-04 19:12:49 +00:00
henry db234369ff remove the rest of x86 asm from LGPL build
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28804 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-03 19:47:23 +00:00
rathann 014b0d3f51 Fix typo in comments.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28777 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-01 11:43:56 +00:00
reimar 824077b987 Add warnings to yuv2rgb_vis.c because alpha is set wrong (0 instead of 255).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28776 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-01 11:38:46 +00:00
reimar fb888843d8 Make AltiVec code write alpha as 255 instead of 0 when converting to RGBA
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28774 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-01 11:35:00 +00:00
reimar 25a27fd17a Fix braindead and broken way to calculate abase, fixes regression tests on
big-endian systems.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28773 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-01 11:33:10 +00:00
sdrik 3a81bf82a0 When converting from a non alpha format to an alpha format, defaults to all ones rather than all zeroes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28756 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-28 08:01:52 +00:00
sdrik f3ea1ffd7b Add an isALPHA macro to check if pixel format has alpha channel
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28747 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-27 22:23:20 +00:00
sdrik 255c11b745 Use YUV420P code path for YUVA420P where appropriate
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28746 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-27 22:13:55 +00:00
cehoyos f9d981ad92 Refactor code for upcoming alpha patches.
Patch by Cédric Schieli, cschieli A gmail


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28741 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-27 20:44:59 +00:00
diego e1724e3000 Rename yuv2rgb2.c --> yuv2rgb.c.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28723 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-24 22:40:20 +00:00
diego b699efe1a6 Relicense AltiVec optimizations as LGPL with the permission of Marc Hoffman
and Reza Jelveh, the original authors.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28717 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-24 15:27:14 +00:00
diego 9e540cc708 Remove GPL version of yuv2rgb.c that has been replaced by an LGPL substitute.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28716 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-24 14:50:28 +00:00
kostya c548a42f3c New LGPLed YUV2RGB table generator for SwScaler
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28700 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-22 09:22:05 +00:00
cehoyos a9abd00be4 Factorize some code in yuv2rgb_template.c to ease further yuva2rgb patch.
Patch by Cédric Schieli, cschieli gmail


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28690 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-21 14:51:01 +00:00
stefang d7c0bde0e1 move zeroing of alpha channel register out of YSCALEYUV2xxx macros,
patch by Cédric Schieli (cschieli at gmail youknowwhat)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28687 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-21 10:54:29 +00:00
stefang 3d263a0ae5 splits various YSCALEYUV2xxx macros into YSCALEYUV2xxx_UV,
YSCALEYUV2xxx_YA and YSCALEYUV2xxx_COEFF,
patch by Cédric Schieli (cschieli at gmail youknowwhat)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28686 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-21 10:52:59 +00:00
stefang 52e18fdc4f make MMX registers parametrized in the WRITEBGR32 macro,
patch by Cédric Schieli (cschieli at gmail youknowwhat)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28685 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-21 10:49:52 +00:00
stefano 908286b437 Rename the "src" parameter in the sws_scale() declaration to
"srcSlice" to stress the fact that it references a slice rather than an
image.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28655 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-18 23:16:31 +00:00
stefano ddd68248fe Document sws_scale().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28654 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-18 23:11:47 +00:00
stefano e45206dc2e Use sws_printVec2() instead of the deprecated sws_printVec().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28567 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-14 20:18:50 +00:00
stefano 0137ac7075 Implement sws_printVec2() and deprecate sws_printVec().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28566 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-14 20:14:28 +00:00
stefano bf1bcca299 Document sws_normalizeVec().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28565 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-14 19:37:13 +00:00
kostya 0605488897 Make hScale_altivec_real() trim its output like other implementations do
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28556 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-14 16:39:15 +00:00
kostya 919b7aef26 Some AltiVec functions in SwScaler produce different output than their
counterparts in pure C, so don't invoke them in bitexact mode.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28555 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-14 16:37:39 +00:00
stefano 379b176f25 Apply misc fixes for sws_getCachedContext() documentation.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28537 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-12 00:12:10 +00:00
stefano 7342791ae6 Bump micro version, related to r28491.
See the thread:
"[FFmpeg-devel] [PATCH] Explicitely declare {dst, src}Format sws_get*Context() params as enum PixelFormat".


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28536 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-12 00:07:44 +00:00
stefano 6185600f50 Document sws_getContext().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28535 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-11 23:42:29 +00:00
stefano f9e26397b7 Document sws_getIdentityVec().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28533 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-11 21:34:44 +00:00
stefano 22131f75ee Move sws_getGaussianVec() documentation from swscale.c to swscale.h.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28528 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-10 23:45:50 +00:00
stefano 87befb386e Document sws_cloneVec().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28527 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-10 23:43:08 +00:00
stefano 11827cc89f Fix typo: lenght -> length.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28526 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-10 23:40:58 +00:00
stefano bea91aaf7b Document sws_scaleVec().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28525 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-10 23:38:01 +00:00
stefano 6ea82ed46c Document sws_getConstVec().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28524 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-10 23:32:16 +00:00
stefano 2bf95acee3 Move documentation of sws_getCachedContext() from swscale.c to
swscale.h.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28523 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-10 23:26:56 +00:00
stefano 796ecba6bc Remove pointless comment regarding sws_scale_ordered().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28522 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-10 23:25:09 +00:00
stefano 5bc2baa01e Add a @deprecated notice to swscale_get_ordered().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28521 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-10 23:22:07 +00:00
diego 373df2e9e5 Remove unnecessary emms Assembler instructions.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28518 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-10 02:00:45 +00:00
stefano 832dbfeaa3 Document coeff and length fields in SwsVector.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28512 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-09 23:42:16 +00:00
diego 71c200b0cb Revert #undefining system functions, it is not necessary.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28502 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-09 20:31:35 +00:00
diego cd6eb04525 Add config.h #include for ARCH_X86 definition.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28500 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-09 18:04:19 +00:00
diego cfb5bf7d3e Add #undefs to reenable system functions that are normally forbidden in other
parts of FFmpeg but OK in this test program. Fixes the build.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28499 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-09 18:01:36 +00:00
diego 60ae9c5895 Drop DECLARE_ALIGNED from extern declarations. It creates trouble when
swscale_internal.h is #included without HAVE_AV_CONFIG_H defined.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28498 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-09 17:53:33 +00:00
kostya ab3f56987f Prefix visible YUV2RGB functions with sws_
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28496 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-09 14:31:53 +00:00
kostya c5bf12666b Give better name to Inverse_Table_6_9
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28495 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-09 14:17:30 +00:00
diego ce1a533059 Remove file name from file headers.
It provides no useful information and breaks on renames.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28494 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-09 11:19:19 +00:00
stefano 45a1edd1df Drop the deprecated sws_scale_ordered() at the next major version
bump.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28492 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-08 23:06:05 +00:00
stefano f6ff53adcc Replace int type with enum PixelFormat for the dstFormat/srcFormat
params of the sws_getContext() and sws_getCachedContext()
declarations, consistent with the implementation.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28491 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-08 23:02:06 +00:00
stefano 78a33f99f4 Fix a typo: lumaSarpen -> lumaSharpen.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28490 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-08 22:50:57 +00:00
diego 71e641a4c3 cosmetics: Remove period after copyright statement non-sentence.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28444 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-01 15:51:48 +00:00
diego 5e63efb850 Use full internal pathname in doxygen @file directives.
Otherwise doxygen complains about ambiguous filenames when files exist
under the same name in different subdirectories.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28414 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-01 02:01:31 +00:00
diego cecfbf85db HAVE_3DNOW --> HAVE_AMD3DNOW to sync with latest configure changes.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28358 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-25 19:58:33 +00:00
diego 9e48ce48d4 Declare struct SwsContext before using it, fixes the checkheaders warning:
libswscale/swscale_internal.h:58: warning: `struct SwsContext' declared inside parameter list
libswscale/swscale_internal.h:58: warning: its scope is only this definition or declaration, which is probably not what you want


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28353 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-25 12:03:28 +00:00
diego 1a1bdca3e4 Disable C code when compiling AltiVec code, fixes the warning:
swscale_template.c:2623: warning: `swScale_C' defined but not used


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28352 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-25 11:59:22 +00:00
diego 51acb7b7ab spelling/grammar cosmetics
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28351 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-25 11:57:17 +00:00
diego 2eefcf233a Fix #endif comments.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28350 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-25 11:33:35 +00:00
cehoyos 3ba07a9843 Add PIX_FMT_VDPAU_WMV3 and PIX_FMT_VDPAU_VC1.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28344 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-20 09:31:07 +00:00
cehoyos 285e30f1e4 Add VDPAU hardware accelerated decoding for MPEG1 and MPEG2 which will
be used by MPlayer.

Original patch by NVIDIA corporation.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28322 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-16 02:14:25 +00:00
aurel be34ba7a39 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
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
2009-01-14 00:13:56 +00:00
cehoyos 1015c5adf3 Add PIX_FMT_VDPAU_H264.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28281 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-08 19:54:43 +00:00
diego 8787793a78 Avoid POSIX-reserved _t namespace.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28195 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-27 11:45:46 +00:00
diego 333e050fdf consistency cosmetics: Rename POWERPC identifiers to PPC.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28194 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-27 11:33:54 +00:00
diego 41b75ecf57 Remove pointless malloc.h #include.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28164 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-19 09:59:59 +00:00
reimar 1c3d84f190 Some forgotten eax -> REG_a changes.
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
2008-12-12 16:46:43 +00:00
diego 0a5006b175 Delete unnecessary 'extern' keywords.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28082 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-03 15:25:27 +00:00
diego d7291e499e Remove commented-out duplicate declarations.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28058 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-02 00:26:14 +00:00
diego 563ae9f8eb Remove unused declarations.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28057 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-02 00:21:37 +00:00
diego 80b1673d17 cosmetics: Consistently place HEADERS before OBJS in all Makefiles.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27970 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-11-20 22:54:30 +00:00
diego f76cb1f891 Put variable declaration inside an #ifdef to avoid an unused variable warning.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27945 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-11-17 10:33:59 +00:00
diego 79782db877 Add some const specifiers to function name variables; fixes a bunch of
"initialization discards qualifiers from pointer target type" warnings.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27894 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-11-04 20:38:55 +00:00
diego 07fa797413 Merge ARCH_BFIN lines.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27889 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-11-03 22:06:45 +00:00
diego 1b623e6087 Add tests target for libswscale test programs.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27888 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-11-03 22:01:03 +00:00
mru 427bab48a4 Remove forgotten ASM_OBJS in libswscale
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27887 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-11-03 21:49:54 +00:00
vitor 9a33429014 Silence GCC warnings:
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
2008-10-27 19:59:01 +00:00
michael 75a7476b85 rgb2rgb.h was not really intended to be a public header, thus remove it.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27836 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-27 09:05:27 +00:00
michael 86843f41c2 Remove rgb2rgb.h dependancy.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27835 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-27 09:03:47 +00:00
vitor e2b8d3f60d Silence the following GCC warning:
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
2008-10-26 15:41:11 +00:00
cehoyos d6ed4677ca Remove unused code that can't be compiled without svn archive.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27827 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-25 20:41:51 +00:00
michael e3fc47b713 Do not attempt to use the unscaled yuv2rgb converter when height is odd because
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
2008-10-25 15:00:28 +00:00
vitor d979a142fd Cosmetics: alignment
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27818 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-23 19:20:14 +00:00
vitor f42e50f367 Fix broken palette8to*.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27817 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-23 19:13:11 +00:00
diego e9b43bec09 cosmetics: typo fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27816 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-23 16:23:42 +00:00
conrad b5e728431a Convert typeof keyword into __typeof__
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
2008-10-19 18:56:35 +00:00
flameeyes 3679961515 Convert asm keyword into __asm__.
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
2008-10-16 13:34:30 +00:00
flameeyes 3035850d27 Mark some symbols in swscale.c as constant.
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
2008-10-09 11:13:14 +00:00
flameeyes 98fb4aebc2 Mark dither_2x2_{8,4} static to swscale.c
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
2008-10-09 11:12:38 +00:00
flameeyes 46caebfa6e Mark variation-specific interleaveBytes static.
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
2008-10-09 11:11:35 +00:00
flameeyes 3ab65de119 Invert logic for the single-pass in swScale() functions.
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
2008-10-09 11:10:30 +00:00
cehoyos a0d55235a7 Change variable types from int to enum PixelFormat.
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
2008-10-09 08:36:04 +00:00
vitor 74bb6be453 Do not set src[1] to the palette, it is now in the context
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27731 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-08 17:48:23 +00:00
vitor c51fe849d6 Add a new unscaled PAL8 -> RGB converter.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27730 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-08 17:46:22 +00:00
aurel 9bbe7f1131 Change one more variable type from int to enum PixelFormat.
This one was missing from r27727.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27728 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-08 11:59:01 +00:00
cehoyos 878e88cd5c Change variable types from int to enum PixelFormat.
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
2008-10-07 19:44:39 +00:00
lu_zero 8ecc4934ef gcc-apple specific fallback not necessary anymore
(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
2008-10-05 21:00:16 +00:00
diego 93de0584c5 Use HAVE_FAST_64BIT instead of nonstandard __WORDSIZE macro.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27720 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-05 16:47:55 +00:00
cehoyos 99877b2fc6 Remove b5Dither, g5Dither and r5Dither from libswscale.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27718 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-04 18:50:39 +00:00
cehoyos 15d516ffdf Remove g6Dither from libswscale.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27715 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-04 16:40:35 +00:00
diego 4d040d35d0 Remove MPlayer-specific MP_WORDSIZE hack.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27698 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-04 09:52:07 +00:00
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