Commit Graph

330 Commits

Author SHA1 Message Date
Michael Niedermayer
0f5d4aa83b Add table of rgb->yuv convertion coefficients.
Originally committed as revision 27558 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-09 18:01:25 +00:00
Michael Niedermayer
35ab2b6445 More correct rounding for the rgb/bgr->yuv converters.
Originally committed as revision 27557 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-09 16:55:58 +00:00
Michael Niedermayer
aa13b0fc55 Prevent overflows during mpeg->jpeg yuv.
Originally committed as revision 27552 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-09 03:35:07 +00:00
Michael Niedermayer
6bc0c7928a Fix jpeg yuv.
Fixes issue504.

Originally committed as revision 27547 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-08 12:36:38 +00:00
Michael Niedermayer
59ded10ca2 Fix typo in comment.
Originally committed as revision 27546 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-08 00:52:22 +00:00
Michael Niedermayer
1625216eaa Fix accurate rounding mode on x86_64.
Fixes issue222.

Originally committed as revision 27545 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-07 21:06:21 +00:00
Luca Barbato
97b93389af Make ToY and ToUV family of function consistent part I
Convert width argument from int to long (note: srcW is still an int).

Originally committed as revision 27544 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-07 18:22:29 +00:00
Michael Niedermayer
d63a2cb103 Make fast bilinear scaler work again.
Originally committed as revision 27543 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-07 16:59:04 +00:00
Baptiste Coudurier
3b38f1c60b simplify function selection code
Originally committed as revision 27528 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-05 01:44:33 +00:00
Baptiste Coudurier
a6100f39a1 enable yuv422p to uyvy converter
Originally committed as revision 27527 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-05 00:25:39 +00:00
Michael Niedermayer
b0880d5da4 Make 16bit grayscale output work.
Originally committed as revision 27524 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-04 22:58:16 +00:00
Michael Niedermayer
736143c8d9 Fix SWS_FAST_BILINEAR and SWS_POINT with some unscaled rgb<->bgr converters.
Originally committed as revision 27523 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-04 22:31:22 +00:00
Michael Niedermayer
9990e4269c Support PIX_FMT_RGB32_1 and PIX_FMT_BGR32_1.
Fixes issue248.

Originally committed as revision 27522 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-04 21:59:15 +00:00
Michael Niedermayer
1462302027 Fix 4 and 8 bit RGB/BGR input.
Originally committed as revision 27521 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-04 20:46:36 +00:00
Michael Niedermayer
d52337af70 Remove workaround for rgb/bgr mess.
Originally committed as revision 27520 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-04 20:16:41 +00:00
Michael Niedermayer
7372e9bbe5 Fix 4 of the unscaled rgb15/16 converters, each of these contained
2-3 bugs each of which made it fail completely, this code clearly
has never been tested and been written by somone who knows the
difference between a potato and a computer is that the first is round.

Originally committed as revision 27519 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-04 19:49:13 +00:00
Michael Niedermayer
6107059c2c rgb vs bgr fix for the unscaled converters.
Originally committed as revision 27518 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-04 19:11:39 +00:00
Michael Niedermayer
27a90b0450 Fix rgb15/16 vs. bgr part2.
Originally committed as revision 27517 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-04 18:24:25 +00:00
Michael Niedermayer
688b5e8020 Fix rgb15/16 vs. bgr part1.
Originally committed as revision 27516 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-04 18:14:29 +00:00
Michael Niedermayer
ae9e0e8391 Add fflush to prevent stdout & stderr from being mixed.
Originally committed as revision 27515 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-04 15:13:55 +00:00
Stefano Sabatini
0eaf523548 Change headers' guardnames consistently with r15120.
Originally committed as revision 27499 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-08-31 07:42:11 +00:00
Stefano Sabatini
b3e03fa7b0 Implement swscale_version().
Originally committed as revision 27492 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-08-29 18:23:54 +00:00
Guillaume Poirier
14b83f9a3d compilation fix with GCC 4.0.1 on MacOSX tiger, broken by the removal of AVV() macro
Originally committed as revision 27349 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-07-25 09:15:08 +00:00
Diego Biurrun
6b83bb1ee8 Fix indentation after last commit.
Originally committed as revision 27345 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-07-24 16:52:35 +00:00
Diego Biurrun
f22e5e22ef Remove AltiVec vector declaration compiler compatibility macros.
The original problem was that FSF and Apple gcc used a different syntax
for vector declarations, i.e. {} vs. (). Nowadays Apple gcc versions support
the standard {} syntax and versions that support {} are available on all
relevant Mac OS X versions. Thus the greater compatibility is no longer
worth cluttering the code with macros.

