summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Helpers
diff options
context:
space:
mode:
authorsr55 <[email protected]>2014-12-18 21:30:24 +0000
committersr55 <[email protected]>2014-12-18 21:30:24 +0000
commitaee0ccc0e4d624f88c0d7f3effda3a8a085def74 (patch)
tree8770df03472655675facf0c8cd5e62c72c1c2f06 /win/CS/HandBrakeWPF/Helpers
parent6dac5a9af13ffee95a448cdbe9d1971fb35d3266 (diff)
WinGui: Update the libhb scan code to work with the updated API. See rev6602 for API changes.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6608 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/Helpers')
-rw-r--r--win/CS/HandBrakeWPF/Helpers/PictureSize.cs7
1 files changed, 2 insertions, 5 deletions
diff --git a/win/CS/HandBrakeWPF/Helpers/PictureSize.cs b/win/CS/HandBrakeWPF/Helpers/PictureSize.cs
index f790c5a15..f7dc3aeac 100644
--- a/win/CS/HandBrakeWPF/Helpers/PictureSize.cs
+++ b/win/CS/HandBrakeWPF/Helpers/PictureSize.cs
@@ -184,19 +184,16 @@ namespace HandBrakeWPF.Helpers
int settingMode = (int)setting + (job.KeepDisplayAspect ? 0x04 : 0);
- hb_ui_geometry_s uiGeometry = new hb_ui_geometry_s
+ hb_geometry_settings_s uiGeometry = new hb_geometry_settings_s
{
crop = new[] { job.Crop.Top, job.Crop.Bottom, job.Crop.Left, job.Crop.Right },
- dar = new hb_rational_t { den = 0, num = 0 },
- height = job.Height,
itu_par = 0,
keep = settingMode,
maxWidth = job.MaxWidth,
maxHeight = job.MaxHeight,
mode = (int)(hb_anamorphic_mode_t)job.AnamorphicMode,
modulus = job.Modulus.HasValue ? job.Modulus.Value : 16,
- par = job.AnamorphicMode != Anamorphic.Custom ? new hb_rational_t { den = title.ParH, num = title.ParW } : new hb_rational_t { den = job.ParH, num = job.ParW },
- width = job.Width,
+ geometry = new hb_geometry_s() { height = job.Height, width = job.Width, par = job.AnamorphicMode != Anamorphic.Custom ? new hb_rational_t { den = title.ParH, num = title.ParW } : new hb_rational_t { den = job.ParH, num = job.ParW }}
};
hb_geometry_s sourceGeometry = new hb_geometry_s