1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00
Commit Graph

525 Commits

Author SHA1 Message Date
Luca Barbato
896a22b851 Uniform *ToY and *ToUV function signatures
Originally committed as revision 27636 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-18 00:26:37 +00:00
Luca Barbato
3a5ba0c33f Split mono2Y in monowhite and monoblack
Originally committed as revision 27635 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-18 00:24:32 +00:00
Luca Barbato
e48a79c91a Factorize unit32_t* casts for palette pointer
Originally committed as revision 27634 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-18 00:22:53 +00:00
Michael Niedermayer
d616c8ae3d Fix segfault with rgb24 and full_internal_chrome due to non existing alpha
byte being written after the array.

Originally committed as revision 27628 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-16 03:49:54 +00:00
Michael Niedermayer
a64a062fb9 Avoid using floating point for calculating filter coefficients.
Originally committed as revision 27612 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-15 03:33:09 +00:00
Michael Niedermayer
8588e1484e Avoid some explicit types in sizeof().
Originally committed as revision 27611 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-14 19:29:14 +00:00
Michael Niedermayer
22129c78d7 Use av_mallocz() instead of for() =0;
Originally committed as revision 27610 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-14 19:25:16 +00:00
Michael Niedermayer
45e18be87d Move dither tables from yuv2rgb to swscale, they have been written by me and
can be used under LGPL.

Originally committed as revision 27609 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-14 18:00:49 +00:00
Benjamin Zores
a35acd7f8c Fix libswscale build after r27561 if --enable-runtime-cpudetection is used.
Originally committed as revision 27602 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-13 16:13:04 +00:00
Michael Niedermayer
14014d47cb Fix indention.
Originally committed as revision 27600 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-13 13:41:47 +00:00
Michael Niedermayer
43c164788c Rename yuv2rgb variables to avoid name clashes with the ones used by bfin asm.
Originally committed as revision 27599 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-13 11:52:03 +00:00
Michael Niedermayer
f433c8abd3 Disable mmx routines that are not bitexact when the user wants
bitexact ones.

Originally committed as revision 27597 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-13 03:12:15 +00:00
Michael Niedermayer
ef423a6618 Make horizontal mmx scaling code match C code.
Originally committed as revision 27596 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-13 02:18:12 +00:00
Michael Niedermayer
88bc5a64f6 Ensure that additional filter coeffs that exist due to alignment
are 0 if bitexact mode is requested.

Originally committed as revision 27595 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-13 02:04:10 +00:00
Michael Niedermayer
84c1253513 yvu9toyv12Wrapper is not bitexact so disable it when the user wants
bitexactness to C.

Originally committed as revision 27594 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-12 23:52:37 +00:00
Michael Niedermayer
881c429407 Make the horizontal C scaler code clip only against INT16_MAX not 0,
this decreases the difference between C and MMX, its also faster.

Originally committed as revision 27593 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-12 22:29:21 +00:00
Michael Niedermayer
ceb700babb Add bitexact flag.
Originally committed as revision 27592 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-12 21:46:53 +00:00
Michael Niedermayer
b82ecd6258 The yuv->rgb tables are too small for cliping to be avoidable,
thus revert the respective optimization. The table generator code
has to be rewritten anyway one day by some volunteer because its
not LGPL, fixing the GPL table generator thus seems like wasted time.

Originally committed as revision 27591 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-12 21:25:42 +00:00
Michael Niedermayer
78454dfc01 Fix another 1000l bug in the mono input code.
Originally committed as revision 27590 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-12 18:05:57 +00:00
Michael Niedermayer
6c80eb1626 Add support for PIX_FMT_YUV440P.
Originally committed as revision 27589 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-12 17:51:13 +00:00
Michael Niedermayer
4bb9adcff1 10000l PIX_FMT_MONOWHITE check was really a || 1.
Thats what happens when one does not do the full set of tests before each commit
and just quickly goes over the diff thinking, "hey its a trivial change".

