Example #1
0
 private void SetupConversion(string from, string to, BlockMode blockMode)
 {
     NativeCalls.SetBlockMode(_context, blockMode);
     NativeCalls.SetInputFile(_context, from);
     NativeCalls.SetOutputFile(_context, to);
 }
Example #2
0
 /// <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);
 }
Example #3
0
 /// <summary>
 /// Creates a new ASTC context.
 /// </summary>
 public ASTCContext()
 {
     _context = NativeCalls.CreateContext();
 }
Example #4
0
 /// <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);
 }
Example #5
0
 /// <summary>
 /// Set the number of threads to use.
 /// </summary>
 /// <param name="threads"></param>
 public void SetThreadCount(int threads)
 {
     NativeCalls.SetThreadCount(_context, threads);
 }