Files
ersatztv/ErsatzTV.FFmpeg/Option/PixelFormatOutputOption.cs
T
Jason DoveandGitHub 1ab98578ab refactor namespaces and imports (#670)
* re-namespace

* optimize usings

* more usings

* more of the same

* more implicit/global usings

* cleanup all usings

* minor fixes
2022-03-03 15:36:07 -06:00

22 lines
543 B
C#

using ErsatzTV.FFmpeg.Format;
namespace ErsatzTV.FFmpeg.Option;
public class PixelFormatOutputOption : OutputOption
{
private readonly IPixelFormat _pixelFormat;
public PixelFormatOutputOption(IPixelFormat pixelFormat)
{
_pixelFormat = pixelFormat;
}
public override IList<string> OutputOptions => new List<string>
{
"-pix_fmt", _pixelFormat.FFmpegName
};
public override FrameState NextState(FrameState currentState) =>
currentState with { PixelFormat = Some(_pixelFormat) };
}