Commit 5e037a77 authored by Sébastien Toque's avatar Sébastien Toque Committed by Jean-Baptiste Kempf

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

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 0fabd4d2)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 9bbec8d4
......@@ -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 )
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment