public UpscaleApp(ILoggerFactory loggerFactory, IWaifu2x waifu2X, IVideoConverter videoConverter, UpscaleSettings upscaleSettings) { this._loggerFactory = loggerFactory; this._waifu2X = waifu2X; this._videoConverter = videoConverter; this._upscaleSettings = upscaleSettings; }
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); } }
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); }
public Video(UpscaleSettings upscaleSettings, ILogger <Video> logger) { this._logger = logger; this._videoFile = new FileInfo(upscaleSettings.VideoFile); this._resume = upscaleSettings.Resume; }