Commit Graph

42 Commits

Author SHA1 Message Date
diego 28ff7246a0 libswscale: Relicense almost all x86 assembler optimizations as LGPL.
This is of course done with permissions from the authors. The only GPL
component left are MMX optimizations for YUV to RGB conversion.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30965 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-03-27 11:31:02 +00:00
stefano 81b1285123 Implement shuffle_bytes_abcd() functions and use them for shuffling
bytes when converting between RGB32 variants.

In particular fix the argb -> rgba and abgr -> bgra conversions.

See the thread:
Subject: [FFmpeg-devel] [RFC] RGB32 / BGR32 ethernal bug
Date: Tue, 26 Jan 2010 01:06:18 +0100


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30501 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-02-03 23:46:00 +00:00
zuxy 0bd2e793c1 Const correctness for src pointer. Remove all constness related warnings in
libswscale.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30306 b3059339-0415-0410-9bf9-f77b7e298cf2
2010-01-15 08:51:51 +00:00
ramiro af8ff1be74 Indent.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29654 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-09-07 16:29:32 +00:00
ramiro b490da35c8 Cosmetics:
- Place curly brackets in the same line as while/for/if/switch/else/do;
- Place curly brackets at column 0 in the next line starting a function.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29523 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-16 21:11:28 +00:00
ramiro 88dafbd9a5 Indent libswscale:
- Use 4 spaces throughout for indentation;
- Fix inconsistent indentation;
- Indent function calls and declarations aligning arguments on multiple lines
  to the column after the opening parentheses;
- Align asm code to the column 4 spaces after the call to __asm__();
- Align cases in switch statements to the same column as "switch".


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29522 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-08-16 00:32:04 +00:00
mru b3186ed071 Replace WORDS_BIGENDIAN with HAVE_BIGENDIAN
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29439 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-07-26 12:26:32 +00:00
michael 1494e46fcf Unscaled converters for
YUYV->YUV420P
YUYV->YUV422P
UYVY->YUV420P
UYVY->YUV422P


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28997 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-03-19 03:45:29 +00:00
sdrik 3a81bf82a0 When converting from a non alpha format to an alpha format, defaults to all ones rather than all zeroes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28756 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-02-28 08:01:52 +00:00
diego cecfbf85db HAVE_3DNOW --> HAVE_AMD3DNOW to sync with latest configure changes.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28358 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-25 19:58:33 +00:00
aurel be34ba7a39 Change semantic of CONFIG_*, HAVE_* and ARCH_*.
They are now always defined to either 0 or 1.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28311 b3059339-0415-0410-9bf9-f77b7e298cf2
2009-01-14 00:13:56 +00:00
diego d7291e499e Remove commented-out duplicate declarations.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28058 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-02 00:26:14 +00:00
diego 563ae9f8eb Remove unused declarations.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28057 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-12-02 00:21:37 +00:00
vitor f42e50f367 Fix broken palette8to*.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27817 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-10-23 19:13:11 +00:00
bcoudurier 3178a5606a enable yuv422p to uyvy converter
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27527 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-05 00:25:39 +00:00
michael a56ed81a5c 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.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27519 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-04 19:49:13 +00:00
michael 6dcd5a4e7a rgb vs bgr fix for the unscaled converters.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27518 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-09-04 19:11:39 +00:00
diego 1e95d9f4ef spelling/grammar/wording overhaul
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27190 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-07-04 13:49:45 +00:00
bcoudurier 0c310e00b1 remove useless casts
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26944 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-01 03:25:07 +00:00
bcoudurier c11a96876c add const, suppress warnings
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26943 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-06-01 03:23:50 +00:00
diego e6f301c8ae Use full path for #includes from another directory.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26702 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-05-09 12:00:25 +00:00
reimar da8ab92c7d Make some assembler constants global instead of declaring them multiple times.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25910 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-29 14:58:10 +00:00
reimar 4ceb92650a Use DECLARE_ASM_CONST where possible in libswscale code
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25903 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-28 14:38:11 +00:00
benoit bc7d838528 Cosmetics: whitespaces
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25778 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-17 10:24:14 +00:00
diego b3d59ea908 license header consistency cosmetics
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23722 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-05 10:18:58 +00:00
diego 134fb56e1f Remove redundant fastmemcpy.h #include, it is indirectly #included by avutil.h.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23400 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-05-28 09:30:56 +00:00
diego faaae44a1e cosmetics attack, part I: Remove all tabs and prettyprint/reindent the code.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23158 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-28 11:44:49 +00:00
diego 95000b0ca7 cosmetics: Remove trailing whitespace.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23147 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-26 23:07:11 +00:00
ivo 8c86c5cc58 fix red_15mask and green_15mask. the previous values were wrong and caused
some SIMD functions to output wrong data.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23021 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-18 16:40:07 +00:00
ivo 42ece1776c cosmetics after last commit; remove superfluous braces
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22979 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-11 22:17:58 +00:00
ivo fdc96044ff 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.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22978 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-11 21:00:25 +00:00
diego addb047274 cosmetics: typo pallete --> palette
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21892 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-13 04:32:14 +00:00
lucabe 685e04e080 Allow to compile swscale's non-SIMD code under the LGPL license.
Since mplayer always define CONFIG_GPL, this commit should not change
anything for mplayer.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21699 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-12-20 13:09:29 +00:00
lucabe 9913060a98 Clarify that some of the non-SIMD code is now LGPLed.
All the authours of such code agreed.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21045 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-19 10:38:12 +00:00
diego 3570f31873 Use common define for x86_32 and x86_64.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20592 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-01 18:36:20 +00:00
diego 3ace93a9a6 Change license headers to say 'FFmpeg' instead of 'this program'.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20100 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-07 15:33:14 +00:00
diego 6370bb03d8 Add official GPL header to make license explicit as discussed on ffmpeg-devel.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19709 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-09-06 10:24:19 +00:00
diego 1ff914c6a9 Fix compilation with MMX disabled, the mmx_null and mmx_one constants don't need to
be protected by HAVE_MMX.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19367 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-08-11 12:50:14 +00:00
diego c869e5d1b1 Do not assemble MMX, MMX2 or 3DNOW code unconditionally on X86 and X86_64.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19339 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-08-05 10:00:54 +00:00
diego 66ee8ce70a Comment some #endif lines.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19211 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-07-28 09:07:09 +00:00
lucabe 0860745385 Use libavutil in libswscale, and allow it to be built out of the mplayer tree
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19148 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-07-20 12:13:57 +00:00
lucabe cc30aae17b Move postproc ---> libswscale
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18866 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-06-30 12:00:31 +00:00