[vlc-commits] swscale: don't use SWS_ACCURATE_RND for RGBA on android, it's too slow

Sébastien Toque git at videolan.org
Thu Jan 19 00:17:48 CET 2012


vlc | branch: master | Sébastien Toque <xilasz at gmail.com> | Wed Jan 18 01:20:00 2012 +0100| [0fabd4d29e850700ce02bab507fe21a99371797e] | committer: Jean-Baptiste Kempf

swscale: don't use SWS_ACCURATE_RND for RGBA on android, it's too slow

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0fabd4d29e850700ce02bab507fe21a99371797e
---

 modules/video_filter/swscale.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/video_filter/swscale.c b/modules/video_filter/swscale.c
index bafb2a4..278dccf 100644
--- a/modules/video_filter/swscale.c
+++ b/modules/video_filter/swscale.c
@@ -308,6 +308,7 @@ static int GetParameters( ScalerConfiguration *p_cfg,
     FixParameters( &i_fmti, &b_has_ai, &b_swap_uvi, p_fmti->i_chroma );
     FixParameters( &i_fmto, &b_has_ao, &b_swap_uvo, p_fmto->i_chroma );
 
+#ifndef __ANDROID__
     /* FIXME TODO removed when ffmpeg is fixed
      * Without SWS_ACCURATE_RND the quality is really bad for some conversions */
     switch( i_fmto )
@@ -318,6 +319,7 @@ static int GetParameters( ScalerConfiguration *p_cfg,
         i_sws_flags |= SWS_ACCURATE_RND;
         break;
     }
+#endif
 
     if( p_cfg )
     {



More information about the vlc-commits mailing list