Originally committed as revision 27344 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-07-24 16:49:14 +00:00
Michael Niedermayer
091d3bdc73 fix memleak
Originally committed as revision 27332 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-07-21 11:41:13 +00:00
Michael Niedermayer
47b7382d29 Cleanup, use av_freep() instead of av_free(x); x=NULL
Originally committed as revision 27331 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-07-21 11:18:24 +00:00
Michael Niedermayer
a1f3ffa3ce Make C code in yuv2yuv1() do accurate rounding, this could be split
depending on SWS_ACCURATE as well if someone wants.

Originally committed as revision 27323 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-07-18 00:09:09 +00:00
Michael Niedermayer
d78c1ea16f indent
Originally committed as revision 27322 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-07-17 23:43:48 +00:00
Michael Niedermayer
bf2bdde67a Forgotten accurate rounding function YSCALEYUV2YV121_ACCURATE.
Originally committed as revision 27321 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-07-17 23:42:06 +00:00
Michael Niedermayer
7bae01c62c simplify yuv2yuv1()
Originally committed as revision 27320 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-07-17 23:35:36 +00:00
Michael Niedermayer
6afc7c19f0 10l forgot SWS_BILINEAR
Originally committed as revision 27318 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-07-17 22:30:02 +00:00
Michael Niedermayer
010c00bc81 Ensure that exactly one scaler algo is used.
Originally committed as revision 27317 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-07-17 22:01:18 +00:00
Alexander Strange
88c5cadc2a Cosmetics: reindent.
Originally committed as revision 27279 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-07-13 22:27:50 +00:00
Alexander Strange
2ac6ff2ecb Remove const vector casts.
Fixes compilation with altivec and -std=gnu99.

Originally committed as revision 27278 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-07-13 22:27:19 +00:00
Luca Barbato
1619f426b9 100L, avoption splited code added, I should double check with svn status...
Originally committed as revision 27245 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-07-10 15:37:06 +00:00
Luca Barbato
e40b183d3a Split AVOption/AVClass in a separate file. SoC Patch from Keiji Costantini
Originally committed as revision 27244 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-07-09 22:43:08 +00:00
Luca Barbato
fcc402b1c9 Remove ASSERT() macro. SoC Patch from Keiji Costantini
Originally committed as revision 27214 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-07-06 03:32:47 +00:00
Luca Barbato
bc5a04440b Reindent. SoC Patch from Keiji Costantini
Originally committed as revision 27213 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-07-06 03:27:31 +00:00
Luca Barbato
2d35ae567f Split simpleCopy into packedCopy and planarCopy. SoC Patch from Keiji Costantini
Originally committed as revision 27212 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-07-06 03:26:32 +00:00
Diego Biurrun
8a3227968c spelling/grammar/wording overhaul
Originally committed as revision 27190 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-07-04 13:49:45 +00:00
Diego Biurrun
4bdc44c7fe whitespace cosmetics
Originally committed as revision 27188 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-07-04 13:14:29 +00:00
Diego Biurrun
7a4d5e174c Place license header at the top of the file for consistency.
Originally committed as revision 27187 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-07-04 13:12:47 +00:00
Diego Biurrun
b146e17df5 OBJS should end in .o, not .c.
Originally committed as revision 27035 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-06-08 14:44:38 +00:00
Jan Knutar
862ae1d6a2 VIS OBJS should end in .o, not .c; patch by Jan Knutar, jknutar nic fi.
Originally committed as revision 27034 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-06-08 14:44:05 +00:00
Jan Knutar
f3bbfe785e Add missing #include, patch by Jan Knutar, jknutar nic fi.
Originally committed as revision 27033 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-06-08 14:41:44 +00:00
Baptiste Coudurier
ce3d365f2f restore needed cast to correct type with const
Originally committed as revision 26957 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-06-01 19:08:16 +00:00
Baptiste Coudurier
b8b015f483 cast to correct type, suppress warnings
Originally committed as revision 26949 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-06-01 03:36:23 +00:00
Baptiste Coudurier
74498eb44b cast to correct type, suppress warnings
Originally committed as revision 26948 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-06-01 03:35:27 +00:00
Baptiste Coudurier
73d046e21f add const, suppress warnings
Originally committed as revision 26947 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-06-01 03:34:39 +00:00
Baptiste Coudurier
87cf861c7d cast to correct type, suppress warnings
Originally committed as revision 26946 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-06-01 03:28:15 +00:00
Baptiste Coudurier
3e62b7e34c add const, suppress warnings
Originally committed as revision 26945 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-06-01 03:27:45 +00:00
Baptiste Coudurier
72d6b61074 remove useless casts
Originally committed as revision 26944 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-06-01 03:25:07 +00:00
Baptiste Coudurier
774c386a10 add const, suppress warnings
Originally committed as revision 26943 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-06-01 03:23:50 +00:00
Baptiste Coudurier
994c1ef014 add const, suppress warnings
Originally committed as revision 26942 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-06-01 03:21:12 +00:00
Baptiste Coudurier
baf7f7c64a remove useless casts
Originally committed as revision 26941 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-06-01 03:17:42 +00:00
Keiji Costantini
49f2339cbf Remove in_asm_used_var_warning_killer()
Patch by Keiji Costantini ( strites gmail com )

