* cleanup scanner project * cleanup infrastructure projects * cleanup ffmpeg project * cleanup core project * cleanup app project * cleanup main project * update dependencies * code cleanup
19 lines
532 B
C#
19 lines
532 B
C#
using ErsatzTV.FFmpeg.Format;
|
|
|
|
namespace ErsatzTV.FFmpeg.OutputOption;
|
|
|
|
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) };
|
|
}
|