Commit Graph

68 Commits

Author SHA1 Message Date
ramiro b12a88e01d Use DECLARE_ALIGNED macro instead of gcc __attribute__.
Patch by Pavel Pavlov <pavel at summit-tech dot ca>

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29348 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-06-04 21:55:52 +00:00
kostya 071cdc07aa Partial (low bits ignored, no direct transcoding into other RGB formats) support
for inputting RGB48BE/LE.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29341 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-06-02 12:28:49 +00:00
kostya 5b29003e0c Let SwScaler know that RGB48 BE/LE is 16-bits per component format.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29317 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-05-19 17:37:58 +00:00
kostya 3da99d2524 Make SwScaler recognize RGB48 BE/LE colourspaces (not support though).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29316 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-05-19 17:26:22 +00:00
diego e4c9161560 Add missing const qualifiers to AltiVec function parameters where appropriate.
Fixes a couple of 'discards qualifiers from pointer target type' warnings.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29281 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-05-09 10:56:37 +00:00
michael 271357149a Change VOFW for x86 to 5120, it allows larger images to be scaled and was
not slower. Other archs are not changed as the larger VOFW was slower on PPC.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29256 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-05-05 01:34:16 +00:00
michael 7a07a0fcb0 Planar 16bit 420 422 444 YUV support (output is only supported in some
unscaled convertions).
This, like gray16 converts down to 8bit, which is a big FIXME & patch welcome,
we should preserve more bits.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29217 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-04-21 01:08:03 +00:00
michael 56702531e2 Add macro to check for 16bit per sample.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29215 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-04-21 00:03:00 +00:00
michael 36fd4baa05 add isBE()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29212 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-04-20 21:04:55 +00:00
sdrik d323bf6135 Do not use abgrToA for both luma and alpha channel in hyscale.
This fixes RGB32 (et al.) scaling.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29179 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-04-14 14:11:57 +00:00
diego 0160ed61b3 whitespace cosmetics: Reindent a few lines and break a few excessively long lines.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29174 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-04-12 22:43:03 +00:00
ramiro 9442096523 swscale: Use function pointers for swScale functions.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29145 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-04-04 22:45:02 +00:00
ramiro 0fb8cdfd14 Move bfin specific code to its subdir.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29079 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-27 22:56:56 +00:00
ramiro ab921d2cb6 Move yuv2rgb code to subdirs.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29063 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-26 01:30:10 +00:00
sdrik 57fda37dbb Add alpha channel scaling
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29011 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-20 14:15:14 +00:00
diego a186cc5523 Consistently use ff_ prefixes for internal symbols.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28988 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-18 08:06:08 +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 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
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
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
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
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
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
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 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 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 65f45532e3 Fix typo in comment.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27546 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-08 00:52:22 +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 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 a42e4e1bd5 Remove workaround for rgb/bgr mess.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27520 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-04 20:16:41 +00:00
stefano e372474088 Change header inclusion guard names in line with FFmpeg r15120.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27499 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-08-31 07:42:11 +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
diego 1e95d9f4ef spelling/grammar/wording overhaul
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27190 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-04 13:49:45 +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
benoit 7f97108f0f Make av_class a pointer to const.
Patch by Takis.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26210 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-03-10 14:30:49 +00:00
benoit 26f0d73d73 define VOF as double of VOFW.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26209 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-03-10 14:28:25 +00:00
bcoudurier fb984553d3 change sws_format_name to return const char*, supress many warnings
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26183 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-03-06 11:32:25 +00:00
michael 5022909fa8 Turn ancient V offset numerical constants into named ones.
Add a check that checks that the width is within the chosen constant.
This might have been exploitable.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26165 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-03-05 03:00:25 +00:00
cehoyos 50899e9083 Discard two symbols from libswscale.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26060 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-02-22 08:08:19 +00:00
diego 5efcab64a5 comment typo fixes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25485 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-21 11:47:09 +00:00
diego 460de55771 Add missing declarations for AltiVec functions, fixes the warnings:
swscale_template.c:1171: warning: implicit declaration of function ‘altivec_yuv2packedX’
swscale.c:1982: warning: implicit declaration of function ‘yuv2rgb_altivec_init_tables’
yuv2rgb.c:652: warning: implicit declaration of function ‘yuv2rgb_init_altivec’


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25319 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-08 04:29:11 +00:00
diego 48d39aa9a5 Fix 'make checkheaders' on AltiVec-enabled systems.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25316 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-07 15:30:12 +00:00
diego 4f29b1485a Add FFMPEG_ prefix to all multiple inclusion guards.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24800 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-18 09:30:33 +00:00
diego b13c49493c Revert wrong ARCH_BFIN --> HAVE_BFIN change.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24627 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-27 08:00:22 +00:00
mhoffman 503a85926f renaming ARCH_BFIN to HAVE_BFIN
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24309 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-31 14:57:50 +00:00
diego 64681afa04 Move Apple gcc AltiVec vector declaration syntax to libavutil.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24143 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-24 15:04:14 +00:00
diego f7176daf51 Rename CONFIG_DARWIN to SYS_DARWIN, it is not configurable (in FFmpeg).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24121 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-22 22:46:55 +00:00
benoit 7de92dc41c UltraSPARC VIS yuv2rgb
patch by Denes Balatoni: [dbalatoni interware hu]
original thread: [FFmpeg-devel] [PATCH] UltraSPARC VIS yuv2rgb third try
date: 07/17/2007 08:35 PM


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23825 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-19 07:24:43 +00:00
benoit 26333dbfec use YUV440P in swscale
patch by Andreas Öman: \andreas olebyn nu/
original thread: [FFmpeg-devel] half vertical chroma resolution from JPEGs..
date: 07/03/2007 01:29 PM


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23811 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-18 08:12:40 +00:00