Ramiro Polla
f1c6dfa371
MMX2 scaler: factorize initMMX2Scaler().
...
Originally committed as revision 29453 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-07-28 05:42:46 +00:00
Ramiro Polla
901775c714
MMX2 scaler: add variable to ease factorization of initMMX2Scaler().
...
Originally committed as revision 29452 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-07-28 05:41:22 +00:00
Ramiro Polla
cbdc08d5a6
Indent.
...
Originally committed as revision 29451 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-07-28 05:14:47 +00:00
Ramiro Polla
fb91df397a
Remove duplicate horizontal scaling when there aren't enough lines in a slice
...
to output the dstY line.
Originally committed as revision 29450 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-07-28 05:13:36 +00:00
Ramiro Polla
571d9587cf
Remove useless code.
...
flags can never be any other kind of scaling algorithm inside this if().
Originally committed as revision 29449 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-07-28 04:46:39 +00:00
Ramiro Polla
94daf2e94c
Do not misuse HAVE_ defines. Introduce COMPILE_TEMPLATE_ defines and use them
...
instead.
Originally committed as revision 29446 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-07-27 06:47:41 +00:00
Ramiro Polla
18c61752fd
Factorize x86 fast_bilinear assembly.
...
Originally committed as revision 29445 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-07-27 06:22:00 +00:00
Ramiro Polla
6d08d7f3c8
Fix assembly comments for x86 fast_bilinear so they match the C code.
...
Originally committed as revision 29444 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-07-27 06:20:17 +00:00
Måns Rullgård
a898cdc995
Replace WORDS_BIGENDIAN with HAVE_BIGENDIAN
...
Originally committed as revision 29439 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-07-26 12:26:32 +00:00
Måns Rullgård
78d01adaa7
Remove unnecessary #include <unistd.h>
...
Originally committed as revision 29437 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-07-23 15:23:03 +00:00
Ramiro Polla
804db4466d
Remove unused variables.
...
Originally committed as revision 29435 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-07-21 20:17:15 +00:00
Ramiro Polla
71ed6c8f06
Remove dependency from swscale_internal.h to lavu/internal.h, it is no longer
...
needed for DECLARE_ALIGNED.
Remove dependency from swscale-example.c to swscale_internal.h by duplicating
the necessary code. The duplicated code is a hack and should be removed once a
cleaner pixel format information system exists. swscale-example.c is example
code on how to use the library and therefore shouldn't rely on internal
headers.
Originally committed as revision 29415 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-07-09 02:27:39 +00:00
Diego Biurrun
29ce043374
The AltiVec code in libswscale no longer is under GPL.
...
Remove one erroneous preprocessor check for CONFIG_GPL in the AltiVec code.
Originally committed as revision 29412 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-07-05 20:10:59 +00:00
Måns Rullgård
b4b9170234
Use enum PixelFormat in sws_format_name() prototype
...
Originally committed as revision 29409 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-07-01 12:40:28 +00:00
Diego Biurrun
8b1a644177
AltiVec code and runtime cpudetect do not require CONFIG_GPL.
...
Make sure the latter is only checked for x86 optimizations, which are GPL.
Originally committed as revision 29390 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-06-25 20:06:03 +00:00
Diego Biurrun
57f6d52a22
The AltiVec optimizations of libswscale are no longer under GPL.
...
Originally committed as revision 29389 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-06-25 11:27:36 +00:00
Diego Biurrun
e912c13ad7
PPC: Make sure that COMPILE_C is not deactivated if RUNTIME_CPUDETECT is set.
...
Originally committed as revision 29388 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-06-25 10:14:05 +00:00
Vitor Sessak
fa8c408b26
Do not call rgb2rgbWrapper() for rgb48*, there is no special converter
...
yet for those formats
Originally committed as revision 29371 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-06-17 18:40:19 +00:00
Ramiro Polla
fdf70cc5c9
Kill warnings of possibly unused variables by using av_unused.
...
Originally committed as revision 29355 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-06-11 17:10:54 +00:00
Diego Biurrun
dc8229015c
Fix compilation: #undef standard library functions that are
...
forbidden within FFmpeg, but allowed in example code.
Originally committed as revision 29354 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-06-11 15:15:43 +00:00
Diego Biurrun
02163b799d
Add libavutil/internal.h #include, required for the DECLARE_ALIGNED macro.
...
This fixes swscale-example compilation.
Originally committed as revision 29353 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-06-11 10:19:04 +00:00
Stefano Sabatini
532ec28360
Remove '\p' doxygen markup, as it should improve plain text doxy
...
readability.
Originally committed as revision 29351 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-06-06 09:37:46 +00:00
Ramiro Polla
c0cf20a24a
Use DECLARE_ALIGNED macro instead of __attribute__((aligned)) for ppc code.
...
Originally committed as revision 29350 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-06-04 22:50:38 +00:00
Ramiro Polla
934626a9f9
Replace more uses of __attribute__((aligned)) by DECLARE_ALIGNED.
...
Originally committed as revision 29349 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-06-04 22:10:52 +00:00
Pavel Pavlov
92db623584
Use DECLARE_ALIGNED macro instead of gcc __attribute__.
...
Patch by Pavel Pavlov <pavel at summit-tech dot ca>
Originally committed as revision 29348 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-06-04 21:55:52 +00:00
Kostya Shishkov
5d5a8813fc
Testing RGB48 variants requires bigger stride in swscale-example.c
...
Originally committed as revision 29343 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-06-02 15:35:58 +00:00
Kostya Shishkov
68e7f4828d
YUV into RGB48 BE/LE conversion support
...
Originally committed as revision 29342 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-06-02 12:30:11 +00:00
Kostya Shishkov
e8417235d0
Partial (low bits ignored, no direct transcoding into other RGB formats) support
...
for inputting RGB48BE/LE.
Originally committed as revision 29341 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-06-02 12:28:49 +00:00
Kostya Shishkov
80704c47c4
Move colorspace conversion functions implemented in pure C from template
...
into swscale.c
Originally committed as revision 29320 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-05-25 16:42:54 +00:00
Kostya Shishkov
5b21719ea2
Let SwScaler know that RGB48 BE/LE is 16-bits per component format.
...
Originally committed as revision 29317 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-05-19 17:37:58 +00:00
Kostya Shishkov
075ec82c54
Make SwScaler recognize RGB48 BE/LE colourspaces (not support though).
...
Originally committed as revision 29316 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-05-19 17:26:22 +00:00
Diego Biurrun
0020c54cb8
Add const qualifier to param argument of sws_getContext() and
...
sws_getCachedContext(). Fixes the warning:
swscale.c:3408: warning: assignment discards qualifiers from pointer target type
Originally committed as revision 29288 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-05-10 14:00:00 +00:00
Diego Biurrun
465477e1fb
Move preprocessor condition before variable declaration, fixes the warning:
...
libswscale/swscale.c:1795: warning: unused variable 'flags'
Originally committed as revision 29287 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-05-10 11:37:04 +00:00
Diego Biurrun
f1933e436c
Add missing const qualifiers to AltiVec function parameters where appropriate.
...
Fixes a couple of 'discards qualifiers from pointer target type' warnings.
Originally committed as revision 29281 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-05-09 10:56:37 +00:00
Vitor Sessak
5f9ae1983d
Fix sliced yuv410 -> yuv420 conversion
...
Originally committed as revision 29272 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-05-07 20:41:04 +00:00
Michael Niedermayer
9507d91150
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.
Originally committed as revision 29256 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-05-05 01:34:16 +00:00
Cédric Schieli
f267119786
Fix chroma shift when scaling from ARGB on LE and BGRA on BE
...
Originally committed as revision 29242 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-05-02 08:40:53 +00:00
Cédric Schieli
b78c8e2103
Remove useless duplicated code in yuv2rgb_c_32, yuva2rgba_c and yuva2argb_c
...
Originally committed as revision 29240 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-27 14:25:44 +00:00
Carl Eugen Hoyos
8e86dd1241
Make reset_ptr() void.
...
Originally committed as revision 29229 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-23 22:19:53 +00:00
Michael Niedermayer
de1275d5e8
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.
Originally committed as revision 29217 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-21 01:08:03 +00:00
Michael Niedermayer
61a3f379e0
Merge gray->gray converters into planarCopy(), this should also make planarCopy()
...
useable for other 16bit formats once we support them.
Originally committed as revision 29216 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-21 00:08:06 +00:00
Michael Niedermayer
714f32bf15
Add macro to check for 16bit per sample.
...
Originally committed as revision 29215 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-21 00:03:00 +00:00
Michael Niedermayer
b87fae9f56
Make sure src/dst are NULL when they arent used, some code uses this to
...
simpify checks.
Originally committed as revision 29214 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-21 00:01:59 +00:00
Michael Niedermayer
081aa41db9
Use generic BE check instead of checking for gray16LE.
...
Originally committed as revision 29213 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-20 21:05:32 +00:00
Michael Niedermayer
c3dc6c5a6b
add isBE()
...
Originally committed as revision 29212 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-20 21:04:55 +00:00
Michael Niedermayer
b36da2c215
Remove 2 useless += at the end of rgb16to15(), found by CSA.
...
Originally committed as revision 29189 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-18 22:27:36 +00:00
Stefano Sabatini
a208350c3c
Rename swscale_avoption.c to options.c.
...
Consistent with lavc and lavf.
Originally committed as revision 29188 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-18 13:52:00 +00:00
Stefano Sabatini
0c067dc34b
Make sws_setColorspaceDetails() return -1 if the destination format is
...
not supported.
Originally committed as revision 29187 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-18 11:53:59 +00:00
Stefano Sabatini
2d26fa2822
Move sws_[gs]etColorspaceDetails() documentation from swscale.c to
...
swscale.h.
Originally committed as revision 29186 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-18 11:45:31 +00:00
Diego Biurrun
d648c720af
whitespace cosmetics: Break some overly long lines.
...
Originally committed as revision 29180 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-14 14:39:04 +00:00