Originally committed as revision 26706 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-05-09 12:47:55 +00:00
Diego Biurrun
83da2c6f26 Use full path for #includes from another directory.
Originally committed as revision 26702 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-05-09 12:00:25 +00:00
Diego Biurrun
8ab52e71e1 cosmetics: sort lines (correctly)
Originally committed as revision 26673 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-05-05 10:10:05 +00:00
Luca Barbato
e3e0d99332 Cosmetics: reorder and align targets
Originally committed as revision 26671 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-05-04 20:22:03 +00:00
Luca Barbato
5478959b8f Build sparc arch specific code using the Makefile
Originally committed as revision 26670 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-05-04 20:19:33 +00:00
Diego Biurrun
4405c986f9 cosmetics: alphabetical order
Originally committed as revision 26669 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-05-04 18:28:24 +00:00
Diego Biurrun
c6d4cef7c3 cosmetics: __asm__ __volatile__ --> asm volatile
Originally committed as revision 26456 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-04-17 21:54:43 +00:00
Diego Biurrun
54e3ae2ea6 Relicense test/example files as LGPL with Michael's permission.
Originally committed as revision 26429 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-04-13 01:29:24 +00:00
Måns Rullgård
7669899bdf non-recursive makefiles
Originally committed as revision 26346 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-04-07 21:16:50 +00:00
Diego Biurrun
5202ed315b Fix wrong #endif comment.
Originally committed as revision 26300 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-03-29 15:51:05 +00:00
Diego Biurrun
bfffdb81c2 Classify mlib as a configurable option, not as a hardware feature.
Originally committed as revision 26275 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-03-25 21:30:46 +00:00
Alexander Strange
86593486b4 Fix 64 bit shared library compilation with MMX2 by properly using PIC mangling.
patch by Alexander Strange, astrange ithinksw com

Originally committed as revision 26270 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-03-22 18:22:53 +00:00
Diego Biurrun
4cf16bbed5 cosmetics: comment typo fixes
Originally committed as revision 26269 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-03-22 17:35:32 +00:00
Diego Biurrun
c5fec7d76c Remove redundant ARCH_POWERPC #ifdef around HAVE_ALTIVEC.
Originally committed as revision 26264 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-03-18 22:14:57 +00:00
Zuxy Meng
5a352b14e7 Fix a typo that causes an assertion to always fail.
Reported by Alexander Bokovikov (openworld AT uralweb DOT ru)

Originally committed as revision 26257 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-03-17 06:01:58 +00:00
Diego Biurrun
bee972eead typo
Originally committed as revision 26251 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-03-15 16:13:24 +00:00
Diego Biurrun
e982d4d39f Remove the unused function roundToInt16. It is a duplicate of the same function
in swscale.c. Fixes the warning:
yuv2rgb_altivec.c:751: 'roundToInt16' defined but not used

Originally committed as revision 26247 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-03-15 10:04:19 +00:00
Diego Biurrun
a6f6b237e2 typos
Originally committed as revision 26228 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-03-12 23:50:48 +00:00
Diego Biurrun
a04e32407d Mark Y variable in EPILOG macro as av_unused to avoid unused variable warnings.
Originally committed as revision 26220 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-03-11 09:01:38 +00:00
Diego Biurrun
06de58d2a8 typo
Originally committed as revision 26212 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-03-10 18:38:46 +00:00
Panagiotis Issaris
635a8cd27d Make av_class a pointer to const.
Patch by Takis.

