mirror of https://github.com/ErsatzTV/ErsatzTV.git
5 changed files with 33 additions and 3 deletions
@ -0,0 +1,13 @@
@@ -0,0 +1,13 @@
|
||||
using ErsatzTV.FFmpeg.Format; |
||||
|
||||
namespace ErsatzTV.FFmpeg.Filter.Vaapi; |
||||
|
||||
public class OverlayGraphicsEngineVaapiFilter(FrameState currentState, IPixelFormat outputPixelFormat) : BaseFilter |
||||
{ |
||||
public override string Filter => |
||||
currentState.FrameDataLocation is FrameDataLocation.Hardware |
||||
? "overlay_vaapi" |
||||
: $"overlay=format={(outputPixelFormat.BitDepth == 10 ? '1' : '0')}"; |
||||
|
||||
public override FrameState NextState(FrameState currentState) => currentState; |
||||
} |
Loading…
Reference in new issue