OSDN Git Service

new ffserver options patch by (D Richard Felker III <dalias at aerifal dot cx>)
authorD Richard Felker III <dalias@aerifal.cx>
Mon, 21 Oct 2002 16:08:39 +0000 (16:08 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 21 Oct 2002 16:08:39 +0000 (16:08 +0000)
Originally committed as revision 1057 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffserver.c

index 0d2d423..789f508 100644 (file)
@@ -3759,6 +3759,26 @@ int parse_ffconfig(const char *filename)
                     errors++;
                 }
             }
+        } else if (!strcasecmp(cmd, "LumaElim")) {
+            get_arg(arg, sizeof(arg), &p);
+            if (stream) {
+                video_enc.luma_elim_threshold = atoi(arg);
+            }
+        } else if (!strcasecmp(cmd, "ChromaElim")) {
+            get_arg(arg, sizeof(arg), &p);
+            if (stream) {
+                video_enc.chroma_elim_threshold = atoi(arg);
+            }
+        } else if (!strcasecmp(cmd, "LumiMask")) {
+            get_arg(arg, sizeof(arg), &p);
+            if (stream) {
+                video_enc.lumi_masking = atof(arg);
+            }
+        } else if (!strcasecmp(cmd, "DarkMask")) {
+            get_arg(arg, sizeof(arg), &p);
+            if (stream) {
+                video_enc.dark_masking = atof(arg);
+            }
         } else if (!strcasecmp(cmd, "NoVideo")) {
             video_id = CODEC_ID_NONE;
         } else if (!strcasecmp(cmd, "NoAudio")) {