Originally committed as revision 27588 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-12 17:28:36 +00:00
Michael Niedermayer
3d05e078ee Support mono as input format.
Originally committed as revision 27587 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-12 16:46:38 +00:00
Michael Niedermayer
ec1bca2a0f Add support for PIX_FMT_MONOWHITE as output format.
Originally committed as revision 27586 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-12 16:01:17 +00:00
Michael Niedermayer
0885770455 rgb24toyv12 isnt accuratly rounding, so disable it as well when the
user asks for accurate rounding.

Originally committed as revision 27585 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-12 04:40:51 +00:00
Michael Niedermayer
4155ece530 Do not use the unscaled yuv->rgb converters if SWS_ACCURATE_RND is set,
because they do not accurately round.

Originally committed as revision 27584 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-12 02:05:37 +00:00
Michael Niedermayer
fd5c57b813 100000000000000l, forgot to commit header change for r27580.
Originally committed as revision 27583 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-11 22:02:15 +00:00
Michael Niedermayer
e09d7eef37 Fix typo that lead to averaging of the same pixel in rgb24ToUV_half().
Originally committed as revision 27582 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-11 14:47:18 +00:00
Michael Niedermayer
8e7ba004ed Remove mistakely commited code i used for testing.
Originally committed as revision 27581 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-11 14:40:29 +00:00
Michael Niedermayer
f0faee4c63 Implement full horizontal chroma for rgb/bgr24/32 output.
Originally committed as revision 27580 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-11 14:39:12 +00:00
Michael Niedermayer
bdf397ba4b Do not do unneeded cliping in YSCALE_YUV_2_PACKEDX_C.
Originally committed as revision 27579 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-11 03:22:39 +00:00
Michael Niedermayer
e69bd29425 Factorize yuv2packedXinC().
Originally committed as revision 27578 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-11 02:36:51 +00:00
Michael Niedermayer
7b5d7b9e85 Set rgb2yuv constants more accurately, makes no real difference though.
Originally committed as revision 27577 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-11 01:49:35 +00:00
Michael Niedermayer
85a51e6bd5 Fix chroma yuv->rgb tables for jpeg style yuv, this was missed as it
only affects the C code while mmx uses different tables.

Originally committed as revision 27576 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-11 00:09:01 +00:00
Michael Niedermayer
5fe4aad711 Correct normalization constant for the vertical filter, iam not
completely sure why this was at such incorrect value, but i could
not find any problems when it was set correctly.

Originally committed as revision 27575 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-10 23:23:47 +00:00
Michael Niedermayer
ac0ad72981 Make the 2point linear interpolation coefficients correct even for the
nearly never occuring 0.0, 1.0.

Originally committed as revision 27574 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-10 22:41:55 +00:00
Michael Niedermayer
33a67bd6c7 Fix overflow.
Originally committed as revision 27573 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-10 20:47:16 +00:00
Michael Niedermayer
ff9a056d1a Fix build failure due to %%eip on x86_64.
Originally committed as revision 27569 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-10 17:50:49 +00:00
Michael Niedermayer
6b79dbce0c Change RGB2YUV_SHIFT from 16 to 15 to make it able to work
with 16bit signed constants (like SIMD might use).

Originally committed as revision 27568 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-10 16:39:56 +00:00
Michael Niedermayer
ba83d86299 Add bgr/rgb15/16/32->UV-half to the macro so theres less code duplication
at the source level.

Originally committed as revision 27567 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-10 13:55:51 +00:00
Michael Niedermayer
a0baa07aef Factorize RGB/BGR15/16/32->UV by using the preprocessor.
Originally committed as revision 27566 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-10 03:56:06 +00:00
Michael Niedermayer
214892ee42 Factorize rgb/bgr15/16/32->Y by using the preprocessor.
Originally committed as revision 27565 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-10 03:42:45 +00:00
Michael Niedermayer
2f60f6297c Make SWS_FULL_CHR_H_INP work.
Originally committed as revision 27564 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-10 02:28:38 +00:00
Diego Biurrun
58f0ec5ff6 spelling/wording cosmetics
Originally committed as revision 27563 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-10 00:02:31 +00:00
Michael Niedermayer
cbcb408ff6 More accurate rounding for 8bit inputs.
Originally committed as revision 27562 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-09 23:39:32 +00:00
Michael Niedermayer
dfb09bd1d4 Rewrite bgr24->yuv mmx code, the new code is cleaner, more accurate,
and does not throw half the chroma away.

