1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-21 22:30:22 +00:00
Commit Graph

136 Commits

Author SHA1 Message Date
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