Example #1
0
 public UpscaleApp(ILoggerFactory loggerFactory, IWaifu2x waifu2X, IVideoConverter videoConverter, UpscaleSettings upscaleSettings)
 {
     this._loggerFactory   = loggerFactory;
     this._waifu2X         = waifu2X;
     this._videoConverter  = videoConverter;
     this._upscaleSettings = upscaleSettings;
 }
Example #2
0
 public Ffmpeg(UpscaleSettings upscaleSettings, FfmpegSettings ffmpegSettings, ILogger <Ffmpeg> logger)
 {
     this._upscaleSettings = upscaleSettings;
     this._ffmpegSettings  = ffmpegSettings;
     this._logger          = logger;
     this._framesOutputDir = Path.Combine(this._upscaleSettings.TempPath, this._ffmpegSettings.FramesPath);
     if (!Directory.Exists(this._framesOutputDir))
     {
         Directory.CreateDirectory(this._framesOutputDir);
     }
 }
Example #3
0
        public Waifu2xVulkan(UpscaleSettings upscaleSettings, Waifu2xSettings waifu2XSettings, IFileProxy fileProxy, ILogger <Waifu2xVulkan> logger)
        {
            this._waifu2XSettings = waifu2XSettings;
            this._fileProxy       = fileProxy;
            this._logger          = logger;
            if (string.IsNullOrEmpty(waifu2XSettings.OutputPath))
            {
                throw new ArgumentNullException(nameof(waifu2XSettings.OutputPath));
            }

            this._outputPath = Path.Combine(upscaleSettings.TempPath, waifu2XSettings.OutputPath);
        }
Example #4
0
 public Video(UpscaleSettings upscaleSettings, ILogger <Video> logger)
 {
     this._logger    = logger;
     this._videoFile = new FileInfo(upscaleSettings.VideoFile);
     this._resume    = upscaleSettings.Resume;
 }