Commit 76a8276f authored by Fiona Glaser's avatar Fiona Glaser

Make b-pyramid normal the default

Now that b-pyramid works with MB-tree and is spec compliant, there's no real reason not to make it default.
Improves compression 0-5% depending on the video.
Also allow 0/1/2 to be used as aliases for none/strict/normal (for conciseness).
parent 3e411be2
......@@ -75,7 +75,7 @@ void x264_param_default( x264_param_t *param )
param->i_scenecut_threshold = 40;
param->i_bframe_adaptive = X264_B_ADAPT_FAST;
param->i_bframe_bias = 0;
param->i_bframe_pyramid = 0;
param->i_bframe_pyramid = X264_B_PYRAMID_NORMAL;
param->b_interlaced = 0;
param->b_constrained_intra = 0;
......@@ -637,7 +637,14 @@ int x264_param_parse( x264_param_t *p, const char *name, const char *value )
OPT("b-bias")
p->i_bframe_bias = atoi(value);
OPT("b-pyramid")
{
b_error |= parse_enum( value, x264_b_pyramid_names, &p->i_bframe_pyramid );
if( b_error )
{
b_error = 0;
p->i_bframe_pyramid = atoi(value);
}
}
OPT("nf")
p->b_deblocking_filter = !atobool(value);
OPT2("filter", "deblock")
......
......@@ -35,7 +35,7 @@
#include <stdarg.h>
#define X264_BUILD 86
#define X264_BUILD 87
/* x264_t:
* opaque handler for encoder */
......
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