vlc | branch: master | Felix Paul Kühne <[email protected]> | Sun Sep 12 15:19:54 2010 +0200| [f7345bf58ea06d0f5e8a0c7d42c1728eff334c0c] | committer: Felix Paul Kühne
i420->yuv2 converter: disabled altivec usage if video's width isn't a multiple of 32 This fixes the video output on PowerPC based Macs. A proper fix would be welcome. Forward-port of [c036a9961b04ef03e8ae6951c78f1e550e57395a] > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f7345bf58ea06d0f5e8a0c7d42c1728eff334c0c --- modules/video_chroma/i420_yuy2.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/modules/video_chroma/i420_yuy2.c b/modules/video_chroma/i420_yuy2.c index 57a7af6..09a904f 100644 --- a/modules/video_chroma/i420_yuy2.c +++ b/modules/video_chroma/i420_yuy2.c @@ -241,6 +241,8 @@ static void I420_YUY2( filter_t *p_filter, picture_t *p_source, } } } +#warning FIXME: converting widths % 16 but !widths % 32 is broken on altivec +#if 0 else if( !( ( p_filter->fmt_in.video.i_width % 16 ) | ( p_filter->fmt_in.video.i_height % 4 ) ) ) { @@ -273,6 +275,7 @@ static void I420_YUY2( filter_t *p_filter, picture_t *p_source, } } } +#endif else { /* Crap, use the C version */ _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