Originally committed as revision 27561 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-09-09 23:30:06 +00:00
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
Reimar Döffinger
c14731d8da Fix typo in comment
Originally committed as revision 25829 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-01-21 20:46:28 +00:00
Benoit Fouet
1b0a4572f4 Change (a == NULL) condition to (!a) and (a != NULL) condition to (a).
Originally committed as revision 25780 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-01-17 15:49:31 +00:00
Benoit Fouet
8916b4b55b Remove some useless parentheses.
Originally committed as revision 25779 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-01-17 11:07:27 +00:00
Benoit Fouet
30c48a0af4 Cosmetics: whitespaces
Originally committed as revision 25778 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-01-17 10:24:14 +00:00
Benoit Fouet
e5091488a5 Remove non cosmetic spaces inside parentheses.
Originally committed as revision 25777 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-01-17 08:57:15 +00:00
Benoit Fouet
b8db4e22de Description: remove superfluous parentheses.
Originally committed as revision 25776 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-01-17 08:12:23 +00:00
KO Myung-Hun
337a2a4530 Check param in sws_getCachedContext().
Patch by KO Myung-Hun komh chollian net
Original thread: [FFmpeg-devel] [PATCH] param check in sws_getCachedContext()
Date: Wed Jan 9 11:15:19 CET 2008

Originally committed as revision 25775 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2008-01-17 08:06:09 +00:00
Diego Biurrun
56b69633dd comment typo fixes
Originally committed as revision 25485 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-12-21 11:47:09 +00:00
Peter Schlaile
5efaf00029 Make sure strides have positive values before converting.
Patch by Peter Schlaile: peter schlaile de

Originally committed as revision 25467 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-12-20 10:08:36 +00:00
Diego Biurrun
c95a3a9fbf 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’

Originally committed as revision 25319 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-12-08 04:29:11 +00:00
Diego Biurrun
4706949c6d Fix 'make checkheaders' on AltiVec-enabled systems.
Originally committed as revision 25316 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-12-07 15:30:12 +00:00
Diego Biurrun
737278c86a Fix some spelling typos
Originally committed as revision 25245 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-12-02 14:07:01 +00:00
Diego Biurrun
bc279024c2 Comment some #endif directives.
Originally committed as revision 25211 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-11-30 13:21:20 +00:00
Diego Biurrun
594ff7cc6c comment spelling/grammar fixes
Originally committed as revision 25137 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-11-22 10:27:58 +00:00
Diego Biurrun
a680708d2d The function names of [rgb|bgr]1[56]to[UV|Y] had rgb<->bgr flipped.
Rename them to match the actual implementation. Fixes issue 162.

