// -------------------------------------------------------------------------------------------------------------------- // // This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. // // // Defines the hb_geometry type. // // Disable Stylecop Warnings for this file // -------------------------------------------------------------------------------------------------------------------- namespace HandBrake.Interop.HbLib { using System.Runtime.InteropServices; /// /// The hb_geometry_s. /// [StructLayout(LayoutKind.Sequential)] public struct hb_geometry_s { /// /// The width. /// public int width; /// /// The height. /// public int height; /// /// The par. /// public hb_rational_t par; } /// /// The hb_ui_geometry_s. /// [StructLayout(LayoutKind.Sequential)] public struct hb_geometry_settings_s { /// /// Anamorphic mode, see job struct anamorphic /// public int mode; /// /// Specifies settings that shouldn't be changed /// public int keep; /// /// use dvd dimensions to determine PAR /// public int itu_par; /// /// pixel alignment for loose anamorphic /// public int modulus; /// /// Cropping /// [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4, ArraySubType = UnmanagedType.I4)] public int[] crop; /// /// max destination storage width /// public int maxWidth; /// /// max destination storage height /// public int maxHeight; /// /// Pixel aspect used in custom anamorphic /// public hb_geometry_s geometry; } /// /// The hb_rational_t. /// [StructLayout(LayoutKind.Sequential)] public struct hb_rational_t { /// /// The num. W /// public int num; /// /// The den. H /// public int den; } }