]> git.sesse.net Git - ffmpeg/commitdiff
lavc: deprecate unused me_threshold field
authorAnton Khirnov <anton@khirnov.net>
Wed, 8 Oct 2014 10:39:02 +0000 (10:39 +0000)
committerAnton Khirnov <anton@khirnov.net>
Sat, 18 Oct 2014 03:26:56 +0000 (05:26 +0200)
avconv.c
libavcodec/avcodec.h
libavcodec/options_table.h

index c94e8f83fce9628729897ad1da14053af6e35e60..dc21afff4a83462bf2b08911a5e5b7b6b6aed265 100644 (file)
--- a/avconv.c
+++ b/avconv.c
@@ -564,8 +564,7 @@ static void do_video_out(AVFormatContext *s,
             in_picture->top_field_first = !!ost->top_field_first;
 
         in_picture->quality = enc->global_quality;
-        if (!enc->me_threshold)
-            in_picture->pict_type = 0;
+        in_picture->pict_type = 0;
         if (ost->forced_kf_index < ost->forced_kf_count &&
             in_picture->pts >= ost->forced_kf_pts[ost->forced_kf_index]) {
             in_picture->pict_type = AV_PICTURE_TYPE_I;
index 4b25cb1478febce84f24fbee3ce8cbe7bde36240..9d9f562a02519f07a6a2e2b42904a8b687d74b72 100644 (file)
@@ -1608,14 +1608,13 @@ typedef struct AVCodecContext {
      */
     int noise_reduction;
 
+#if FF_API_MPV_OPT
     /**
-     * Motion estimation threshold below which no motion estimation is
-     * performed, but instead the user specified motion vectors are used.
-     *
-     * - encoding: Set by user.
-     * - decoding: unused
+     * @deprecated this field is unused
      */
+    attribute_deprecated
     int me_threshold;
+#endif
 
     /**
      * Macroblock threshold below which the user specified macroblock types will be used.
index ce6a3ae05f1bfeaf6de7bcab23730ee022ea156a..eadc71829a9047c4c03b2751d9810f1a1289e4df 100644 (file)
@@ -320,7 +320,9 @@ static const AVOption avcodec_options[] = {
 #endif
 {"threads", NULL, OFFSET(thread_count), AV_OPT_TYPE_INT, {.i64 = 1 }, 0, INT_MAX, V|E|D, "threads"},
 {"auto", "autodetect a suitable number of threads to use", 0, AV_OPT_TYPE_CONST, {.i64 = 0 }, INT_MIN, INT_MAX, V|E|D, "threads"},
+#if FF_API_MPV_OPT
 {"me_threshold", "motion estimation threshold", OFFSET(me_threshold), AV_OPT_TYPE_INT, {.i64 = DEFAULT }, INT_MIN, INT_MAX, V|E},
+#endif
 {"mb_threshold", "macroblock threshold", OFFSET(mb_threshold), AV_OPT_TYPE_INT, {.i64 = DEFAULT }, INT_MIN, INT_MAX, V|E},
 {"dc", "intra_dc_precision", OFFSET(intra_dc_precision), AV_OPT_TYPE_INT, {.i64 = 0 }, INT_MIN, INT_MAX, V|E},
 {"nssew", "nsse weight", OFFSET(nsse_weight), AV_OPT_TYPE_INT, {.i64 = 8 }, INT_MIN, INT_MAX, V|E},