1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-12 09:59:44 +00:00
Commit Graph

272 Commits

Author SHA1 Message Date
benoit
f2281fa06a Make sure strides have positive values before converting.
Patch by Peter Schlaile: peter schlaile de


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25467 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-20 10:08:36 +00:00
diego
460de55771 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’


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25319 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-08 04:29:11 +00:00
diego
48d39aa9a5 Fix 'make checkheaders' on AltiVec-enabled systems.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25316 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-07 15:30:12 +00:00
diego
02138e2282 Fix some spelling typos
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25245 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-02 14:07:01 +00:00
diego
4548f6964e Comment some #endif directives.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25211 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-30 13:21:20 +00:00
diego
27fa018d05 comment spelling/grammar fixes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25137 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-22 10:27:58 +00:00
diego
a6682b3a81 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.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24965 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-04 12:34:46 +00:00
diego
f24a71a0f0 Rename LIB to LIBNAME for consistency.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24802 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-18 09:35:02 +00:00
diego
42adf39c38 1l: Update wrong #endif comment.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24801 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-18 09:31:47 +00:00
diego
4f29b1485a Add FFMPEG_ prefix to all multiple inclusion guards.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24800 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-18 09:30:33 +00:00
diego
782dd94b29 cosmetics: Fix AltiVec spelling.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24685 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-10-02 10:37:59 +00:00
diego
b13c49493c Revert wrong ARCH_BFIN --> HAVE_BFIN change.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24627 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-27 08:00:22 +00:00
aurel
991c218475 add support for yuva420p colorspace (yuv420p + alpha)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24601 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-24 15:11:49 +00:00
michael
6c5bcd943d cosmetic (get rid of _ at the start of local variable names)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24597 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-24 07:31:43 +00:00
mhoffman
503a85926f renaming ARCH_BFIN to HAVE_BFIN
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24309 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-31 14:57:50 +00:00
diego
b19d00992c cosmetics: Sort some lines, whitespace changes.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24305 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-30 23:11:55 +00:00
diego
64681afa04 Move Apple gcc AltiVec vector declaration syntax to libavutil.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24143 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-24 15:04:14 +00:00
diego
f7176daf51 Rename CONFIG_DARWIN to SYS_DARWIN, it is not configurable (in FFmpeg).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24121 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-08-22 22:46:55 +00:00
diego
65d2553645 typo
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23889 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-28 14:17:25 +00:00
mhoffman
c524f310b0 integrating blackfin optimized yuyvtoyv12 converter
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23833 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-20 00:11:38 +00:00
mhoffman
f0fdd488ef removing reference to bfin_sram.h its not used anylonger
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23832 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-20 00:10:55 +00:00
mhoffman
5e530992c3 adding blackfin optimized yuyvtoyv12 converter
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23831 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-20 00:09:45 +00:00
benoit
7de92dc41c 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


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23825 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-19 07:24:43 +00:00
benoit
26333dbfec 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


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23811 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-18 08:12:40 +00:00
diego
411a4b4058 This was rewritten by Michael, switch copyrights to him and license to LGPL.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23796 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-17 09:35:21 +00:00
diego
e34332d602 Remove redundant "all rights reserved" statement, OKed by Walken.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23791 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-16 17:48:02 +00:00
diego
f4876bda37 typo
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23780 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-14 14:39:51 +00:00
lucabe
09718eaa7a Remove unused file (this time for real)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23767 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-11 15:29:20 +00:00
lucabe
ff9096cb6d Resurrect yuv2rgb_init.c, to add a proper license (and some comments about
its origin) in it.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23759 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-10 11:18:55 +00:00
diego
b204d01081 ISO8859-1 --> UTF-8
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23752 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-09 18:55:31 +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
2375a9207d Group all copyright and author notices together.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23721 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-05 10:18:27 +00:00
lucabe
e7e69c5489 Remove unused file
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23715 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-03 13:52:36 +00:00
diego
5e7f6adb17 Fix 'make checkheaders'.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23701 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-02 12:52:41 +00:00
diego
da9307d121 Remove obsolete and misleading comment.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23700 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-07-02 11:43:38 +00:00
diego
78fb17276c comment grammar fixes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23685 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-28 11:18:16 +00:00
mhoffman
d1a47e2290 integrating ff_bfin_get_unscaled_swscale into the system
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23605 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-22 13:03:40 +00:00
mhoffman
b60c17b45c adding Blackfin swscale_bfin infrastructure, and the first swscale routine uyvy to yv12 video resampler
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23604 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-22 12:45:18 +00:00
mhoffman
a143e429a1 document pointer offset by -8
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23603 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-22 00:14:22 +00:00
mhoffman
f8fb16fc31 re pipeline loop, to eliminate extra chroma reads
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23602 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-22 00:12:44 +00:00
mhoffman
42b67bdedc correct chroma skewing bug, caused by incorrect stride adjustments
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23601 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-22 00:07:55 +00:00
reimar
b6807dadb3 Missing libswscale part of TARGET_ -> HAVE_ change
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23564 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-16 15:29:26 +00:00
reimar
f591c3a74d Copile fix: missing libswscale part of ffmpeg r9322 TARGET_ARCH -> ARCH change.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23562 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-16 15:17:00 +00:00
diego
7b472fa2ea misc spelling fixes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23556 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-13 17:48:15 +00:00
reimar
50e63ed5bd Fix yuv2rgb C functions to work for widths divisible by 4 but not by 8
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23508 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-08 07:49:59 +00:00
mhoffman
ebe2eb246e correcting spelling error, yuv2rgb888_line was renamed to yuv2rgb24_line
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23472 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-06-05 13:18:16 +00:00
benoit
21939776eb 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



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23418 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-05-30 09:33:09 +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
ivo
85b37d1ccf ffmpeg -sws_flags command line option to set swscaler flags
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23379 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-05-23 18:35:24 +00:00
mhoffman
b8b8271170 Blackfin optimized uyvytoyv12 routine. the implementation includes chroma averaging.
This is 10x faster than the cooresponding C function.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23345 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-05-19 12:57:17 +00:00
diego
c339e74ac8 Remove extern C declarations for C++.
FFmpeg is pure C and not all public headers have the declarations.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23322 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-05-16 12:26:47 +00:00
gpoirier
ea9075f2c7 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


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23307 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-05-13 19:22:32 +00:00
ivo
30a00a81bc cosmetics; one test per line for all isXXX(x) macros
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23296 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-05-11 11:24:06 +00:00
ivo
fba7257f2d remove the need of one extra shift in rgb16ToUV
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23281 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-05-09 21:34:05 +00:00
ivo
4d9f279a66 Fix rgb15ToUV. Correct order of components and use one shift less.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23279 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-05-09 17:29:20 +00:00
benoit
e6daddc0ad cosmetics: indentation after previous patch
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23207 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-05-02 07:02:16 +00:00
benoit
75535c7902 test if color conv fonction exists prior to using it
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23206 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-05-02 07:00:10 +00:00
diego
8caae48738 cosmetics attack, part IV: Remove all tabs and prettyprint/reindent the code.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23179 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-30 08:05:29 +00:00
diego
53b0783bf6 cosmetics attack, part III: Remove all tabs and prettyprint/reindent the code.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23175 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-29 21:36:43 +00:00
diego
28510d8966 cosmetics: Fix stray wrongly indented line.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23174 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-29 13:39:50 +00:00
diego
402ccf9d4c cosmetics attack, part II: Remove all tabs and prettyprint/reindent the code.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23173 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-29 13:39:27 +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
5d9e73bcc6 cosmetics: Replace manual tab indentation by \n\t as in the rest of the file.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23157 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-28 11:41:11 +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
diego
9e14239422 Don't declare -lm as a dependency of swscale-example.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23140 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-26 15:14:12 +00:00
diego
0d29d76058 Remove large automatics from stack.
patch by Marc Hoffman, mmh pleasantst com


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23117 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-26 11:05:59 +00:00
ivo
79b2f1581d preserve alpha channel when converting rgb32 to bgr32 in plain C
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23022 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-18 16:40:58 +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
ecbdb90970 test widths all down to one. this tests whether the scalers correctly switch
to plain C when width < unit size of assembly code.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23018 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-18 14:22:42 +00:00
ivo
59a2d69862 skip MMX code in rgb24tobgr24 if the size of the input is smaller than the
size of the units the MMX code processes


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23015 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-18 09:27:59 +00:00
ivo
346fa283f5 skip MMX code in rgb32to16 if the size of the input is smaller than the
size of the units the MMX code processes


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23014 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-18 09:26:22 +00:00
ivo
a3284e8e5b skip MMX code in rgb32to15 if the size of the input is smaller than the
size of the units the MMX code processes


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23013 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-18 09:24:49 +00:00
ivo
f854708977 slightly faster rgb32tobgr32; avoid one add and one cmp
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23012 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-17 20:38:17 +00:00
ivo
589238fbe5 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



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23009 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-16 21:41:03 +00:00
michael
a381e71128 improve horizontal chroma resolution with pal
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22994 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-15 01:27:34 +00:00
michael
31be965950 convert palette to yuv instead of converting each pixel after pal->rgb
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22993 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-15 00:53:32 +00:00
ivo
ccca77761e cosmetics, expand all tabs to four spaces.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22983 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-12 19:31:35 +00:00
ivo
c32cfa90c9 Replace huge switch statement by a lookup table.
Add newline to final report.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22982 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-12 19:25:36 +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
2a39682956 typo
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22932 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-07 14:07:51 +00:00
cehoyos
cb644a4a9d Fix crash when trying to convert from or to RGBi (i<15) as in bgr8torgb24
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22910 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-03 16:22:19 +00:00
diego
75cf17e3f8 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


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22847 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-30 22:09:13 +00:00
michael
f605cf5f93 fix full range (jpeg yuv) chroma
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22713 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-18 12:31:53 +00:00
diego
a708559fe5 Add PIX_FMT_PAL8 to isPacked().
patch by "Karl H. Beckers", karl.h.beckers gmx net


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22487 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-08 10:02:49 +00:00
michael
5a39cd78b7 a small step toward 4 plane support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22411 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-02 13:33:18 +00:00
michael
2c64943519 copy src to prevent the user supplied argumet from being changed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22410 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-02 13:32:10 +00:00
reimar
0f2246a083 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.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22401 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-03-01 19:48:40 +00:00
diego
e3b1929925 Remove useless conditional.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22355 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-02-27 00:19:01 +00:00
reimar
0b7929b8ad Add av_ prefix to clip functions
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22339 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-02-25 10:27:43 +00:00
diego
8ed3ba4995 cosmetics: typo fixes, usefuLL --> useful and aswell --> as well
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22307 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-02-22 00:18:10 +00:00
michael
099c9b26f4 negative stride and h_size-=8 fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22247 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-02-17 13:28:44 +00:00
michael
2a0c4363cf BGR/RGB4 byte formats as input
fixing isRGB/BGR() for the byte formats


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22244 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-02-17 11:36:02 +00:00
michael
db9d35b669 pal8 input
this is not optimized or anything (that is easy to add just use the existing unscaled converters if possible ...)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22236 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-02-16 21:17:15 +00:00
lu_zero
91fdfc6820 stray fflush spotted by Aurel
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22051 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-28 20:38:35 +00:00
lu_zero
3707a1426b Make example and test build and link correctly
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22048 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-28 17:52:59 +00:00
lu_zero
a1dcee10f4 av_logify
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22047 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-28 17:51:41 +00:00
diego
2dc888b0c0 Simplify conditional compilation handling.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22009 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-25 00:35:29 +00:00
lucabe
aaac7f6eaf Pass a context to av_log(), when possible
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21999 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-23 13:41:45 +00:00
diego
2d33f0d405 Fix license headers and FSF postal address.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21994 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-22 01:21:36 +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
3caab47323 deprecate sws_scale_ordered(), as it now is a duplicate of sws_scale()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21888 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-12 15:45:47 +00:00
lucabe
86bfe9c6b8 Add "support for both orderings of the slices (top->down / bottom->up)"
(r15249) to sws_scale() too (until now, it only was in sws_scale_ordered())


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21887 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-12 15:40:08 +00:00
lucabe
a72f029add replace some av_malloc();memset(...,0,...) sequences with av_mallocz()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21835 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-01-06 12:11:25 +00:00
lucabe
43aa3a1b7e change all the occurrences of "FFMIN(FFMAX())" to clip_uint8() or clip()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21776 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-12-26 18:08:40 +00:00
lucabe
896f3ac12b Mark some variables as possibly unused to avoid warnings
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21775 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-12-26 17:59:28 +00:00
lucabe
471fc34cb7 Add some explicit casts to avoid "assignment from incompatible pointer type"
warnings


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21774 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-12-26 17:41:38 +00:00
lucabe
9d9fce6419 Add some other casts, to remove void pointers arithmetic
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21773 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-12-26 16:28:34 +00:00
lucabe
c5c0e11eeb Add some explicit casts to avoid some warnings
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21772 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-12-26 16:21:13 +00:00
lucabe
ac68c5b03d Remove some void pointers arithmetic
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21771 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-12-26 16:12:37 +00:00
lucabe
fa035363aa Clarify that yuv2rgb_init.c cannot be used under LGPL
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21730 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-12-22 17:57:19 +00:00
lucabe
b16725e8b1 Remove useless include (not needed now that libswscale uses libavutil)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21728 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-12-22 11:22:49 +00:00
lucabe
774b22c0d1 Fix compilation of non-MMX code with gcc 2.95
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21702 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-12-20 15:58:15 +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
reimar
6157b0b3ea Change "p" asm constraints to "g", since "p" was a no longer necessary hack to
make AMD64 compilation work and ICC can not handle "p".


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21341 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-27 21:59:13 +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
michael
ed3b9da081 forgotten 2 converters (yeah svn up, svn di svn ci isnt enough i should actually look at the code after svn up not just the diff ...)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20962 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-16 14:49:04 +00:00
michael
5a4d8d1411 fixing the lamest bug in swscale, all the rgb/bgr->* code did 2x2 downsampling for chroma, it should just be 2x1 (the rest of the code also belived its 2x1 ...)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20961 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-16 14:44:00 +00:00
diego
206f0000f5 Remove stray newline.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20959 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-16 12:49:27 +00:00
lucabe
22bff1ea7c Synch with ffmpeg's r6938 "allow spaces in source and build directory names..."
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20816 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-09 15:13:56 +00:00
gpoirier
1bade46a88 Fix MacIntel build: "/nop" is illegal on Apple's older version of GAS
Patch by Nigel Pearson % nigel A ind P tansu P com P au %
Original thread:
Date: Nov 6, 2006 10:43 PM
Subject: [Ffmpeg-devel] [PATCH] swscale uses /nop, illegal for old versions of GAS


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20740 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-07 07:07:05 +00:00
lucabe
c28ed102ea Add support for conversions from the rgb565 and rgb555 formats
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20605 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-02 09:01:01 +00:00
diego
fa58eb8846 Do not mix declarations and statements.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20600 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-01 19:44:35 +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
kostya
3feb0ebd68 16-bit grayscale support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20427 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-24 05:02:33 +00:00
lucabe
239933c040 Properly set EXTRALIBS
(fixes compilation of shared libswscale on cygwin and other platforms)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20413 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-23 14:03:49 +00:00
diego
4e9514a058 Rename ABS macro to FFABS.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20169 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-11 23:18:34 +00:00
diego
ed967a434b Move CFLAGS handling to common.mak.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20154 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-11 08:30:22 +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
f9477d0581 Replace -I.. by -I$(BUILD_ROOT).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20094 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-07 09:23:09 +00:00
diego
e801f101df Simplify test program build.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20073 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-05 17:11:05 +00:00
diego
1240e6bde5 Test programs depend on $(LIB).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20059 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-05 00:57:48 +00:00
diego
9c19753fcc FFmpeg uses -D_ISOC9X_SOURCE and not -D_GNU_SOURCE in CFLAGS.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20057 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-04 22:18:40 +00:00
diego
254a1757fa Remove cs_test and swscale-example on clean.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20040 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-04 14:02:42 +00:00
diego
767bf9402f Remove redundant EXTRALIBS declaration.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20039 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-04 14:00:14 +00:00
diego
17a374e14b Simplify compilation call by using $(EXTRALIBS).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20038 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-04 13:56:24 +00:00
diego
8b9ca10a4d Fix warnings:
swscale-example.c:87: warning: implicit declaration of function 'sws_format_name'
swscale-example.c:214: warning: implicit declaration of function 'sws_rgb2rgb_init'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20037 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-04 13:54:56 +00:00
diego
04acb4f27e Fix warnings:
cs_test.c:62: warning: return type defaults to 'int'
cs_test.c:64: warning: implicit declaration of function 'memalign'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20036 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-04 13:51:12 +00:00
aurel
ae22c7d3f7 make some global var static (fix a build failure with shared lib on x86_64)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20024 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-03 23:51:32 +00:00
diego
098bfe9f95 Fix unused variable warning when compiling with MMX disabled.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20021 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-03 17:11:43 +00:00
diego
da4223291d Remove unused variables.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20012 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-10-01 14:17:45 +00:00
lucabe
47cfa9e755 Add support for YUVJ formats
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19993 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-09-27 11:41:36 +00:00
lucabe
abfb2f049a Improve swscale-example to test conversions between all the possible
pixel formats


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19965 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-09-24 09:55:18 +00:00
lucabe
51cd63eb1c Remove the dependency of libswscale on img_format.h
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19878 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-09-17 15:15:13 +00:00
lucabe
a9aca9d644 Fix the PIX_FMT_* ---> IMGFMT_* conversion (PIX_FMT_RGB32 is IMGFMT_BGR32)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19875 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-09-17 14:59:55 +00:00
diego
af5a781e05 Add proper GPL headers.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19772 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-09-09 21:10:26 +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
gpoirier
268a7af2f4 Add sws_getCachedContext(), which checks if context is valid or reallocs a new one instead.
Patch by Victor Paesa <wzrlpy@arsystel.com>
Original thread:
Date: Aug 31, 2006 7:15 PM
Subject: [Ffmpeg-devel] [PATCH] Add sws_getCachedContext() to swscale library


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19667 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-09-04 09:38:24 +00:00
michael
d0d900423c make the C code of the swscaler which i wrote LGPL
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19600 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-08-30 10:50:20 +00:00
lucabe
dc1959af89 Allow to compile swscale tests
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19476 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-08-21 12:15:29 +00:00