mirror of https://github.com/ErsatzTV/ErsatzTV.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
710 B
25 lines
710 B
namespace ErsatzTV.FFmpeg.Decoder.Cuvid; |
|
|
|
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) |
|
{ |
|
IList<string> result = base.InputOptions(inputFile); |
|
|
|
result.Add("-hwaccel_output_format"); |
|
result.Add("cuda"); |
|
|
|
return result; |
|
} |
|
|
|
protected override FrameDataLocation OutputFrameDataLocation => |
|
_contentIsInterlaced ? FrameDataLocation.Software : FrameDataLocation.Hardware; |
|
}
|
|
|