diff options
author | sr55 <[email protected]> | 2017-10-30 20:38:01 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2017-10-30 20:38:01 +0000 |
commit | ff8e55868038744c89cd71484b76716dfa2d9db3 (patch) | |
tree | da522cabb568bf13d199c9983f61483ad2e18a3f /win/CS/HandBrakeWPF/Services/Scan | |
parent | d23b701644f1ac1fa11a82b6edd76b5e6782d48c (diff) |
WinGui: Add basic deinterlace to the static preview. #958
Diffstat (limited to 'win/CS/HandBrakeWPF/Services/Scan')
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Scan/LibScan.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Scan/LibScan.cs b/win/CS/HandBrakeWPF/Services/Scan/LibScan.cs index de104924f..287732224 100644 --- a/win/CS/HandBrakeWPF/Services/Scan/LibScan.cs +++ b/win/CS/HandBrakeWPF/Services/Scan/LibScan.cs @@ -19,6 +19,7 @@ namespace HandBrakeWPF.Services.Scan using HandBrake.ApplicationServices.Interop.Interfaces; using HandBrake.ApplicationServices.Interop.Json.Scan; using HandBrake.ApplicationServices.Interop.Model; + using HandBrake.ApplicationServices.Interop.Model.Encoding; using HandBrake.ApplicationServices.Interop.Model.Preview; using HandBrake.ApplicationServices.Model; using HandBrake.ApplicationServices.Services.Logging; @@ -206,7 +207,13 @@ namespace HandBrakeWPF.Services.Scan PixelAspectY = job.PixelAspectY }; - bitmapImage = BitmapUtilities.ConvertToBitmapImage(this.instance.GetPreview(settings, preview)); + int deinterlaceOn = 0; + if (job.DeinterlaceFilter != DeinterlaceFilter.Off) + { + deinterlaceOn = 1; + } + + bitmapImage = BitmapUtilities.ConvertToBitmapImage(this.instance.GetPreview(settings, preview, deinterlaceOn)); } catch (AccessViolationException e) { |