Originally committed as revision 24965 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-11-04 12:34:46 +00:00
Diego Biurrun
2f3cbef06e Rename LIB to LIBNAME for consistency.
Originally committed as revision 24802 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-10-18 09:35:02 +00:00
Diego Biurrun
522e9cf4e0 1l: Update wrong #endif comment.
Originally committed as revision 24801 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-10-18 09:31:47 +00:00
Diego Biurrun
39c70be189 Add FFMPEG_ prefix to all multiple inclusion guards.
Originally committed as revision 24800 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-10-18 09:30:33 +00:00
Diego Biurrun
298726ba55 cosmetics: Fix AltiVec spelling.
Originally committed as revision 24685 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-10-02 10:37:59 +00:00
Diego Biurrun
721d5e3b95 Revert wrong ARCH_BFIN --> HAVE_BFIN change.
Originally committed as revision 24627 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-09-27 08:00:22 +00:00
Aurelien Jacobs
79973335d3 add support for yuva420p colorspace (yuv420p + alpha)
Originally committed as revision 24601 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-09-24 15:11:49 +00:00
Michael Niedermayer
35fb8134c1 cosmetic (get rid of _ at the start of local variable names)
Originally committed as revision 24597 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-09-24 07:31:43 +00:00
Marc Hoffman
49488d12bf renaming ARCH_BFIN to HAVE_BFIN
Originally committed as revision 24309 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-08-31 14:57:50 +00:00
Diego Biurrun
035c591983 cosmetics: Sort some lines, whitespace changes.
Originally committed as revision 24305 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-08-30 23:11:55 +00:00
Diego Biurrun
6465c977b7 Move Apple gcc AltiVec vector declaration syntax to libavutil.
Originally committed as revision 24143 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-08-24 15:04:14 +00:00
Diego Biurrun
d8e84202c7 Rename CONFIG_DARWIN to SYS_DARWIN, it is not configurable (in FFmpeg).
Originally committed as revision 24121 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-08-22 22:46:55 +00:00
Diego Biurrun
bd7c6fd50c typo
Originally committed as revision 23889 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-07-28 14:17:25 +00:00
Marc Hoffman
7889f52890 integrating blackfin optimized yuyvtoyv12 converter
Originally committed as revision 23833 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-07-20 00:11:38 +00:00
Marc Hoffman
b41c9046cc removing reference to bfin_sram.h its not used anylonger
Originally committed as revision 23832 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-07-20 00:10:55 +00:00
Marc Hoffman
4055d27121 adding blackfin optimized yuyvtoyv12 converter
Originally committed as revision 23831 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-07-20 00:09:45 +00:00
Denes Balatoni
90c1d7b400 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

Originally committed as revision 23825 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-07-19 07:24:43 +00:00
Andreas Öman
9ba7fe6dcb 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

Originally committed as revision 23811 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-07-18 08:12:40 +00:00
Diego Biurrun
325751ef32 This was rewritten by Michael, switch copyrights to him and license to LGPL.
Originally committed as revision 23796 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-07-17 09:35:21 +00:00
Diego Biurrun
fc69cc615e Remove redundant "all rights reserved" statement, OKed by Walken.
Originally committed as revision 23791 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-07-16 17:48:02 +00:00
Diego Biurrun
cabc90c2ce typo
Originally committed as revision 23780 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-07-14 14:39:51 +00:00
Luca Abeni
aa89fa07b0 Remove unused file (this time for real)
Originally committed as revision 23767 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-07-11 15:29:20 +00:00
Luca Abeni
0d79efeba9 Resurrect yuv2rgb_init.c, to add a proper license (and some comments about
its origin) in it.

