diff options
author | Marc Hoffman <mmh@pleasantst.com> | 2007-05-13 19:22:32 +0000 |
---|---|---|
committer | Guillaume Poirier <gpoirier@mplayerhq.hu> | 2007-05-13 19:22:32 +0000 |
commit | d3f3eea92d47c3c3250ffc7cf567ed44bf31615a (patch) | |
tree | e07786d7133e2f5ba2e991b41aaa738d7cd09092 /libswscale/yuv2rgb.c | |
parent | 79d4c96a1a708f8da145121cee118c7bdd596344 (diff) | |
download | ffmpeg-d3f3eea92d47c3c3250ffc7cf567ed44bf31615a.tar.gz |
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
Diffstat (limited to 'libswscale/yuv2rgb.c')
-rw-r--r-- | libswscale/yuv2rgb.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libswscale/yuv2rgb.c b/libswscale/yuv2rgb.c index 98a3569d85..9f3f071213 100644 --- a/libswscale/yuv2rgb.c +++ b/libswscale/yuv2rgb.c @@ -611,6 +611,14 @@ SwsFunc yuv2rgb_get_func_ptr (SwsContext *c) } #endif +#ifdef ARCH_BFIN + if (c->flags & SWS_CPU_CAPS_BFIN) + { + SwsFunc t = ff_bfin_yuv2rgb_get_func_ptr (c); + if (t) return t; + } +#endif + av_log(c, AV_LOG_WARNING, "No accelerated colorspace conversion found\n"); switch(c->dstFormat){ |