fix qsv watermark alpha (#1239)

This commit is contained in:
Jason Dove
2023-04-11 10:30:19 -05:00
committed by GitHub
parent a684dcced9
commit afb2caa95d
2 changed files with 2 additions and 5 deletions
+1
View File
@@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Limit `HLS Direct` streams to realtime speed
- Fix `Reset Playout` button to use worker thread instead of UI thread
- This fixes potential UI hangs and database concurrency bugs
- Maintain watermark alpha channel (built-in transparency) using QSV acceleration
### Changed
- Remove duplicate items from smart collections before scheduling
@@ -411,11 +411,7 @@ public class QsvPipelineBuilder : SoftwarePipelineBuilder
watermark.FilterSteps.Add(new WatermarkOpacityFilter(watermark.DesiredState));
}
IPixelFormat pixelFormat = context.Is10BitOutput
? new PixelFormatNv12(FFmpegFormat.P010LE)
: new PixelFormatNv12(FFmpegFormat.YUVA420P);
watermark.FilterSteps.Add(new PixelFormatFilter(pixelFormat));
watermark.FilterSteps.Add(new PixelFormatFilter(new PixelFormatYuva420P()));
foreach (List<WatermarkFadePoint> fadePoints in watermark.DesiredState.MaybeFadePoints)
{