[vlc-commits] swscale: don't use SWS_ACCURATE_RND for RGBA on android, it's too slow
Sébastien Toque
git at videolan.org
Mon Jan 23 16:45:37 CET 2012
vlc/vlc-1.2 | branch: master | Sébastien Toque <xilasz at gmail.com> | Wed Jan 18 01:20:00 2012 +0100| [5e037a773bbda36a2bf9fba865b4db6bcf472c6a] | 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>
(cherry picked from commit 0fabd4d29e850700ce02bab507fe21a99371797e)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=5e037a773bbda36a2bf9fba865b4db6bcf472c6a
---
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