Originally committed as revision 26210 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-03-10 14:30:49 +00:00
Benoit Fouet
710af50e0c define VOF as double of VOFW.
Originally committed as revision 26209 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-03-10 14:28:25 +00:00
Diego Biurrun
3f0bc115f1 Remove redundant swScaler: output from places where av_log()
properly prints the context anyway.

Originally committed as revision 26207 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-03-10 07:30:24 +00:00
Diego Biurrun
69ed2c3b92 cosmetics: Remove useless empty line.
Originally committed as revision 26201 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-03-08 14:54:36 +00:00
Diego Biurrun
2e7bd34493 cosmetics: Consistently move NAME and FFLIBS to the top of each Makefile.
Originally committed as revision 26200 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-03-08 14:40:18 +00:00
Måns Rullgård
6b60ac3ee5 simplify library version handling
Originally committed as revision 26193 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-03-07 19:27:08 +00:00
Måns Rullgård
b10b849f35 consolidate CFLAGS, LDFLAGS, EXTRALIBS assignment
Originally committed as revision 26186 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-03-06 20:44:47 +00:00
Baptiste Coudurier
8055ede6c7 change sws_format_name to return const char*, supress many warnings
Originally committed as revision 26183 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-03-06 11:32:25 +00:00
Baptiste Coudurier
4b0c30b79c remove redundant SwScaler text since av_log uses AVClass context
Originally committed as revision 26182 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-03-06 09:51:25 +00:00
Michael Niedermayer
56adc69501 One more (forgotten) fix for fixing sws_flags.
Originally committed as revision 26166 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-03-05 04:03:44 +00:00
Michael Niedermayer
8b2fce0d3f Turn ancient V offset numerical constants into named ones.
Add a check that checks that the width is within the choosen constant.
This might have been exploitable.

Originally committed as revision 26165 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-03-05 03:00:25 +00:00
Måns Rullgård
e08e6bb6f2 less preprocessor magic in version number macros
Originally committed as revision 26105 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-02-26 20:38:02 +00:00
Diego Biurrun
e281d6844b Fix outdated comment.
Originally committed as revision 26099 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-02-25 09:43:52 +00:00
Måns Rullgård
885176993a #include "libavutil/avutil.h" in swscale.h
Originally committed as revision 26097 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-02-25 09:24:33 +00:00
Reimar Döffinger
f018bc1000 __asm __volatile -> asm volatile part 3
Originally committed as revision 26091 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-02-24 14:59:16 +00:00
Carl Eugen Hoyos
0cb2559445 Discard two symbols from libswscale.
Originally committed as revision 26060 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-02-22 08:08:19 +00:00
Måns Rullgård
ccf95ef1de Clean up lib* version definitions
Originally committed as revision 26034 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-02-19 22:52:28 +00:00
Måns Rullgård
1d03e71805 remove duplicate AV_STRINGIFY() definition
Originally committed as revision 26013 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-02-17 03:54:07 +00:00
Mike Frysinger
d2a4ecafbb FLAT objects cannot have multiple sections, so using the L1 attributes breaks
linking. The FDPIC relocs also break for any other format. Thus check the
compiler environment and select the appropriate sections/relocs.
patch by Mike Frysinger, vapier.adi a gmail d com

Originally committed as revision 26010 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-02-16 15:17:59 +00:00
Stefano Sabatini
0d6fd5ec13 More explicit unsupported pixel format error messages.
Patch by Stefano Sabatini: stefano sabatini (minus) lala % poste it

Originally committed as revision 25999 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-02-15 07:50:27 +00:00
Diego Biurrun
f1cc49a68e typo
Originally committed as revision 25991 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-02-13 09:07:41 +00:00
Carl Eugen Hoyos
ae797914dd Make dither4 & dither8 const.
Originally committed as revision 25967 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-02-09 22:57:37 +00:00
Reimar Döffinger
5802683a97 Make some assembler constants global instead of declaring them multiple times.
Originally committed as revision 25910 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-01-29 14:58:10 +00:00
Reimar Döffinger
d334c7c237 Use DECLARE_ASM_CONST where possible in libswscale code
Originally committed as revision 25903 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-01-28 14:38:11 +00:00