Revision bf080813

View differences:

ffmpeg.c
133 133
static int strict = 0;
134 134
static int top_field_first = -1;
135 135
static int me_threshold = 0;
136
static int mb_threshold = 0;
137 136
static int intra_dc_precision = 8;
138 137
static int me_penalty_compensation= 256;
139 138
static int frame_skip_threshold= 0;
......
2103 2102
    me_threshold = atoi(arg);
2104 2103
}
2105 2104

  
2106
static void opt_mb_threshold(const char *arg)
2107
{
2108
    mb_threshold = atoi(arg);
2109
}
2110

  
2111 2105
static void opt_verbose(const char *arg)
2112 2106
{
2113 2107
    verbose = atoi(arg);
......
2939 2933
        video_enc->rc_override_count=i;
2940 2934
        video_enc->rc_initial_buffer_occupancy = video_enc->rc_buffer_size*3/4;
2941 2935
        video_enc->me_threshold= me_threshold;
2942
        video_enc->mb_threshold= mb_threshold;
2943 2936
        video_enc->intra_dc_precision= intra_dc_precision - 8;
2944 2937
        video_enc->strict_std_compliance = strict;
2945 2938
        video_enc->error_rate = error_rate;
......
3847 3840
    { "me", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_motion_estimation}, "set motion estimation method",
3848 3841
      "method" },
3849 3842
    { "me_threshold", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_me_threshold}, "motion estimaton threshold",  "" },
3850
    { "mb_threshold", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_mb_threshold}, "macroblock threshold",  "" },
3851 3843
    { "ps", HAS_ARG | OPT_EXPERT, {(void*)opt_packet_size}, "set packet size in bits", "size" },
3852 3844
    { "error", HAS_ARG | OPT_EXPERT, {(void*)opt_error_rate}, "error rate", "rate" },
3853 3845
    { "strict", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_strict}, "how strictly to follow the standards", "strictness" },
libavcodec/utils.c
695 695
{"qns", "quantizer noise shaping", OFFSET(quantizer_noise_shaping), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX, V|E},
696 696
{"threads", NULL, OFFSET(thread_count), FF_OPT_TYPE_INT, 1, INT_MIN, INT_MAX, V|E|D},
697 697
{"me_threshold", "motion estimaton threshold", OFFSET(me_threshold), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX},
698
{"mb_threshold", "macroblock threshold", OFFSET(mb_threshold), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX},
698
{"mb_threshold", "macroblock threshold", OFFSET(mb_threshold), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX, V|E},
699 699
{"dc", "intra_dc_precision", OFFSET(intra_dc_precision), FF_OPT_TYPE_INT, 8, INT_MIN, INT_MAX, V|E},
700 700
{"nssew", "nsse weight", OFFSET(nsse_weight), FF_OPT_TYPE_INT, 8, INT_MIN, INT_MAX, V|E},
701 701
{"skip_top", NULL, OFFSET(skip_top), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX, V|D},

Also available in: Unified diff