* start to add v4l2m2m accel * add v4l2m2m pipeline * add encoders * fix decoders and encoders * output software frames from decoders * more buffers * hide v4l2m2m from ui
20 lines
593 B
C#
20 lines
593 B
C#
using ErsatzTV.FFmpeg.Format;
|
|
|
|
namespace ErsatzTV.FFmpeg.Decoder.V4l2m2m;
|
|
|
|
public class DecoderH264V4l2m2m : DecoderBase
|
|
{
|
|
public override string Name => "h264_v4l2m2m";
|
|
|
|
protected override FrameDataLocation OutputFrameDataLocation => FrameDataLocation.Software;
|
|
|
|
public override FrameState NextState(FrameState currentState)
|
|
{
|
|
FrameState nextState = base.NextState(currentState);
|
|
|
|
return currentState.PixelFormat.Match(
|
|
pixelFormat => nextState with { PixelFormat = new PixelFormatNv12(pixelFormat.Name) },
|
|
() => nextState);
|
|
}
|
|
}
|