From 859955de90388ecf33456786b3af0316a2181adb Mon Sep 17 00:00:00 2001 From: gamethecupdog <37276103+gameboycjp@users.noreply.github.com> Date: Mon, 23 Sep 2024 16:22:52 -0700 Subject: [PATCH] Update CMP_CompressOptions.cs Add options from newer versions --- Structs/CMP_CompressOptions.cs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Structs/CMP_CompressOptions.cs b/Structs/CMP_CompressOptions.cs index 039475b..66c1bba 100644 --- a/Structs/CMP_CompressOptions.cs +++ b/Structs/CMP_CompressOptions.cs @@ -16,6 +16,30 @@ public unsafe class CMP_CompressOptions [MarshalAs(UnmanagedType.U4)] public uint size; + // New to v4.5 + // Flags to control parameters in Brotli-G compression preconditioning + + [MarshalAs(UnmanagedType.U1)] + public bool doPreconditionBRLG; + [MarshalAs(UnmanagedType.U1)] + public bool doDeltaEncodeBRLG; + [MarshalAs(UnmanagedType.U1)] + public bool doSwizzleBRLG; + + // New to v4.3 + + [MarshalAs(UnmanagedType.U4)] + public uint pageSize; + + // New to v4.2 + + [MarshalAs(UnmanagedType.U1)] + public bool useRefinementSteps; + [MarshalAs(UnmanagedType.I4)] + public int refinementSteps; + + // v4.1 and older settings + [MarshalAs(UnmanagedType.U1)] public bool useChannelWeighting; [MarshalAs(UnmanagedType.R4)]