Commit 92c873f0 authored by Gildas Bazin's avatar Gildas Bazin

* modules/codec/x264.c: renamed analyse "all" mode to "slow" and added...

* modules/codec/x264.c: renamed analyse "all" mode to "slow" and added X264_ANALYSE_I8x8 to "all" mode.
parent 502d0a0d
...@@ -121,7 +121,8 @@ static void Close( vlc_object_t * ); ...@@ -121,7 +121,8 @@ static void Close( vlc_object_t * );
static char *enc_analyse_list[] = static char *enc_analyse_list[] =
{ "", "all", "normal", "fast", "none" }; { "", "all", "normal", "fast", "none" };
static char *enc_analyse_list_text[] = static char *enc_analyse_list_text[] =
{ N_("default"), N_("all"), N_("normal"), N_("fast"), N_("none") }; { N_("default"), N_("all"), N_("slow"), N_("normal"),
N_("fast"), N_("none") };
vlc_module_begin(); vlc_module_begin();
set_description( _("h264 video encoder using x264 library")); set_description( _("h264 video encoder using x264 library"));
...@@ -353,6 +354,9 @@ static int Open ( vlc_object_t *p_this ) ...@@ -353,6 +354,9 @@ static int Open ( vlc_object_t *p_this )
p_sys->param.analyse.i_subpel_refine = val.i_int; p_sys->param.analyse.i_subpel_refine = val.i_int;
#endif #endif
#ifndef X264_ANALYSE_BSUB16x16
# define X264_ANALYSE_BSUB16x16 0
#endif
var_Get( p_enc, SOUT_CFG_PREFIX "analyse", &val ); var_Get( p_enc, SOUT_CFG_PREFIX "analyse", &val );
if( !strcmp( val.psz_string, "none" ) ) if( !strcmp( val.psz_string, "none" ) )
{ {
...@@ -367,14 +371,23 @@ static int Open ( vlc_object_t *p_this ) ...@@ -367,14 +371,23 @@ static int Open ( vlc_object_t *p_this )
p_sys->param.analyse.inter = p_sys->param.analyse.inter =
X264_ANALYSE_I4x4 | X264_ANALYSE_PSUB16x16; X264_ANALYSE_I4x4 | X264_ANALYSE_PSUB16x16;
} }
else if( !strcmp( val.psz_string, "slow" ) )
{
p_sys->param.analyse.inter =
X264_ANALYSE_I4x4 |
X264_ANALYSE_PSUB16x16 | X264_ANALYSE_PSUB8x8 |
X264_ANALYSE_BSUB16x16;
}
else if( !strcmp( val.psz_string, "all" ) ) else if( !strcmp( val.psz_string, "all" ) )
{ {
#ifndef X264_ANALYSE_BSUB16x16
# define X264_ANALYSE_BSUB16x16 0
#endif
p_sys->param.analyse.inter = p_sys->param.analyse.inter =
X264_ANALYSE_I4x4 | X264_ANALYSE_PSUB16x16 | X264_ANALYSE_PSUB8x8 | X264_ANALYSE_I4x4 |
X264_ANALYSE_PSUB16x16 | X264_ANALYSE_PSUB8x8 |
X264_ANALYSE_BSUB16x16; X264_ANALYSE_BSUB16x16;
#ifdef X264_ANALYSE_I8x8
p_sys->param.analyse.inter |= X264_ANALYSE_I8x8;
p_sys->param.analyse.b_transform_8x8 = 1;
#endif
} }
if( val.psz_string ) free( val.psz_string ); if( val.psz_string ) free( val.psz_string );
......
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