* Add Rockchip Media Process Platform (rkmpp) acceleration * remove fourcc stuff; it's exclusive to videotoolbox * update changelog --------- Co-authored-by: Jason Dove <1695733+jasongdove@users.noreply.github.com>
26 lines
756 B
C#
26 lines
756 B
C#
using ErsatzTV.FFmpeg.Format;
|
|
|
|
namespace ErsatzTV.FFmpeg.Encoder.Rkmpp;
|
|
|
|
public class EncoderHevcRkmpp : EncoderBase
|
|
{
|
|
private readonly int _desiredBitDepth;
|
|
|
|
public EncoderHevcRkmpp(int desiredBitDepth) => _desiredBitDepth = desiredBitDepth;
|
|
|
|
public override string Name => "hevc_rkmpp";
|
|
public override StreamKind Kind => StreamKind.Video;
|
|
|
|
public override string[] OutputOptions => base.OutputOptions.Concat(
|
|
new[]
|
|
{
|
|
"-profile:v",
|
|
_desiredBitDepth == 10 ? "main10" : "main"
|
|
}).ToArray();
|
|
|
|
public override FrameState NextState(FrameState currentState) => currentState with
|
|
{
|
|
VideoFormat = VideoFormat.Hevc,
|
|
FrameDataLocation = FrameDataLocation.Hardware
|
|
};
|
|
} |