fix nvidia watermark (#660)

* add watermark transcoding tests

* nvidia fixes

* update changelog
This commit is contained in:
Jason Dove
2022-02-28 14:21:42 -06:00
committed by GitHub
parent 19161b12ea
commit 6b0ced6be9
7 changed files with 103 additions and 7 deletions
@@ -2,6 +2,13 @@
public class DecoderMpeg2Cuvid : DecoderBase
{
private readonly bool _contentIsInterlaced;
public DecoderMpeg2Cuvid(bool contentIsInterlaced)
{
_contentIsInterlaced = contentIsInterlaced;
}
public override string Name => "mpeg2_cuvid";
public override IList<string> InputOptions(InputFile inputFile)
{
@@ -13,5 +20,6 @@ public class DecoderMpeg2Cuvid : DecoderBase
return result;
}
protected override FrameDataLocation OutputFrameDataLocation => FrameDataLocation.Hardware;
protected override FrameDataLocation OutputFrameDataLocation =>
_contentIsInterlaced ? FrameDataLocation.Software : FrameDataLocation.Hardware;
}