Originally committed as revision 23759 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-07-10 11:18:55 +00:00
Diego Biurrun
7ed8ccb50e ISO8859-1 --> UTF-8
Originally committed as revision 23752 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-07-09 18:55:31 +00:00
Diego Biurrun
b19bcbaa78 license header consistency cosmetics
Originally committed as revision 23722 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-07-05 10:18:58 +00:00
Diego Biurrun
c1578479d3 Group all copyright and author notices together.
Originally committed as revision 23721 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-07-05 10:18:27 +00:00
Luca Abeni
6969e0a030 Remove unused file
Originally committed as revision 23715 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-07-03 13:52:36 +00:00
Diego Biurrun
064cd7a897 Fix 'make checkheaders'.
Originally committed as revision 23701 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-07-02 12:52:41 +00:00
Diego Biurrun
26e16be00e Remove obsolete and misleading comment.
Originally committed as revision 23700 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-07-02 11:43:38 +00:00
Diego Biurrun
ddda6fcddc comment grammar fixes
Originally committed as revision 23685 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-06-28 11:18:16 +00:00
Marc Hoffman
1ebbfe159f integrating ff_bfin_get_unscaled_swscale into the system
Originally committed as revision 23605 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-06-22 13:03:40 +00:00
Marc Hoffman
c185b405c1 adding Blackfin swscale_bfin infrastructure, and the first swscale routine uyvy to yv12 video resampler
Originally committed as revision 23604 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-06-22 12:45:18 +00:00
Marc Hoffman
69a6db95ac document pointer offset by -8
Originally committed as revision 23603 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-06-22 00:14:22 +00:00
Marc Hoffman
e9d4375f1a re pipeline loop, to eliminate extra chroma reads
Originally committed as revision 23602 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-06-22 00:12:44 +00:00
Marc Hoffman
45eeae39ac correct chroma skewing bug, caused by incorrect stride adjustments
Originally committed as revision 23601 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-06-22 00:07:55 +00:00
Reimar Döffinger
a444671542 Missing libswscale part of TARGET_ -> HAVE_ change
Originally committed as revision 23564 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-06-16 15:29:26 +00:00
Reimar Döffinger
6e6203fb1c Copile fix: missing libswscale part of ffmpeg r9322 TARGET_ARCH -> ARCH change.
Originally committed as revision 23562 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-06-16 15:17:00 +00:00
Diego Biurrun
86bdf3fd3d misc spelling fixes
Originally committed as revision 23556 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-06-13 17:48:15 +00:00
Reimar Döffinger
1a18eaf760 Fix yuv2rgb C functions to work for widths divisible by 4 but not by 8
Originally committed as revision 23508 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-06-08 07:49:59 +00:00
Marc Hoffman
22a11d578e correcting spelling error, yuv2rgb888_line was renamed to yuv2rgb24_line
Originally committed as revision 23472 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-06-05 13:18:16 +00:00
Carl Eugen Hoyos
2db27aadcb rename attribute_unused to av_unused as it is declared in common.h
patch by Carl Eugen Hoyos cehoyos chez ag or at
original thread: [FFmpeg-devel] [PATCH] attribute_unused -> av_unused
date: 05/29/2007 01:23 PM

Originally committed as revision 23418 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-05-30 09:33:09 +00:00
Diego Biurrun
4d7b302c0d Remove redundant fastmemcpy.h #include, it is indirectly #included by avutil.h.
Originally committed as revision 23400 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-05-28 09:30:56 +00:00
Ivo van Poorten
d61845e8ae ffmpeg -sws_flags command line option to set swscaler flags
Originally committed as revision 23379 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-05-23 18:35:24 +00:00
Marc Hoffman
bf4a90fcc3 Blackfin optimized uyvytoyv12 routine. the implementation includes chroma averaging.
This is 10x faster than the cooresponding C function.

Originally committed as revision 23345 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-05-19 12:57:17 +00:00
Diego Biurrun
9f17e13bfc Remove extern C declarations for C++.
FFmpeg is pure C and not all public headers have the declarations.

Originally committed as revision 23322 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-05-16 12:26:47 +00:00
Marc Hoffman
d3f3eea92d Blackfin optimized YUV420 to RGB CSC Color Space Converters.
YUV2 -> RGB BGR for 565, 555 and 888 a.k.a. 24bit color.
Speed-up compared to C version compiled with -O3  187.28%
Patch by Marc Hoffman %mmh A pleasantst P com%
Original thread:
Date: May 9, 2007 2:46 AM
Subject: [FFmpeg-devel] PATCH BlackFin yuv2rgb color space conversion

