From dac99c359e185d0af3b4a574b083b6e84fcaa8fa Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Thu, 25 Mar 2010 19:39:06 +0000 Subject: [PATCH] Enable mbtree by default, and remove it from presets Originally committed as revision 22671 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffpresets/libx264-baseline.ffpreset | 2 +- ffpresets/libx264-default.ffpreset | 2 +- ffpresets/libx264-fast.ffpreset | 2 +- ffpresets/libx264-fast_firstpass.ffpreset | 2 +- ffpresets/libx264-fastfirstpass.ffpreset | 2 +- ffpresets/libx264-hq.ffpreset | 2 +- ffpresets/libx264-ipod320.ffpreset | 2 +- ffpresets/libx264-ipod640.ffpreset | 2 +- ffpresets/libx264-lossless_fast.ffpreset | 2 +- ffpresets/libx264-lossless_max.ffpreset | 2 +- ffpresets/libx264-lossless_medium.ffpreset | 2 +- ffpresets/libx264-lossless_slow.ffpreset | 2 +- ffpresets/libx264-lossless_slower.ffpreset | 2 +- ffpresets/libx264-lossless_ultrafast.ffpreset | 2 +- ffpresets/libx264-main.ffpreset | 2 +- ffpresets/libx264-max.ffpreset | 2 +- ffpresets/libx264-medium.ffpreset | 2 +- ffpresets/libx264-medium_firstpass.ffpreset | 2 +- ffpresets/libx264-normal.ffpreset | 2 +- ffpresets/libx264-placebo.ffpreset | 2 +- ffpresets/libx264-placebo_firstpass.ffpreset | 2 +- ffpresets/libx264-slow.ffpreset | 2 +- ffpresets/libx264-slow_firstpass.ffpreset | 2 +- ffpresets/libx264-slower.ffpreset | 2 +- ffpresets/libx264-slower_firstpass.ffpreset | 2 +- ffpresets/libx264-slowfirstpass.ffpreset | 2 +- ffpresets/libx264-veryslow.ffpreset | 2 +- ffpresets/libx264-veryslow_firstpass.ffpreset | 2 +- libavcodec/options.c | 2 +- 29 files changed, 29 insertions(+), 29 deletions(-) diff --git a/ffpresets/libx264-baseline.ffpreset b/ffpresets/libx264-baseline.ffpreset index a23b746ded..ee7654bdec 100644 --- a/ffpresets/libx264-baseline.ffpreset +++ b/ffpresets/libx264-baseline.ffpreset @@ -1,4 +1,4 @@ coder=0 bf=0 -flags2=-wpred-dct8x8+mbtree +flags2=-wpred-dct8x8 wpredp=0 diff --git a/ffpresets/libx264-default.ffpreset b/ffpresets/libx264-default.ffpreset index a10c633240..75191e21b3 100644 --- a/ffpresets/libx264-default.ffpreset +++ b/ffpresets/libx264-default.ffpreset @@ -18,5 +18,5 @@ bf=3 refs=3 directpred=1 trellis=1 -flags2=+mixed_refs+wpred+dct8x8+fastpskip+mbtree +flags2=+mixed_refs+wpred+dct8x8+fastpskip wpredp=2 diff --git a/ffpresets/libx264-fast.ffpreset b/ffpresets/libx264-fast.ffpreset index 8040724804..b3011535b3 100644 --- a/ffpresets/libx264-fast.ffpreset +++ b/ffpresets/libx264-fast.ffpreset @@ -18,5 +18,5 @@ bf=3 refs=2 directpred=1 trellis=1 -flags2=+bpyramid+mixed_refs+wpred+dct8x8+fastpskip+mbtree +flags2=+bpyramid+mixed_refs+wpred+dct8x8+fastpskip wpredp=2 diff --git a/ffpresets/libx264-fast_firstpass.ffpreset b/ffpresets/libx264-fast_firstpass.ffpreset index f0fb0833c2..e4159892d0 100644 --- a/ffpresets/libx264-fast_firstpass.ffpreset +++ b/ffpresets/libx264-fast_firstpass.ffpreset @@ -18,5 +18,5 @@ bf=3 refs=1 directpred=1 trellis=0 -flags2=+bpyramid-mixed_refs+wpred-dct8x8+fastpskip+mbtree +flags2=+bpyramid-mixed_refs+wpred-dct8x8+fastpskip wpredp=2 diff --git a/ffpresets/libx264-fastfirstpass.ffpreset b/ffpresets/libx264-fastfirstpass.ffpreset index 7cf6faae41..7278f771e1 100644 --- a/ffpresets/libx264-fastfirstpass.ffpreset +++ b/ffpresets/libx264-fastfirstpass.ffpreset @@ -18,5 +18,5 @@ bf=3 refs=1 directpred=3 trellis=0 -flags2=-bpyramid-wpred-mixed_refs-dct8x8+fastpskip+mbtree +flags2=-bpyramid-wpred-mixed_refs-dct8x8+fastpskip wpredp=2 diff --git a/ffpresets/libx264-hq.ffpreset b/ffpresets/libx264-hq.ffpreset index eafc52e410..9c14d8f554 100644 --- a/ffpresets/libx264-hq.ffpreset +++ b/ffpresets/libx264-hq.ffpreset @@ -18,5 +18,5 @@ bf=3 refs=4 directpred=3 trellis=1 -flags2=+wpred+mixed_refs+dct8x8+fastpskip+mbtree +flags2=+wpred+mixed_refs+dct8x8+fastpskip wpredp=2 diff --git a/ffpresets/libx264-ipod320.ffpreset b/ffpresets/libx264-ipod320.ffpreset index b10205025e..943b521348 100644 --- a/ffpresets/libx264-ipod320.ffpreset +++ b/ffpresets/libx264-ipod320.ffpreset @@ -1,6 +1,6 @@ coder=0 bf=0 -flags2=-wpred-dct8x8+mbtree +flags2=-wpred-dct8x8 level=13 maxrate=768000 bufsize=3000000 diff --git a/ffpresets/libx264-ipod640.ffpreset b/ffpresets/libx264-ipod640.ffpreset index aa731dccc5..1ed3d9fb28 100644 --- a/ffpresets/libx264-ipod640.ffpreset +++ b/ffpresets/libx264-ipod640.ffpreset @@ -1,7 +1,7 @@ coder=0 bf=0 refs=1 -flags2=-wpred-dct8x8+mbtree +flags2=-wpred-dct8x8 level=30 maxrate=10000000 bufsize=10000000 diff --git a/ffpresets/libx264-lossless_fast.ffpreset b/ffpresets/libx264-lossless_fast.ffpreset index 9bbabf5f7c..ea08d3c00b 100644 --- a/ffpresets/libx264-lossless_fast.ffpreset +++ b/ffpresets/libx264-lossless_fast.ffpreset @@ -15,6 +15,6 @@ qmin=10 qmax=51 qdiff=4 directpred=1 -flags2=+fastpskip+mbtree +flags2=+fastpskip cqp=0 wpredp=0 diff --git a/ffpresets/libx264-lossless_max.ffpreset b/ffpresets/libx264-lossless_max.ffpreset index d4ba018b75..8c049c9c93 100644 --- a/ffpresets/libx264-lossless_max.ffpreset +++ b/ffpresets/libx264-lossless_max.ffpreset @@ -16,6 +16,6 @@ qmax=51 qdiff=4 refs=16 directpred=1 -flags2=+mixed_refs+dct8x8+fastpskip+mbtree +flags2=+mixed_refs+dct8x8+fastpskip cqp=0 wpredp=2 diff --git a/ffpresets/libx264-lossless_medium.ffpreset b/ffpresets/libx264-lossless_medium.ffpreset index c4133c2279..558be6c931 100644 --- a/ffpresets/libx264-lossless_medium.ffpreset +++ b/ffpresets/libx264-lossless_medium.ffpreset @@ -15,6 +15,6 @@ qmin=10 qmax=51 qdiff=4 directpred=1 -flags2=+fastpskip+mbtree +flags2=+fastpskip cqp=0 wpredp=2 diff --git a/ffpresets/libx264-lossless_slow.ffpreset b/ffpresets/libx264-lossless_slow.ffpreset index 1421b95603..ff641cf40f 100644 --- a/ffpresets/libx264-lossless_slow.ffpreset +++ b/ffpresets/libx264-lossless_slow.ffpreset @@ -16,6 +16,6 @@ qmax=51 qdiff=4 refs=2 directpred=1 -flags2=+dct8x8+fastpskip+mbtree +flags2=+dct8x8+fastpskip cqp=0 wpredp=2 diff --git a/ffpresets/libx264-lossless_slower.ffpreset b/ffpresets/libx264-lossless_slower.ffpreset index 942445921e..854f74b236 100644 --- a/ffpresets/libx264-lossless_slower.ffpreset +++ b/ffpresets/libx264-lossless_slower.ffpreset @@ -16,6 +16,6 @@ qmax=51 qdiff=4 refs=4 directpred=1 -flags2=+mixed_refs+dct8x8+fastpskip+mbtree +flags2=+mixed_refs+dct8x8+fastpskip cqp=0 wpredp=2 diff --git a/ffpresets/libx264-lossless_ultrafast.ffpreset b/ffpresets/libx264-lossless_ultrafast.ffpreset index 3c44488e8d..1c429f21ff 100644 --- a/ffpresets/libx264-lossless_ultrafast.ffpreset +++ b/ffpresets/libx264-lossless_ultrafast.ffpreset @@ -15,5 +15,5 @@ qmin=10 qmax=51 qdiff=4 directpred=1 -flags2=+fastpskip+mbtree +flags2=+fastpskip cqp=0 diff --git a/ffpresets/libx264-main.ffpreset b/ffpresets/libx264-main.ffpreset index 0868c53cff..d1dc7ddae9 100644 --- a/ffpresets/libx264-main.ffpreset +++ b/ffpresets/libx264-main.ffpreset @@ -1 +1 @@ -flags2=-dct8x8+mbtree +flags2=-dct8x8 diff --git a/ffpresets/libx264-max.ffpreset b/ffpresets/libx264-max.ffpreset index 4289ab531e..667ba85fef 100644 --- a/ffpresets/libx264-max.ffpreset +++ b/ffpresets/libx264-max.ffpreset @@ -18,5 +18,5 @@ bf=3 refs=16 directpred=3 trellis=2 -flags2=+wpred+mixed_refs+dct8x8-fastpskip+mbtree +flags2=+wpred+mixed_refs+dct8x8-fastpskip wpredp=2 diff --git a/ffpresets/libx264-medium.ffpreset b/ffpresets/libx264-medium.ffpreset index 245f4d2850..039f1d603c 100644 --- a/ffpresets/libx264-medium.ffpreset +++ b/ffpresets/libx264-medium.ffpreset @@ -18,5 +18,5 @@ bf=3 refs=3 directpred=1 trellis=1 -flags2=+bpyramid+mixed_refs+wpred+dct8x8+fastpskip+mbtree +flags2=+bpyramid+mixed_refs+wpred+dct8x8+fastpskip wpredp=2 diff --git a/ffpresets/libx264-medium_firstpass.ffpreset b/ffpresets/libx264-medium_firstpass.ffpreset index f0fb0833c2..e4159892d0 100644 --- a/ffpresets/libx264-medium_firstpass.ffpreset +++ b/ffpresets/libx264-medium_firstpass.ffpreset @@ -18,5 +18,5 @@ bf=3 refs=1 directpred=1 trellis=0 -flags2=+bpyramid-mixed_refs+wpred-dct8x8+fastpskip+mbtree +flags2=+bpyramid-mixed_refs+wpred-dct8x8+fastpskip wpredp=2 diff --git a/ffpresets/libx264-normal.ffpreset b/ffpresets/libx264-normal.ffpreset index dd7991bab4..ee790b6434 100644 --- a/ffpresets/libx264-normal.ffpreset +++ b/ffpresets/libx264-normal.ffpreset @@ -18,5 +18,5 @@ bf=3 refs=2 directpred=3 trellis=0 -flags2=+wpred+dct8x8+fastpskip+mbtree +flags2=+wpred+dct8x8+fastpskip wpredp=2 diff --git a/ffpresets/libx264-placebo.ffpreset b/ffpresets/libx264-placebo.ffpreset index 447f3d860e..cfb19fe15a 100644 --- a/ffpresets/libx264-placebo.ffpreset +++ b/ffpresets/libx264-placebo.ffpreset @@ -18,5 +18,5 @@ bf=16 refs=16 directpred=3 trellis=2 -flags2=+bpyramid+mixed_refs+wpred+dct8x8-fastpskip+mbtree +flags2=+bpyramid+mixed_refs+wpred+dct8x8-fastpskip wpredp=2 diff --git a/ffpresets/libx264-placebo_firstpass.ffpreset b/ffpresets/libx264-placebo_firstpass.ffpreset index 447f3d860e..cfb19fe15a 100644 --- a/ffpresets/libx264-placebo_firstpass.ffpreset +++ b/ffpresets/libx264-placebo_firstpass.ffpreset @@ -18,5 +18,5 @@ bf=16 refs=16 directpred=3 trellis=2 -flags2=+bpyramid+mixed_refs+wpred+dct8x8-fastpskip+mbtree +flags2=+bpyramid+mixed_refs+wpred+dct8x8-fastpskip wpredp=2 diff --git a/ffpresets/libx264-slow.ffpreset b/ffpresets/libx264-slow.ffpreset index 955495ac2d..79cfe65cc6 100644 --- a/ffpresets/libx264-slow.ffpreset +++ b/ffpresets/libx264-slow.ffpreset @@ -18,5 +18,5 @@ bf=3 refs=5 directpred=3 trellis=1 -flags2=+bpyramid+mixed_refs+wpred+dct8x8+fastpskip+mbtree +flags2=+bpyramid+mixed_refs+wpred+dct8x8+fastpskip wpredp=2 diff --git a/ffpresets/libx264-slow_firstpass.ffpreset b/ffpresets/libx264-slow_firstpass.ffpreset index e043a662e2..d164a2e4f8 100644 --- a/ffpresets/libx264-slow_firstpass.ffpreset +++ b/ffpresets/libx264-slow_firstpass.ffpreset @@ -18,5 +18,5 @@ bf=3 refs=1 directpred=3 trellis=0 -flags2=+bpyramid-mixed_refs+wpred-dct8x8+fastpskip+mbtree +flags2=+bpyramid-mixed_refs+wpred-dct8x8+fastpskip wpredp=2 diff --git a/ffpresets/libx264-slower.ffpreset b/ffpresets/libx264-slower.ffpreset index 4c487cc64c..1d5d5ace61 100644 --- a/ffpresets/libx264-slower.ffpreset +++ b/ffpresets/libx264-slower.ffpreset @@ -18,5 +18,5 @@ bf=3 refs=8 directpred=3 trellis=2 -flags2=+bpyramid+mixed_refs+wpred+dct8x8+fastpskip+mbtree +flags2=+bpyramid+mixed_refs+wpred+dct8x8+fastpskip wpredp=2 diff --git a/ffpresets/libx264-slower_firstpass.ffpreset b/ffpresets/libx264-slower_firstpass.ffpreset index e043a662e2..d164a2e4f8 100644 --- a/ffpresets/libx264-slower_firstpass.ffpreset +++ b/ffpresets/libx264-slower_firstpass.ffpreset @@ -18,5 +18,5 @@ bf=3 refs=1 directpred=3 trellis=0 -flags2=+bpyramid-mixed_refs+wpred-dct8x8+fastpskip+mbtree +flags2=+bpyramid-mixed_refs+wpred-dct8x8+fastpskip wpredp=2 diff --git a/ffpresets/libx264-slowfirstpass.ffpreset b/ffpresets/libx264-slowfirstpass.ffpreset index ba49065c14..fe073310de 100644 --- a/ffpresets/libx264-slowfirstpass.ffpreset +++ b/ffpresets/libx264-slowfirstpass.ffpreset @@ -18,5 +18,5 @@ bf=3 refs=1 directpred=3 trellis=0 -flags2=+wpred+dct8x8+fastpskip+mbtree +flags2=+wpred+dct8x8+fastpskip wpredp=2 diff --git a/ffpresets/libx264-veryslow.ffpreset b/ffpresets/libx264-veryslow.ffpreset index 0863299598..57e808d0a5 100644 --- a/ffpresets/libx264-veryslow.ffpreset +++ b/ffpresets/libx264-veryslow.ffpreset @@ -18,5 +18,5 @@ bf=8 refs=16 directpred=3 trellis=2 -flags2=+bpyramid+mixed_refs+wpred+dct8x8+fastpskip+mbtree +flags2=+bpyramid+mixed_refs+wpred+dct8x8+fastpskip wpredp=2 diff --git a/ffpresets/libx264-veryslow_firstpass.ffpreset b/ffpresets/libx264-veryslow_firstpass.ffpreset index a0004876cf..e04062d814 100644 --- a/ffpresets/libx264-veryslow_firstpass.ffpreset +++ b/ffpresets/libx264-veryslow_firstpass.ffpreset @@ -18,5 +18,5 @@ bf=8 refs=1 directpred=3 trellis=0 -flags2=+bpyramid-mixed_refs+wpred-dct8x8+fastpskip+mbtree +flags2=+bpyramid-mixed_refs+wpred-dct8x8+fastpskip wpredp=2 diff --git a/libavcodec/options.c b/libavcodec/options.c index f51e477031..eae0205640 100644 --- a/libavcodec/options.c +++ b/libavcodec/options.c @@ -307,7 +307,7 @@ static const AVOption options[]={ {"nr", "noise reduction", OFFSET(noise_reduction), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX, V|E}, {"rc_init_occupancy", "number of bits which should be loaded into the rc buffer before decoding starts", OFFSET(rc_initial_buffer_occupancy), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX, V|E}, {"inter_threshold", NULL, OFFSET(inter_threshold), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX, V|E}, -{"flags2", NULL, OFFSET(flags2), FF_OPT_TYPE_FLAGS, CODEC_FLAG2_FASTPSKIP|CODEC_FLAG2_BIT_RESERVOIR|CODEC_FLAG2_PSY, 0, UINT_MAX, V|A|E|D, "flags2"}, +{"flags2", NULL, OFFSET(flags2), FF_OPT_TYPE_FLAGS, CODEC_FLAG2_FASTPSKIP|CODEC_FLAG2_BIT_RESERVOIR|CODEC_FLAG2_PSY|CODEC_FLAG2_MBTREE, 0, UINT_MAX, V|A|E|D, "flags2"}, {"error", NULL, OFFSET(error_rate), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX, V|E}, {"antialias", "MP3 antialias algorithm", OFFSET(antialias_algo), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX, V|D, "aa"}, {"auto", NULL, 0, FF_OPT_TYPE_CONST, FF_AA_AUTO, INT_MIN, INT_MAX, V|D, "aa"},