Commit Graph

508 Commits

Author SHA1 Message Date
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
Cédric Schieli 39e5f87b1a Do not use abgrToA for both luma and alpha channel in hyscale.
This fixes RGB32 (et al.) scaling.

Originally committed as revision 29179 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-14 14:11:57 +00:00
Diego Biurrun cc3a248603 Move addition of MMX-OBJS to OBJS into common.mak instead of duplicating it.
Originally committed as revision 29175 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-12 22:49:58 +00:00
Diego Biurrun 457eed7204 whitespace cosmetics: Reindent a few lines and break a few excessively long lines.
Originally committed as revision 29174 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-12 22:43:03 +00:00
Ramiro Polla 10a7d21672 Rename RUNTIME_CPUDETECT to CONFIG_RUNTIME_CPUDETECT and always define it.
Originally committed as revision 29154 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-08 20:21:21 +00:00
Ramiro Polla dd4090256c swscale: Remove X86 commented out code.
Originally committed as revision 29149 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-05 19:17:53 +00:00
Ramiro Polla 40fa514033 swscale: Use function pointers for swScale functions.
Originally committed as revision 29145 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-04 22:45:02 +00:00
Ramiro Polla 14d5c18c98 swscale: {}-related cosmetics.
Originally committed as revision 29144 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-04 22:43:24 +00:00
Ramiro Polla 7ac4032784 swscale: Add const to some swScale functions' parameters.
Originally committed as revision 29143 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-04 22:41:46 +00:00
Ramiro Polla 95b5770bc7 swscale: Remove mmx2 params from h[yc]scale().
Originally committed as revision 29129 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-02 18:34:11 +00:00
Ramiro Polla 392b656764 swscale: Split h[yc]scale_fast() into their own functions.
Originally committed as revision 29128 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-02 18:32:49 +00:00
Ramiro Polla 5b7c7dd329 swscale: Execute sfence and emms depending on runtime flags.
Originally committed as revision 29127 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-02 18:31:22 +00:00
Måns Rullgård 99cc563f26 Make examples and test progs depend on libraries
Originally committed as revision 29119 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-04-01 00:54:23 +00:00
Diego Biurrun e7f98e4e94 Add missing $(EXESUF) to example/test program dependency declaration.
Originally committed as revision 29114 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-03-31 16:52:24 +00:00
Reimar Döffinger 4ed886430c Use correct PRId64 instead of "lld" in printf string, fixes compiler warnings.
Originally committed as revision 29107 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-03-30 12:23:28 +00:00
Diego Biurrun 4b086e7f21 Generalize example target rule in common.mak so that it sets a -example$(EXESUF)
suffix for all example files instead of doing this in individual Makefiles.

Originally committed as revision 29100 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-03-29 14:35:38 +00:00
Diego Biurrun 009d2d74c2 Move swscale AltiVec template code to ppc subdirectory.
Originally committed as revision 29099 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-03-29 14:18:44 +00:00
Diego Biurrun 4d02387f74 Relicense file to LGPL with the permission of Romain Dolbeau, the author.
Originally committed as revision 29097 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-03-29 13:47:30 +00:00
Ramiro Polla d5e9bc0636 Move bfin specific code to its subdir.
Originally committed as revision 29079 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-03-27 22:56:56 +00:00
Diego Biurrun 66e6aec589 Rename cs_test.c --> colorspace-test.c. This is more consistent with the names
of other test programs and more descriptive of what the program does.

Originally committed as revision 29067 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-03-26 14:20:15 +00:00
Ramiro Polla befa8e665c Move yuv2rgb code to subdirs.
Originally committed as revision 29063 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-03-26 01:30:10 +00:00
Diego Biurrun e43f34bd44 swscale-example is an API example, not a test program.
Originally committed as revision 29056 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-03-25 18:08:52 +00:00
Cédric Schieli 4626ee1a8c Adds "YUYV422 to YUVA420P" and "UYVY422 to YUVA420P" unscaled convertion
Originally committed as revision 29048 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-03-24 07:11:35 +00:00
Cédric Schieli 08218e6d83 Fix some places where "non-alpha to YUVA420P" do not fill the alpha plane
Originally committed as revision 29047 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-03-24 07:10:19 +00:00
Cédric Schieli 0928f1eb53 Simpler and more elegant fix to the x86_32/OSX+PIC build failure
Originally committed as revision 29046 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-03-24 07:09:19 +00:00
Diego Biurrun 9e12268c57 Rename 'tests' target to 'testprogs'. It is too easily confused with the
'test' target and a directory named tests exists.

Originally committed as revision 29039 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-03-22 23:15:54 +00:00
Diego Biurrun f1c5438fbb Remove unnecessary CLEANFILES declaration. Test programs do not require it.
Originally committed as revision 29038 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-03-22 23:09:20 +00:00
Michael Niedermayer ff8084cf1c Enable unscaled packed422 -> planar 420 converters by default as the
imgconvert inherited quality issues should be fixed.

Originally committed as revision 29031 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-03-21 23:59:02 +00:00
Michael Niedermayer 3d99e069e4 10l (C code was buggy and untested)
Originally committed as revision 29030 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-03-21 23:52:34 +00:00
Michael Niedermayer 870a4adbb7 Average chroma of 2 lines in packed 422 -> planar 420.
Originally committed as revision 29029 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-03-21 23:45:20 +00:00
Cédric Schieli 986b6f8f73 Fix build failure on x86_32 Mac OS X with PIC enabled
Originally committed as revision 29022 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-03-21 12:16:32 +00:00
Reimar Döffinger 6f34808691 Fix planarCopy to ignore the GRAY8 "pseudo"-palette, fixes libavtest regression test.
Originally committed as revision 29021 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-03-21 10:20:16 +00:00
Reimar Döffinger 20ddf5a8e4 Avoid crash on planarCopy to a destination without alpha.
Makes regression tests run again, though the results are still wrong.

Originally committed as revision 29018 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-03-20 17:22:03 +00:00
Benoit Fouet 1cd98da820 Initialize pointer arrays which may be freed before being initialized.
Originally committed as revision 29017 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-03-20 16:29:47 +00:00
Reimar Döffinger 04ef1d3f7b Do _not_ use rbx on x86_64, it will fail to compile with PIC, besides it
added completely pointless code.

Originally committed as revision 29016 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-03-20 16:23:48 +00:00
Reimar Döffinger d55ef6362f Fix swscale compilation with Altivec enabled.
Originally committed as revision 29015 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2009-03-20 16:12:03 +00:00