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