Originally committed as revision 23307 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-05-13 19:22:32 +00:00
Ivo van Poorten
9d9de37d81 cosmetics; one test per line for all isXXX(x) macros
Originally committed as revision 23296 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-05-11 11:24:06 +00:00
Ivo van Poorten
fa88429489 remove the need of one extra shift in rgb16ToUV
Originally committed as revision 23281 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-05-09 21:34:05 +00:00
Ivo van Poorten
f96829d2d0 Fix rgb15ToUV. Correct order of components and use one shift less.
Originally committed as revision 23279 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-05-09 17:29:20 +00:00
Benoit Fouet
c4ca31d0a8 cosmetics: indentation after previous patch
Originally committed as revision 23207 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-05-02 07:02:16 +00:00
Benoit Fouet
068b0f4f29 test if color conv fonction exists prior to using it
Originally committed as revision 23206 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-05-02 07:00:10 +00:00
Diego Biurrun
2da0d70d5e cosmetics attack, part IV: Remove all tabs and prettyprint/reindent the code.
Originally committed as revision 23179 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-30 08:05:29 +00:00
Diego Biurrun
428098165d cosmetics attack, part III: Remove all tabs and prettyprint/reindent the code.
Originally committed as revision 23175 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-29 21:36:43 +00:00
Diego Biurrun
ce505b8523 cosmetics: Fix stray wrongly indented line.
Originally committed as revision 23174 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-29 13:39:50 +00:00
Diego Biurrun
221b804f34 cosmetics attack, part II: Remove all tabs and prettyprint/reindent the code.
Originally committed as revision 23173 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-29 13:39:27 +00:00
Diego Biurrun
6e42e6c4b4 cosmetics attack, part I: Remove all tabs and prettyprint/reindent the code.
Originally committed as revision 23158 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-28 11:44:49 +00:00
Diego Biurrun
1da87823db cosmetics: Replace manual tab indentation by \n\t as in the rest of the file.
Originally committed as revision 23157 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-28 11:41:11 +00:00
Diego Biurrun
6a4970abd1 cosmetics: Remove trailing whitespace.
Originally committed as revision 23147 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-26 23:07:11 +00:00
Diego Biurrun
c36bd2866a Don't declare -lm as a dependency of swscale-example.
Originally committed as revision 23140 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-26 15:14:12 +00:00
Marc Hoffman
26cdb9a2aa Remove large automatics from stack.
patch by Marc Hoffman, mmh pleasantst com

Originally committed as revision 23117 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-26 11:05:59 +00:00
Ivo van Poorten
3052ddb2a8 preserve alpha channel when converting rgb32 to bgr32 in plain C
Originally committed as revision 23022 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-18 16:40:58 +00:00
Ivo van Poorten
19b202f9d1 fix red_15mask and green_15mask. the previous values were wrong and caused
some SIMD functions to output wrong data.

Originally committed as revision 23021 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-18 16:40:07 +00:00
Ivo van Poorten
0c4c70e5ef test widths all down to one. this tests whether the scalers correctly switch
to plain C when width < unit size of assembly code.

Originally committed as revision 23018 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-18 14:22:42 +00:00
Ivo van Poorten
35a9994977 skip MMX code in rgb24tobgr24 if the size of the input is smaller than the
size of the units the MMX code processes

Originally committed as revision 23015 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-18 09:27:59 +00:00
Ivo van Poorten
3983057065 skip MMX code in rgb32to16 if the size of the input is smaller than the
size of the units the MMX code processes

Originally committed as revision 23014 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-18 09:26:22 +00:00
Ivo van Poorten
b2117ceed0 skip MMX code in rgb32to15 if the size of the input is smaller than the
size of the units the MMX code processes

Originally committed as revision 23013 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-18 09:24:49 +00:00
Ivo van Poorten
935f50c82c slightly faster rgb32tobgr32; avoid one add and one cmp
Originally committed as revision 23012 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-17 20:38:17 +00:00
Ivo van Poorten
b38d487466 New implementation of rgb32tobgr32
The previous implementation segfaulted with MMX enabled when fed an image
smaller than the size of the units the MMX code processed. The new code:
- is faster for MMX, MMX2 and plain C
- processes small images correctly
- is LGPL

Originally committed as revision 23009 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-16 21:41:03 +00:00
Michael Niedermayer
fa65e2f63a improve horizontal chroma resolution with pal
Originally committed as revision 22994 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-15 01:27:34 +00:00
Michael Niedermayer
21c08a3f1c convert palette to yuv instead of converting each pixel after pal->rgb
Originally committed as revision 22993 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-15 00:53:32 +00:00
Ivo van Poorten
3a74415d59 cosmetics, expand all tabs to four spaces.
Originally committed as revision 22983 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-12 19:31:35 +00:00
Ivo van Poorten
2a80b21d38 Replace huge switch statement by a lookup table.
Add newline to final report.

