Commit Graph

421 Commits

Author SHA1 Message Date
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