* spike new graphics engine * fix remote watermarks; add graphics engine to vaapi * add graphics engine to qsv
12 lines
412 B
C#
12 lines
412 B
C#
using ErsatzTV.FFmpeg.Format;
|
|
|
|
namespace ErsatzTV.FFmpeg.Filter;
|
|
|
|
public class OverlayGraphicsEngineFilter(IPixelFormat outputPixelFormat) : BaseFilter
|
|
{
|
|
public override string Filter => $"overlay=format={(outputPixelFormat.BitDepth == 10 ? '1' : '0')}";
|
|
|
|
public override FrameState NextState(FrameState currentState) =>
|
|
currentState with { FrameDataLocation = FrameDataLocation.Software };
|
|
}
|