Originally committed as revision 22982 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-12 19:25:36 +00:00
Ivo van Poorten
ea70817379 cosmetics after last commit; remove superfluous braces
Originally committed as revision 22979 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-11 22:17:58 +00:00
Ivo van Poorten
df170b81d9 Remove code duplication in sws_rgb2rgb_init.
The lists of assignments of all rgbxtoy variants are removed from
sws_rgb2rgb_init and replaced by a single list inside the template file.
This way, multiple lists are generated by the preprocessor and each list
gets its own initialization function. Those are called from the main
sws_rgb2rgb_init function, if applicable.

Originally committed as revision 22978 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-11 21:00:25 +00:00
Diego Biurrun
911406f2c4 typo
Originally committed as revision 22932 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-07 14:07:51 +00:00
Carl Eugen Hoyos
94bd08b069 Fix crash when trying to convert from or to RGBi (i<15) as in bgr8torgb24
Originally committed as revision 22910 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-04-03 16:22:19 +00:00
Marc Hoffman
8ec491e3fd Handle proper compilation on Mac OS X.
Fix data alignment bug (the original purpose of the code is unclear, though).
patch by Marc Hoffman, mmh pleasantst com

Originally committed as revision 22847 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-03-30 22:09:13 +00:00
Michael Niedermayer
edf97a75f9 fix full range (jpeg yuv) chroma
Originally committed as revision 22713 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-03-18 12:31:53 +00:00
Karl H. Beckers
6cbac7ed3a Add PIX_FMT_PAL8 to isPacked().
patch by "Karl H. Beckers", karl.h.beckers gmx net

Originally committed as revision 22487 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-03-08 10:02:49 +00:00
Michael Niedermayer
dd9bdeb9f3 a small step toward 4 plane support
Originally committed as revision 22411 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-03-02 13:33:18 +00:00
Michael Niedermayer
0c84001325 copy src to prevent the user supplied argumet from being changed
Originally committed as revision 22410 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-03-02 13:32:10 +00:00
Reimar Döffinger
9340a99588 Fix a possible crash on 64 bit systems when the lumSrcPtr or chrSrcPtr
does not fit in 32 bits. The SWS_ACCURATE_RND is still broken though.

Originally committed as revision 22401 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-03-01 19:48:40 +00:00
Diego Biurrun
2bfdde2435 Remove useless conditional.
Originally committed as revision 22355 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-02-27 00:19:01 +00:00
Reimar Döffinger
adcec46a83 Add av_ prefix to clip functions
Originally committed as revision 22339 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-02-25 10:27:43 +00:00
Diego Biurrun
606f68bd10 cosmetics: typo fixes, usefuLL --> useful and aswell --> as well
Originally committed as revision 22307 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-02-22 00:18:10 +00:00
Michael Niedermayer
20da77449d negative stride and h_size-=8 fix
Originally committed as revision 22247 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-02-17 13:28:44 +00:00
Michael Niedermayer
18064f5cf3 BGR/RGB4 byte formats as input
fixing isRGB/BGR() for the byte formats

Originally committed as revision 22244 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-02-17 11:36:02 +00:00
Michael Niedermayer
e28630fc70 pal8 input
this is not optimized or anything (that is easy to add just use the existing unscaled converters if possible ...)

Originally committed as revision 22236 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-02-16 21:17:15 +00:00
Luca Barbato
94d122e96e stray fflush spotted by Aurel
Originally committed as revision 22051 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-01-28 20:38:35 +00:00
Luca Barbato
66e9de3891 Make example and test build and link correctly
Originally committed as revision 22048 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-01-28 17:52:59 +00:00
Luca Barbato
da095a23a1 av_logify
Originally committed as revision 22047 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
2007-01-28 17:51:41 +00:00