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/HandBrake.ApplicationServices/Interop/HandBrakeInstance.cs | |
parent | d23b701644f1ac1fa11a82b6edd76b5e6782d48c (diff) |
WinGui: Add basic deinterlace to the static preview. #958
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Interop/HandBrakeInstance.cs')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Interop/HandBrakeInstance.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeInstance.cs b/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeInstance.cs index dda3e39c7..d3830cb36 100644 --- a/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeInstance.cs +++ b/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeInstance.cs @@ -268,7 +268,7 @@ namespace HandBrake.ApplicationServices.Interop /// An image with the requested preview.
/// </returns>
[HandleProcessCorruptedStateExceptions]
- public Bitmap GetPreview(PreviewSettings settings, int previewNumber)
+ public Bitmap GetPreview(PreviewSettings settings, int previewNumber, int deinterlace)
{
SourceTitle title = this.Titles.TitleList.FirstOrDefault(t => t.Index == settings.TitleNumber);
@@ -293,7 +293,7 @@ namespace HandBrake.ApplicationServices.Interop };
// Fetch the image data from LibHb
- IntPtr resultingImageStuct = HBFunctions.hb_get_preview2(this.hbHandle, settings.TitleNumber, previewNumber, ref uiGeometry, 0);
+ IntPtr resultingImageStuct = HBFunctions.hb_get_preview2(this.hbHandle, settings.TitleNumber, previewNumber, ref uiGeometry, deinterlace);
hb_image_s image = InteropUtilities.ToStructureFromPtr<hb_image_s>(resultingImageStuct);
// Copy the filled image buffer to a managed array.
|