* move watermark options into watermark selector * fix graphics engine overlay performance * more refactoring * add some tests for existing watermark selector behavior * remove extra ffprobe call on all watermarks * remove a bunch of unused code; add failing tests * implement new watermark selection * add tests for new selector * probably sufficient (though verbose) test coverage * more tests * remove some unused code * simplify watermark selection * remove old selection code and tests * more tests
13 lines
420 B
C#
13 lines
420 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 };
|
|
}
|