Ejemplo n.º 1
0
 public void finishedAnalysis(SourceInfo info, bool error, string errorMessage)
 {
     if (error || info == null)
     {
         LogItem oSourceLog = _log.LogEvent("Source detection");
         oSourceLog.LogValue("Source detection failed", errorMessage, ImageType.Warning);
         filters = new DeinterlaceFilter[] {
             new DeinterlaceFilter("Error", "#An error occurred in source detection. Doing no processing")
         };
         interlaced = false;
     }
     else
     {
         LogItem oSourceLog = _log.LogValue("Source detection", info.analysisResult);
         if (info.sourceType == SourceType.NOT_ENOUGH_SECTIONS)
         {
             oSourceLog.LogEvent("Source detection failed: Could not find enough useful sections to determine source type for " + job.Input, ImageType.Error);
             filters = new DeinterlaceFilter[] {
                 new DeinterlaceFilter("Error", "#Not enough useful sections for source detection. Doing no processing")
             };
         }
         else
         {
             this.filters = ScriptServer.GetDeinterlacers(info).ToArray();
         }
         interlaced = (info.sourceType != SourceType.PROGRESSIVE);
     }
     finished = true;
 }
Ejemplo n.º 2
0
 public void finishedAnalysis(SourceInfo info, bool error, string errorMessage)
 {
     if (error)
     {
         MessageBox.Show(errorMessage, "Source detection failed", MessageBoxButtons.OK, MessageBoxIcon.Error);
         filters = new DeinterlaceFilter[] {
             new DeinterlaceFilter("Error", "#An error occurred in source detection. Doing no processing")
         };
     }
     else
     {
         this.filters = ScriptServer.GetDeinterlacers(info).ToArray();
     }
     interlaced = (info.sourceType != SourceType.PROGRESSIVE);
     finished   = true;
 }