overdue code cleanup (#1271)

This commit is contained in:
Jason Dove
2023-05-10 13:18:18 -05:00
committed by GitHub
parent 6142dcf153
commit 03df2a6c8a
259 changed files with 1357 additions and 1312 deletions
@@ -6,7 +6,7 @@ namespace ErsatzTV.FFmpeg.Encoder.Nvenc;
public class EncoderHevcNvenc : EncoderBase
{
private readonly bool _bFrames;
public EncoderHevcNvenc(IHardwareCapabilities hardwareCapabilities)
{
if (hardwareCapabilities is NvidiaHardwareCapabilities nvidia)
@@ -17,11 +17,12 @@ public class EncoderHevcNvenc : EncoderBase
public override string Name => "hevc_nvenc";
public override StreamKind Kind => StreamKind.Video;
public override IList<string> OutputOptions =>
new[] { "-c:v", "hevc_nvenc", "-b_ref_mode", _bFrames ? "1" : "0" };
public override FrameState NextState(FrameState currentState) => currentState with
{
VideoFormat = VideoFormat.Hevc
};
public override IList<string> OutputOptions =>
new[] { "-c:v", "hevc_nvenc", "-b_ref_mode", _bFrames ? "1" : "0" };
}