private void SetupConversion(string from, string to, BlockMode blockMode) { NativeCalls.SetBlockMode(_context, blockMode); NativeCalls.SetInputFile(_context, from); NativeCalls.SetOutputFile(_context, to); }
/// <summary> /// Sets the speed and therefore accuracy of the conversion. /// </summary> /// <param name="mode"><see cref="SpeedMode"/></param> public void SetSpeedMode(SpeedMode mode) { NativeCalls.SetSpeedMode(_context, mode); }
/// <summary> /// Creates a new ASTC context. /// </summary> public ASTCContext() { _context = NativeCalls.CreateContext(); }
/// <summary> /// Sets the mode to decode the image with. /// </summary> /// <param name="mode"><see cref="DecodeMode"/></param> public void SetDecodeMode(DecodeMode mode) { NativeCalls.SetDecodeMode(_context, mode); }
/// <summary> /// Set the number of threads to use. /// </summary> /// <param name="threads"></param> public void SetThreadCount(int threads) { NativeCalls.SetThreadCount(_context, threads); }