Remove old projects.
@ -1 +0,0 @@
|
|||||||
Most of the development is done on VC12, the remaining projects are often out of date.
|
|
@ -1,534 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Security;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
namespace Nvidia.TextureTools
|
|
||||||
{
|
|
||||||
#region Enums
|
|
||||||
|
|
||||||
#region public enum Format
|
|
||||||
/// <summary>
|
|
||||||
/// Compression format.
|
|
||||||
/// </summary>
|
|
||||||
public enum Format
|
|
||||||
{
|
|
||||||
// No compression.
|
|
||||||
RGB,
|
|
||||||
RGBA = RGB,
|
|
||||||
|
|
||||||
// DX9 formats.
|
|
||||||
DXT1,
|
|
||||||
DXT1a,
|
|
||||||
DXT3,
|
|
||||||
DXT5,
|
|
||||||
DXT5n,
|
|
||||||
|
|
||||||
// DX10 formats.
|
|
||||||
BC1 = DXT1,
|
|
||||||
BC1a = DXT1a,
|
|
||||||
BC2 = DXT3,
|
|
||||||
BC3 = DXT5,
|
|
||||||
BC3n = DXT5n,
|
|
||||||
BC4,
|
|
||||||
BC5,
|
|
||||||
|
|
||||||
DXT1n, // Not supported on CPU yet.
|
|
||||||
CTX1, // Not supported on CPU yet.
|
|
||||||
|
|
||||||
BC6,
|
|
||||||
BC7, // Not supported yet.
|
|
||||||
|
|
||||||
DXT1_Luma,
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region public enum Quality
|
|
||||||
/// <summary>
|
|
||||||
/// Quality modes.
|
|
||||||
/// </summary>
|
|
||||||
public enum Quality
|
|
||||||
{
|
|
||||||
Fastest,
|
|
||||||
Normal,
|
|
||||||
Production,
|
|
||||||
Highest,
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region public enum WrapMode
|
|
||||||
/// <summary>
|
|
||||||
/// Wrap modes.
|
|
||||||
/// </summary>
|
|
||||||
public enum WrapMode
|
|
||||||
{
|
|
||||||
Clamp,
|
|
||||||
Repeat,
|
|
||||||
Mirror,
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region public enum TextureType
|
|
||||||
/// <summary>
|
|
||||||
/// Texture types.
|
|
||||||
/// </summary>
|
|
||||||
public enum TextureType
|
|
||||||
{
|
|
||||||
Texture2D,
|
|
||||||
TextureCube,
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region public enum InputFormat
|
|
||||||
/// <summary>
|
|
||||||
/// Input formats.
|
|
||||||
/// </summary>
|
|
||||||
public enum InputFormat
|
|
||||||
{
|
|
||||||
BGRA_8UB
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region public enum MipmapFilter
|
|
||||||
/// <summary>
|
|
||||||
/// Mipmap downsampling filters.
|
|
||||||
/// </summary>
|
|
||||||
public enum MipmapFilter
|
|
||||||
{
|
|
||||||
Box,
|
|
||||||
Triangle,
|
|
||||||
Kaiser
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region public enum ColorTransform
|
|
||||||
/// <summary>
|
|
||||||
/// Color transformation.
|
|
||||||
/// </summary>
|
|
||||||
public enum ColorTransform
|
|
||||||
{
|
|
||||||
None,
|
|
||||||
Linear
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region public enum RoundMode
|
|
||||||
/// <summary>
|
|
||||||
/// Extents rounding mode.
|
|
||||||
/// </summary>
|
|
||||||
public enum RoundMode
|
|
||||||
{
|
|
||||||
None,
|
|
||||||
ToNextPowerOfTwo,
|
|
||||||
ToNearestPowerOfTwo,
|
|
||||||
ToPreviousPowerOfTwo
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region public enum AlphaMode
|
|
||||||
/// <summary>
|
|
||||||
/// Alpha mode.
|
|
||||||
/// </summary>
|
|
||||||
public enum AlphaMode
|
|
||||||
{
|
|
||||||
None,
|
|
||||||
Transparency,
|
|
||||||
Premultiplied
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region public enum Error
|
|
||||||
/// <summary>
|
|
||||||
/// Error codes.
|
|
||||||
/// </summary>
|
|
||||||
public enum Error
|
|
||||||
{
|
|
||||||
InvalidInput,
|
|
||||||
UserInterruption,
|
|
||||||
UnsupportedFeature,
|
|
||||||
CudaError,
|
|
||||||
Unknown,
|
|
||||||
FileOpen,
|
|
||||||
FileWrite,
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region public class InputOptions
|
|
||||||
/// <summary>
|
|
||||||
/// Input options.
|
|
||||||
/// </summary>
|
|
||||||
public class InputOptions
|
|
||||||
{
|
|
||||||
#region Bindings
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static IntPtr nvttCreateInputOptions();
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttDestroyInputOptions(IntPtr inputOptions);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetInputOptionsTextureLayout(IntPtr inputOptions, TextureType type, int w, int h, int d);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttResetInputOptionsTextureLayout(IntPtr inputOptions);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static bool nvttSetInputOptionsMipmapData(IntPtr inputOptions, IntPtr data, int w, int h, int d, int face, int mipmap);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetInputOptionsFormat(IntPtr inputOptions, InputFormat format);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetInputOptionsAlphaMode(IntPtr inputOptions, AlphaMode alphaMode);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetInputOptionsGamma(IntPtr inputOptions, float inputGamma, float outputGamma);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetInputOptionsWrapMode(IntPtr inputOptions, WrapMode mode);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetInputOptionsMipmapFilter(IntPtr inputOptions, MipmapFilter filter);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetInputOptionsMipmapGeneration(IntPtr inputOptions, bool generateMipmaps, int maxLevel);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetInputOptionsKaiserParameters(IntPtr inputOptions, float width, float alpha, float stretch);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetInputOptionsNormalMap(IntPtr inputOptions, bool b);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetInputOptionsConvertToNormalMap(IntPtr inputOptions, bool convert);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetInputOptionsHeightEvaluation(IntPtr inputOptions, float redScale, float greenScale, float blueScale, float alphaScale);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetInputOptionsNormalFilter(IntPtr inputOptions, float small, float medium, float big, float large);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetInputOptionsNormalizeMipmaps(IntPtr inputOptions, bool b);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetInputOptionsColorTransform(IntPtr inputOptions, ColorTransform t);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetInputOptionsLinearTransfrom(IntPtr inputOptions, int channel, float w0, float w1, float w2, float w3);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetInputOptionsMaxExtents(IntPtr inputOptions, int d);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetInputOptionsRoundMode(IntPtr inputOptions, RoundMode mode);
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
internal IntPtr options;
|
|
||||||
|
|
||||||
public InputOptions()
|
|
||||||
{
|
|
||||||
options = nvttCreateInputOptions();
|
|
||||||
}
|
|
||||||
~InputOptions()
|
|
||||||
{
|
|
||||||
nvttDestroyInputOptions(options);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetTextureLayout(TextureType type, int w, int h, int d)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsTextureLayout(options, type, w, h, d);
|
|
||||||
}
|
|
||||||
public void ResetTextureLayout()
|
|
||||||
{
|
|
||||||
nvttResetInputOptionsTextureLayout(options);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetMipmapData(IntPtr data, int width, int height, int depth, int face, int mipmap)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsMipmapData(options, data, width, height, depth, face, mipmap);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetFormat(InputFormat format)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsFormat(options, format);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetAlphaMode(AlphaMode alphaMode)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsAlphaMode(options, alphaMode);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetGamma(float inputGamma, float outputGamma)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsGamma(options, inputGamma, outputGamma);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetWrapMode(WrapMode wrapMode)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsWrapMode(options, wrapMode);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetMipmapFilter(MipmapFilter filter)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsMipmapFilter(options, filter);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetMipmapGeneration(bool enabled)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsMipmapGeneration(options, enabled, -1);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetMipmapGeneration(bool enabled, int maxLevel)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsMipmapGeneration(options, enabled, maxLevel);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetKaiserParameters(float width, float alpha, float stretch)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsKaiserParameters(options, width, alpha, stretch);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetNormalMap(bool b)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsNormalMap(options, b);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetConvertToNormalMap(bool convert)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsConvertToNormalMap(options, convert);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetHeightEvaluation(float redScale, float greenScale, float blueScale, float alphaScale)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsHeightEvaluation(options, redScale, greenScale, blueScale, alphaScale);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetNormalFilter(float small, float medium, float big, float large)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsNormalFilter(options, small, medium, big, large);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetNormalizeMipmaps(bool b)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsNormalizeMipmaps(options, b);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetColorTransform(ColorTransform t)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsColorTransform(options, t);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetLinearTransfrom(int channel, float w0, float w1, float w2, float w3)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsLinearTransfrom(options, channel, w0, w1, w2, w3);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetMaxExtents(int dim)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsMaxExtents(options, dim);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetRoundMode(RoundMode mode)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsRoundMode(options, mode);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region public class CompressionOptions
|
|
||||||
/// <summary>
|
|
||||||
/// Compression options.
|
|
||||||
/// </summary>
|
|
||||||
public class CompressionOptions
|
|
||||||
{
|
|
||||||
#region Bindings
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static IntPtr nvttCreateCompressionOptions();
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttDestroyCompressionOptions(IntPtr compressionOptions);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetCompressionOptionsFormat(IntPtr compressionOptions, Format format);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetCompressionOptionsQuality(IntPtr compressionOptions, Quality quality);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetCompressionOptionsColorWeights(IntPtr compressionOptions, float red, float green, float blue, float alpha);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetCompressionOptionsPixelFormat(IntPtr compressionOptions, uint bitcount, uint rmask, uint gmask, uint bmask, uint amask);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetCompressionOptionsQuantization(IntPtr compressionOptions, bool colorDithering, bool alphaDithering, bool binaryAlpha, int alphaThreshold);
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
internal IntPtr options;
|
|
||||||
|
|
||||||
public CompressionOptions()
|
|
||||||
{
|
|
||||||
options = nvttCreateCompressionOptions();
|
|
||||||
}
|
|
||||||
~CompressionOptions()
|
|
||||||
{
|
|
||||||
nvttDestroyCompressionOptions(options);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetFormat(Format format)
|
|
||||||
{
|
|
||||||
nvttSetCompressionOptionsFormat(options, format);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetQuality(Quality quality)
|
|
||||||
{
|
|
||||||
nvttSetCompressionOptionsQuality(options, quality);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetColorWeights(float red, float green, float blue)
|
|
||||||
{
|
|
||||||
nvttSetCompressionOptionsColorWeights(options, red, green, blue, 1.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetColorWeights(float red, float green, float blue, float alpha)
|
|
||||||
{
|
|
||||||
nvttSetCompressionOptionsColorWeights(options, red, green, blue, alpha);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetPixelFormat(uint bitcount, uint rmask, uint gmask, uint bmask, uint amask)
|
|
||||||
{
|
|
||||||
nvttSetCompressionOptionsPixelFormat(options, bitcount, rmask, gmask, bmask, amask);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetQuantization(bool colorDithering, bool alphaDithering, bool binaryAlpha)
|
|
||||||
{
|
|
||||||
nvttSetCompressionOptionsQuantization(options, colorDithering, alphaDithering, binaryAlpha, 127);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetQuantization(bool colorDithering, bool alphaDithering, bool binaryAlpha, int alphaThreshold)
|
|
||||||
{
|
|
||||||
nvttSetCompressionOptionsQuantization(options, colorDithering, alphaDithering, binaryAlpha, alphaThreshold);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region public class OutputOptions
|
|
||||||
/// <summary>
|
|
||||||
/// Output options.
|
|
||||||
/// </summary>
|
|
||||||
public class OutputOptions
|
|
||||||
{
|
|
||||||
#region Delegates
|
|
||||||
public delegate void ErrorHandler(Error error);
|
|
||||||
private delegate void WriteDataDelegate(IntPtr data, int size);
|
|
||||||
private delegate void ImageDelegate(int size, int width, int height, int depth, int face, int miplevel);
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region Bindings
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static IntPtr nvttCreateOutputOptions();
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttDestroyOutputOptions(IntPtr outputOptions);
|
|
||||||
|
|
||||||
[DllImport("nvtt", CharSet = CharSet.Ansi), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetOutputOptionsFileName(IntPtr outputOptions, string fileName);
|
|
||||||
|
|
||||||
//[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
//private extern static void nvttSetOutputOptionsErrorHandler(IntPtr outputOptions, ErrorHandler errorHandler);
|
|
||||||
|
|
||||||
private void ErrorCallback(Error error)
|
|
||||||
{
|
|
||||||
if (Error != null) Error(error);
|
|
||||||
}
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetOutputOptionsOutputHeader(IntPtr outputOptions, bool b);
|
|
||||||
|
|
||||||
//[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
//private extern static void nvttSetOutputOptionsOutputHandler(IntPtr outputOptions, WriteDataDelegate writeData, ImageDelegate image);
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
internal IntPtr options;
|
|
||||||
|
|
||||||
public OutputOptions()
|
|
||||||
{
|
|
||||||
options = nvttCreateOutputOptions();
|
|
||||||
//nvttSetOutputOptionsErrorHandler(options, new ErrorHandler(ErrorCallback));
|
|
||||||
}
|
|
||||||
~OutputOptions()
|
|
||||||
{
|
|
||||||
nvttDestroyOutputOptions(options);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetFileName(string fileName)
|
|
||||||
{
|
|
||||||
nvttSetOutputOptionsFileName(options, fileName);
|
|
||||||
}
|
|
||||||
|
|
||||||
public event ErrorHandler Error;
|
|
||||||
|
|
||||||
public void SetOutputHeader(bool b)
|
|
||||||
{
|
|
||||||
nvttSetOutputOptionsOutputHeader(options, b);
|
|
||||||
}
|
|
||||||
|
|
||||||
// @@ Add OutputHandler interface.
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region public static class Compressor
|
|
||||||
public class Compressor
|
|
||||||
{
|
|
||||||
#region Bindings
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static IntPtr nvttCreateCompressor();
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttDestroyCompressor(IntPtr compressor);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static bool nvttCompress(IntPtr compressor, IntPtr inputOptions, IntPtr compressionOptions, IntPtr outputOptions);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static int nvttEstimateSize(IntPtr compressor, IntPtr inputOptions, IntPtr compressionOptions);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private static extern IntPtr nvttErrorString(Error error);
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
internal IntPtr compressor;
|
|
||||||
|
|
||||||
public Compressor()
|
|
||||||
{
|
|
||||||
compressor = nvttCreateCompressor();
|
|
||||||
}
|
|
||||||
|
|
||||||
~Compressor()
|
|
||||||
{
|
|
||||||
nvttDestroyCompressor(compressor);
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Compress(InputOptions input, CompressionOptions compression, OutputOptions output)
|
|
||||||
{
|
|
||||||
return nvttCompress(compressor, input.options, compression.options, output.options);
|
|
||||||
}
|
|
||||||
|
|
||||||
public int EstimateSize(InputOptions input, CompressionOptions compression)
|
|
||||||
{
|
|
||||||
return nvttEstimateSize(compressor, input.options, compression.options);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string ErrorString(Error error)
|
|
||||||
{
|
|
||||||
return Marshal.PtrToStringAnsi(nvttErrorString(error));
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
} // Nvidia.TextureTools namespace
|
|
@ -1,105 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<VSPerformanceSession Version="1.00">
|
|
||||||
<Options>
|
|
||||||
<Solution>C:\nvtt\project\vc10\nvtt.sln</Solution>
|
|
||||||
<CollectionMethod>Sampling</CollectionMethod>
|
|
||||||
<AllocationMethod>None</AllocationMethod>
|
|
||||||
<LaunchRuntimeControl>true</LaunchRuntimeControl>
|
|
||||||
<AddReport>true</AddReport>
|
|
||||||
<ResourceBasedAnalysisSelected>false</ResourceBasedAnalysisSelected>
|
|
||||||
<ThreadBasedAnalysisSelected>false</ThreadBasedAnalysisSelected>
|
|
||||||
<UniqueReport>Timestamp</UniqueReport>
|
|
||||||
<SamplingMethod>Cycles</SamplingMethod>
|
|
||||||
<CycleCount>10000000</CycleCount>
|
|
||||||
<PageFaultCount>10</PageFaultCount>
|
|
||||||
<SysCallCount>10</SysCallCount>
|
|
||||||
<SamplingCounter Name="" ReloadValue="00000000000f4240" DisplayName="" />
|
|
||||||
<RelocateBinaries>false</RelocateBinaries>
|
|
||||||
<CollectOnHpcCluster>false</CollectOnHpcCluster>
|
|
||||||
<HPCSettings>
|
|
||||||
<NumberOfProcesses>0</NumberOfProcesses>
|
|
||||||
<TargetSelection>UnknownDisabled</TargetSelection>
|
|
||||||
<ProfileOnRank>0</ProfileOnRank>
|
|
||||||
<AdvancedProperties>
|
|
||||||
<Project>nvcompress</Project>
|
|
||||||
<CleanUp>true</CleanUp>
|
|
||||||
<MpiexecCommand>mpiexec.exe</MpiexecCommand>
|
|
||||||
<DeployCRT>true</DeployCRT>
|
|
||||||
</AdvancedProperties>
|
|
||||||
</HPCSettings>
|
|
||||||
<HardwareCounters EnableHWCounters="false" />
|
|
||||||
<EtwSettings />
|
|
||||||
<PdhSettings>
|
|
||||||
<PdhCountersEnabled>false</PdhCountersEnabled>
|
|
||||||
<PdhCountersRate>500</PdhCountersRate>
|
|
||||||
<PdhCounters>
|
|
||||||
<PdhCounter>\Memory\Pages/sec</PdhCounter>
|
|
||||||
<PdhCounter>\PhysicalDisk(_Total)\Avg. Disk Queue Length</PdhCounter>
|
|
||||||
<PdhCounter>\Processor(_Total)\% Processor Time</PdhCounter>
|
|
||||||
</PdhCounters>
|
|
||||||
</PdhSettings>
|
|
||||||
</Options>
|
|
||||||
<ExcludeSmallFuncs>true</ExcludeSmallFuncs>
|
|
||||||
<JScriptProfilingEnabled>false</JScriptProfilingEnabled>
|
|
||||||
<PreinstrumentEvent>
|
|
||||||
<InstrEventExclude>false</InstrEventExclude>
|
|
||||||
</PreinstrumentEvent>
|
|
||||||
<PostinstrumentEvent>
|
|
||||||
<InstrEventExclude>false</InstrEventExclude>
|
|
||||||
</PostinstrumentEvent>
|
|
||||||
<Binaries>
|
|
||||||
<ProjBinary>
|
|
||||||
<Path>C:\nvtt\project\vc10\Release.x64\bin\nvcompress.exe</Path>
|
|
||||||
<ArgumentTimestamp>01/01/0001 00:00:00</ArgumentTimestamp>
|
|
||||||
<Instrument>true</Instrument>
|
|
||||||
<Sample>true</Sample>
|
|
||||||
<ExternalWebsite>false</ExternalWebsite>
|
|
||||||
<InteractionProfilingEnabled>false</InteractionProfilingEnabled>
|
|
||||||
<IsLocalJavascript>false</IsLocalJavascript>
|
|
||||||
<LaunchProject>true</LaunchProject>
|
|
||||||
<OverrideProjectSettings>false</OverrideProjectSettings>
|
|
||||||
<LaunchMethod>Executable</LaunchMethod>
|
|
||||||
<ExecutablePath>C:\nvtt\project\vc10\\Release.x64\bin\nvcompress.exe</ExecutablePath>
|
|
||||||
<StartupDirectory>C:\nvtt\project\vc10\nvcompress\</StartupDirectory>
|
|
||||||
<Arguments>-bc6 -nomips C:\nvtt\data\testsuite\kodak\kodim01.png C:\nvtt\data\testsuite\kodak\kodim01_bc6.dds</Arguments>
|
|
||||||
<NetAppHost>IIS</NetAppHost>
|
|
||||||
<NetBrowser>InternetExplorer</NetBrowser>
|
|
||||||
<ExcludeSmallFuncs>true</ExcludeSmallFuncs>
|
|
||||||
<JScriptProfilingEnabled>false</JScriptProfilingEnabled>
|
|
||||||
<PreinstrumentEvent>
|
|
||||||
<InstrEventExclude>false</InstrEventExclude>
|
|
||||||
</PreinstrumentEvent>
|
|
||||||
<PostinstrumentEvent>
|
|
||||||
<InstrEventExclude>false</InstrEventExclude>
|
|
||||||
</PostinstrumentEvent>
|
|
||||||
<ProjRef>{88079E38-83AA-4E8A-B18A-66A78D1B058B}|nvcompress\nvcompress.vcxproj</ProjRef>
|
|
||||||
<ProjPath>C:\nvtt\project\vc10\nvcompress\nvcompress.vcxproj</ProjPath>
|
|
||||||
<ProjName>nvcompress</ProjName>
|
|
||||||
</ProjBinary>
|
|
||||||
</Binaries>
|
|
||||||
<Reports>
|
|
||||||
<Report>
|
|
||||||
<Path>C:\nvtt\project\vc10\bc6-01-eigen-solver.vsp</Path>
|
|
||||||
</Report>
|
|
||||||
<Report>
|
|
||||||
<Path>C:\nvtt\project\vc10\bc6-02-no-double.vsp</Path>
|
|
||||||
</Report>
|
|
||||||
</Reports>
|
|
||||||
<Launches>
|
|
||||||
<ProjBinary>
|
|
||||||
<Path>:PB:{88079E38-83AA-4E8A-B18A-66A78D1B058B}|nvcompress\nvcompress.vcxproj</Path>
|
|
||||||
</ProjBinary>
|
|
||||||
</Launches>
|
|
||||||
<RuntimeMarks>
|
|
||||||
<MarkName>Mark One</MarkName>
|
|
||||||
<MarkName>Mark Two</MarkName>
|
|
||||||
<MarkName>Mark Three</MarkName>
|
|
||||||
<MarkName>Mark Four</MarkName>
|
|
||||||
<MarkName>Mark Five</MarkName>
|
|
||||||
<MarkName>Mark Six</MarkName>
|
|
||||||
<MarkName>Mark Seven</MarkName>
|
|
||||||
<MarkName>Mark Eight</MarkName>
|
|
||||||
<MarkName>Mark Nine</MarkName>
|
|
||||||
<MarkName>Mark Ten</MarkName>
|
|
||||||
</RuntimeMarks>
|
|
||||||
</VSPerformanceSession>
|
|
@ -1,40 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<ItemGroup>
|
|
||||||
<Filter Include="Source Files">
|
|
||||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
|
||||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="Header Files">
|
|
||||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
|
||||||
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="Resource Files">
|
|
||||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
|
||||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav</Extensions>
|
|
||||||
</Filter>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\tools\assemble.cpp">
|
|
||||||
<Filter>Source Files</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\tools\cmdline.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="resource.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ResourceCompile Include="nvassemble.rc">
|
|
||||||
<Filter>Resource Files</Filter>
|
|
||||||
</ResourceCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="nvidia.ico">
|
|
||||||
<Filter>Resource Files</Filter>
|
|
||||||
</None>
|
|
||||||
</ItemGroup>
|
|
||||||
</Project>
|
|
Before Width: | Height: | Size: 15 KiB |
@ -1,16 +0,0 @@
|
|||||||
//{{NO_DEPENDENCIES}}
|
|
||||||
// Microsoft Visual C++ generated include file.
|
|
||||||
// Used by nvcompress.rc
|
|
||||||
//
|
|
||||||
#define IDI_ICON1 101
|
|
||||||
|
|
||||||
// Next default values for new objects
|
|
||||||
//
|
|
||||||
#ifdef APSTUDIO_INVOKED
|
|
||||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
|
||||||
#define _APS_NEXT_RESOURCE_VALUE 102
|
|
||||||
#define _APS_NEXT_COMMAND_VALUE 40001
|
|
||||||
#define _APS_NEXT_CONTROL_VALUE 1000
|
|
||||||
#define _APS_NEXT_SYMED_VALUE 101
|
|
||||||
#endif
|
|
||||||
#endif
|
|
@ -1,40 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<ItemGroup>
|
|
||||||
<Filter Include="Source Files">
|
|
||||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
|
||||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="Header Files">
|
|
||||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
|
||||||
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="Resource Files">
|
|
||||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
|
||||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav</Extensions>
|
|
||||||
</Filter>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\tools\compress.cpp">
|
|
||||||
<Filter>Source Files</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\tools\cmdline.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="resource.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ResourceCompile Include="nvcompress.rc">
|
|
||||||
<Filter>Resource Files</Filter>
|
|
||||||
</ResourceCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="nvidia.ico">
|
|
||||||
<Filter>Resource Files</Filter>
|
|
||||||
</None>
|
|
||||||
</ItemGroup>
|
|
||||||
</Project>
|
|
Before Width: | Height: | Size: 15 KiB |
@ -1,16 +0,0 @@
|
|||||||
//{{NO_DEPENDENCIES}}
|
|
||||||
// Microsoft Visual C++ generated include file.
|
|
||||||
// Used by nvcompress.rc
|
|
||||||
//
|
|
||||||
#define IDI_ICON1 101
|
|
||||||
|
|
||||||
// Next default values for new objects
|
|
||||||
//
|
|
||||||
#ifdef APSTUDIO_INVOKED
|
|
||||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
|
||||||
#define _APS_NEXT_RESOURCE_VALUE 102
|
|
||||||
#define _APS_NEXT_COMMAND_VALUE 40001
|
|
||||||
#define _APS_NEXT_CONTROL_VALUE 1000
|
|
||||||
#define _APS_NEXT_SYMED_VALUE 101
|
|
||||||
#endif
|
|
||||||
#endif
|
|
@ -1,22 +0,0 @@
|
|||||||
#ifndef NV_CONFIG
|
|
||||||
#define NV_CONFIG
|
|
||||||
|
|
||||||
//#cmakedefine HAVE_UNISTD_H
|
|
||||||
#define HAVE_STDARG_H
|
|
||||||
//#cmakedefine HAVE_SIGNAL_H
|
|
||||||
//#cmakedefine HAVE_EXECINFO_H
|
|
||||||
#define HAVE_MALLOC_H
|
|
||||||
|
|
||||||
#if defined(_OPENMP)
|
|
||||||
#define HAVE_OPENMP
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define HAVE_STBIMAGE
|
|
||||||
/*#if !defined(_M_X64)
|
|
||||||
//#define HAVE_FREEIMAGE
|
|
||||||
#define HAVE_PNG
|
|
||||||
#define HAVE_JPEG
|
|
||||||
#define HAVE_TIFF
|
|
||||||
#endif*/
|
|
||||||
|
|
||||||
#endif // NV_CONFIG
|
|
@ -1,40 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<ItemGroup>
|
|
||||||
<Filter Include="Source Files">
|
|
||||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
|
||||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="Header Files">
|
|
||||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
|
||||||
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="Resource Files">
|
|
||||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
|
||||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav</Extensions>
|
|
||||||
</Filter>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\tools\ddsinfo.cpp">
|
|
||||||
<Filter>Source Files</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\tools\cmdline.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="resource.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ResourceCompile Include="nvddsinfo.rc">
|
|
||||||
<Filter>Resource Files</Filter>
|
|
||||||
</ResourceCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="nvidia.ico">
|
|
||||||
<Filter>Resource Files</Filter>
|
|
||||||
</None>
|
|
||||||
</ItemGroup>
|
|
||||||
</Project>
|
|
Before Width: | Height: | Size: 15 KiB |
@ -1,16 +0,0 @@
|
|||||||
//{{NO_DEPENDENCIES}}
|
|
||||||
// Microsoft Visual C++ generated include file.
|
|
||||||
// Used by nvcompress.rc
|
|
||||||
//
|
|
||||||
#define IDI_ICON1 101
|
|
||||||
|
|
||||||
// Next default values for new objects
|
|
||||||
//
|
|
||||||
#ifdef APSTUDIO_INVOKED
|
|
||||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
|
||||||
#define _APS_NEXT_RESOURCE_VALUE 102
|
|
||||||
#define _APS_NEXT_COMMAND_VALUE 40001
|
|
||||||
#define _APS_NEXT_CONTROL_VALUE 1000
|
|
||||||
#define _APS_NEXT_SYMED_VALUE 101
|
|
||||||
#endif
|
|
||||||
#endif
|
|
@ -1,40 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<ItemGroup>
|
|
||||||
<Filter Include="Source Files">
|
|
||||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
|
||||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="Header Files">
|
|
||||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
|
||||||
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="Resource Files">
|
|
||||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
|
||||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav</Extensions>
|
|
||||||
</Filter>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\tools\decompress.cpp">
|
|
||||||
<Filter>Source Files</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\tools\cmdline.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="resource.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ResourceCompile Include="nvdecompress.rc">
|
|
||||||
<Filter>Resource Files</Filter>
|
|
||||||
</ResourceCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="nvidia.ico">
|
|
||||||
<Filter>Resource Files</Filter>
|
|
||||||
</None>
|
|
||||||
</ItemGroup>
|
|
||||||
</Project>
|
|
Before Width: | Height: | Size: 15 KiB |
@ -1,16 +0,0 @@
|
|||||||
//{{NO_DEPENDENCIES}}
|
|
||||||
// Microsoft Visual C++ generated include file.
|
|
||||||
// Used by nvcompress.rc
|
|
||||||
//
|
|
||||||
#define IDI_ICON1 101
|
|
||||||
|
|
||||||
// Next default values for new objects
|
|
||||||
//
|
|
||||||
#ifdef APSTUDIO_INVOKED
|
|
||||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
|
||||||
#define _APS_NEXT_RESOURCE_VALUE 102
|
|
||||||
#define _APS_NEXT_COMMAND_VALUE 40001
|
|
||||||
#define _APS_NEXT_CONTROL_VALUE 1000
|
|
||||||
#define _APS_NEXT_SYMED_VALUE 101
|
|
||||||
#endif
|
|
||||||
#endif
|
|
Before Width: | Height: | Size: 15 KiB |
@ -1,40 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<ItemGroup>
|
|
||||||
<Filter Include="Source Files">
|
|
||||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
|
||||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="Header Files">
|
|
||||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
|
||||||
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="Resource Files">
|
|
||||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
|
||||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav</Extensions>
|
|
||||||
</Filter>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\tools\imgdiff.cpp">
|
|
||||||
<Filter>Source Files</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\tools\cmdline.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="resource.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="nvidia.ico">
|
|
||||||
<Filter>Resource Files</Filter>
|
|
||||||
</None>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ResourceCompile Include="nvimgdiff.rc">
|
|
||||||
<Filter>Resource Files</Filter>
|
|
||||||
</ResourceCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
</Project>
|
|
@ -1,16 +0,0 @@
|
|||||||
//{{NO_DEPENDENCIES}}
|
|
||||||
// Microsoft Visual C++ generated include file.
|
|
||||||
// Used by nvcompress.rc
|
|
||||||
//
|
|
||||||
#define IDI_ICON1 101
|
|
||||||
|
|
||||||
// Next default values for new objects
|
|
||||||
//
|
|
||||||
#ifdef APSTUDIO_INVOKED
|
|
||||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
|
||||||
#define _APS_NEXT_RESOURCE_VALUE 102
|
|
||||||
#define _APS_NEXT_COMMAND_VALUE 40001
|
|
||||||
#define _APS_NEXT_CONTROL_VALUE 1000
|
|
||||||
#define _APS_NEXT_SYMED_VALUE 101
|
|
||||||
#endif
|
|
||||||
#endif
|
|
@ -1,21 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<ItemGroup>
|
|
||||||
<ClInclude Include="..\..\..\src\nvthread\Atomic.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvthread\Event.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvthread\Mutex.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvthread\nvthread.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvthread\Thread.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvthread\ThreadPool.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvthread\Win32.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvthread\ParallelFor.h" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClCompile Include="..\..\..\src\nvthread\Event.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvthread\Mutex.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvthread\nvthread.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvthread\Thread.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvthread\ThreadPool.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvthread\ParallelFor.cpp" />
|
|
||||||
</ItemGroup>
|
|
||||||
</Project>
|
|
@ -1,9 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<ImportGroup Label="PropertySheets" />
|
|
||||||
<PropertyGroup Label="UserMacros">
|
|
||||||
<SrcDir>$(SolutionDir)..\..\src</SrcDir>
|
|
||||||
<ExternDir>$(SolutionDir)..\..\extern</ExternDir>
|
|
||||||
<GnuWinDir>$(ExternDir)\gnuwin32</GnuWinDir>
|
|
||||||
</PropertyGroup>
|
|
||||||
</Project>
|
|
@ -1,102 +0,0 @@
|
|||||||
// Microsoft Visual C++ generated resource script.
|
|
||||||
//
|
|
||||||
#include "resource.h"
|
|
||||||
|
|
||||||
#define APSTUDIO_READONLY_SYMBOLS
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
//
|
|
||||||
// Generated from the TEXTINCLUDE 2 resource.
|
|
||||||
//
|
|
||||||
#include "afxres.h"
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
#undef APSTUDIO_READONLY_SYMBOLS
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// English (U.S.) resources
|
|
||||||
|
|
||||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
|
||||||
#ifdef _WIN32
|
|
||||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
|
||||||
#pragma code_page(1252)
|
|
||||||
#endif //_WIN32
|
|
||||||
|
|
||||||
#ifdef APSTUDIO_INVOKED
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
//
|
|
||||||
// TEXTINCLUDE
|
|
||||||
//
|
|
||||||
|
|
||||||
1 TEXTINCLUDE
|
|
||||||
BEGIN
|
|
||||||
"resource.h\0"
|
|
||||||
END
|
|
||||||
|
|
||||||
2 TEXTINCLUDE
|
|
||||||
BEGIN
|
|
||||||
"#include ""afxres.h""\r\n"
|
|
||||||
"\0"
|
|
||||||
END
|
|
||||||
|
|
||||||
3 TEXTINCLUDE
|
|
||||||
BEGIN
|
|
||||||
"\r\n"
|
|
||||||
"\0"
|
|
||||||
END
|
|
||||||
|
|
||||||
#endif // APSTUDIO_INVOKED
|
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
//
|
|
||||||
// Version
|
|
||||||
//
|
|
||||||
|
|
||||||
VS_VERSION_INFO VERSIONINFO
|
|
||||||
FILEVERSION 2,1,0,0
|
|
||||||
PRODUCTVERSION 2,1,0,0
|
|
||||||
FILEFLAGSMASK 0x17L
|
|
||||||
#ifdef _DEBUG
|
|
||||||
FILEFLAGS 0x1L
|
|
||||||
#else
|
|
||||||
FILEFLAGS 0x0L
|
|
||||||
#endif
|
|
||||||
FILEOS 0x4L
|
|
||||||
FILETYPE 0x2L
|
|
||||||
FILESUBTYPE 0x0L
|
|
||||||
BEGIN
|
|
||||||
BLOCK "StringFileInfo"
|
|
||||||
BEGIN
|
|
||||||
BLOCK "040904b0"
|
|
||||||
BEGIN
|
|
||||||
VALUE "CompanyName", "NVIDIA Corporation"
|
|
||||||
VALUE "FileDescription", "NVIDIA Texture Tools Dynamic Link Library"
|
|
||||||
VALUE "FileVersion", "2, 1, 0, 0"
|
|
||||||
VALUE "InternalName", "nvtt"
|
|
||||||
VALUE "LegalCopyright", "Copyright (C) 2007"
|
|
||||||
VALUE "OriginalFilename", "nvtt.dll"
|
|
||||||
VALUE "ProductName", "NVIDIA Texture Tools Dynamic Link Library"
|
|
||||||
VALUE "ProductVersion", "2, 1, 0, 0"
|
|
||||||
END
|
|
||||||
END
|
|
||||||
BLOCK "VarFileInfo"
|
|
||||||
BEGIN
|
|
||||||
VALUE "Translation", 0x409, 1200
|
|
||||||
END
|
|
||||||
END
|
|
||||||
|
|
||||||
#endif // English (U.S.) resources
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef APSTUDIO_INVOKED
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
//
|
|
||||||
// Generated from the TEXTINCLUDE 3 resource.
|
|
||||||
//
|
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
#endif // not APSTUDIO_INVOKED
|
|
||||||
|
|
@ -1,86 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<ItemGroup>
|
|
||||||
<Filter Include="Resource Files">
|
|
||||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
|
||||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav</Extensions>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="cuda">
|
|
||||||
<UniqueIdentifier>{18fa5da9-6ed8-4990-880e-ab4234fe2114}</UniqueIdentifier>
|
|
||||||
</Filter>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ResourceCompile Include="nvtt.rc">
|
|
||||||
<Filter>Resource Files</Filter>
|
|
||||||
</ResourceCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClInclude Include="resource.h">
|
|
||||||
<Filter>Resource Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\cuda\CudaCompressorDXT.h">
|
|
||||||
<Filter>cuda</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\cuda\CudaMath.h">
|
|
||||||
<Filter>cuda</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\cuda\CudaUtils.h">
|
|
||||||
<Filter>cuda</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\ClusterFit.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\CompressionOptions.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\Compressor.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\CompressorDX10.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\CompressorDX9.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\CompressorRGB.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\Context.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\InputOptions.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\nvtt.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\nvtt_wrapper.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\OptimalCompressDXT.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\OutputOptions.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\QuickCompressDXT.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\TaskDispatcher.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\CubeSurface.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\Surface.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\BlockCompressor.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\SingleColorLookup.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\CompressorDX11.h" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\cuda\CudaCompressorDXT.cpp">
|
|
||||||
<Filter>cuda</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\cuda\CudaUtils.cpp">
|
|
||||||
<Filter>cuda</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\ClusterFit.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\CompressionOptions.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\CompressorDX10.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\CompressorDX11.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\CompressorDX9.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\CompressorRGB.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\Context.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\InputOptions.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\nvtt.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\nvtt_wrapper.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\OptimalCompressDXT.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\OutputOptions.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\QuickCompressDXT.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\SingleColorLookup.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\CubeSurface.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\Surface.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\BlockCompressor.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\TaskDispatcher.cpp" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<CustomBuildStep Include="..\..\..\src\nvtt\cuda\ConvolveKernel.cu">
|
|
||||||
<Filter>cuda</Filter>
|
|
||||||
</CustomBuildStep>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<CudaCompile Include="..\..\..\src\nvtt\cuda\CompressKernel.cu">
|
|
||||||
<Filter>cuda</Filter>
|
|
||||||
</CudaCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
</Project>
|
|
@ -1,14 +0,0 @@
|
|||||||
//{{NO_DEPENDENCIES}}
|
|
||||||
// Microsoft Visual C++ generated include file.
|
|
||||||
// Used by nvtt.rc
|
|
||||||
|
|
||||||
// Next default values for new objects
|
|
||||||
//
|
|
||||||
#ifdef APSTUDIO_INVOKED
|
|
||||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
|
||||||
#define _APS_NEXT_RESOURCE_VALUE 101
|
|
||||||
#define _APS_NEXT_COMMAND_VALUE 40001
|
|
||||||
#define _APS_NEXT_CONTROL_VALUE 1001
|
|
||||||
#define _APS_NEXT_SYMED_VALUE 101
|
|
||||||
#endif
|
|
||||||
#endif
|
|
Before Width: | Height: | Size: 15 KiB |
@ -1,40 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<ItemGroup>
|
|
||||||
<Filter Include="Source Files">
|
|
||||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
|
||||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="Header Files">
|
|
||||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
|
||||||
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="Resource Files">
|
|
||||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
|
||||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav</Extensions>
|
|
||||||
</Filter>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\tools\resize.cpp">
|
|
||||||
<Filter>Source Files</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\tools\cmdline.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="resource.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="nvidia.ico">
|
|
||||||
<Filter>Resource Files</Filter>
|
|
||||||
</None>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ResourceCompile Include="nvzoom.rc">
|
|
||||||
<Filter>Resource Files</Filter>
|
|
||||||
</ResourceCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
</Project>
|
|
@ -1,16 +0,0 @@
|
|||||||
//{{NO_DEPENDENCIES}}
|
|
||||||
// Microsoft Visual C++ generated include file.
|
|
||||||
// Used by nvcompress.rc
|
|
||||||
//
|
|
||||||
#define IDI_ICON1 101
|
|
||||||
|
|
||||||
// Next default values for new objects
|
|
||||||
//
|
|
||||||
#ifdef APSTUDIO_INVOKED
|
|
||||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
|
||||||
#define _APS_NEXT_RESOURCE_VALUE 102
|
|
||||||
#define _APS_NEXT_COMMAND_VALUE 40001
|
|
||||||
#define _APS_NEXT_CONTROL_VALUE 1000
|
|
||||||
#define _APS_NEXT_SYMED_VALUE 101
|
|
||||||
#endif
|
|
||||||
#endif
|
|
@ -1,556 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Security;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
|
|
||||||
namespace Nvidia.TextureTools
|
|
||||||
{
|
|
||||||
#region Enums
|
|
||||||
|
|
||||||
#region public enum Format
|
|
||||||
/// <summary>
|
|
||||||
/// Compression format.
|
|
||||||
/// </summary>
|
|
||||||
public enum Format
|
|
||||||
{
|
|
||||||
// No compression.
|
|
||||||
RGB,
|
|
||||||
RGBA = RGB,
|
|
||||||
|
|
||||||
// DX9 formats.
|
|
||||||
DXT1,
|
|
||||||
DXT1a,
|
|
||||||
DXT3,
|
|
||||||
DXT5,
|
|
||||||
DXT5n,
|
|
||||||
|
|
||||||
// DX10 formats.
|
|
||||||
BC1 = DXT1,
|
|
||||||
BC1a = DXT1a,
|
|
||||||
BC2 = DXT3,
|
|
||||||
BC3 = DXT5,
|
|
||||||
BC3n = DXT5n,
|
|
||||||
BC4,
|
|
||||||
BC5,
|
|
||||||
|
|
||||||
DXT1n, // Not supported on CPU yet.
|
|
||||||
CTX1, // Not supported on CPU yet.
|
|
||||||
|
|
||||||
BC6,
|
|
||||||
BC7,
|
|
||||||
|
|
||||||
BC3_RGBM,
|
|
||||||
|
|
||||||
ETC1,
|
|
||||||
ETC2_R,
|
|
||||||
ETC2_RG,
|
|
||||||
ETC2_RGB,
|
|
||||||
ETC2_RGBA,
|
|
||||||
ETC2_RGB_A1,
|
|
||||||
|
|
||||||
ETC2_RGBM,
|
|
||||||
|
|
||||||
PVR_2BPP_RGB, // Using PVR textools.
|
|
||||||
PVR_4BPP_RGB,
|
|
||||||
PVR_2BPP_RGBA,
|
|
||||||
PVR_4BPP_RGBA
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region public enum Quality
|
|
||||||
/// <summary>
|
|
||||||
/// Quality modes.
|
|
||||||
/// </summary>
|
|
||||||
public enum Quality
|
|
||||||
{
|
|
||||||
Fastest,
|
|
||||||
Normal,
|
|
||||||
Production,
|
|
||||||
Highest,
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region public enum WrapMode
|
|
||||||
/// <summary>
|
|
||||||
/// Wrap modes.
|
|
||||||
/// </summary>
|
|
||||||
public enum WrapMode
|
|
||||||
{
|
|
||||||
Clamp,
|
|
||||||
Repeat,
|
|
||||||
Mirror,
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region public enum TextureType
|
|
||||||
/// <summary>
|
|
||||||
/// Texture types.
|
|
||||||
/// </summary>
|
|
||||||
public enum TextureType
|
|
||||||
{
|
|
||||||
Texture2D,
|
|
||||||
TextureCube,
|
|
||||||
Texture3D,
|
|
||||||
Texture2DArray
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region public enum InputFormat
|
|
||||||
/// <summary>
|
|
||||||
/// Input formats.
|
|
||||||
/// </summary>
|
|
||||||
public enum InputFormat
|
|
||||||
{
|
|
||||||
BGRA_8UB, // Normalized [0, 1] 8 bit fixed point.
|
|
||||||
RGBA_16F, // 16 bit floating point.
|
|
||||||
RGBA_32F, // 32 bit floating point.
|
|
||||||
R_32F, // Single channel 32 bit floating point.
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region public enum MipmapFilter
|
|
||||||
/// <summary>
|
|
||||||
/// Mipmap downsampling filters.
|
|
||||||
/// </summary>
|
|
||||||
public enum MipmapFilter
|
|
||||||
{
|
|
||||||
Box,
|
|
||||||
Triangle,
|
|
||||||
Kaiser
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region public enum ColorTransform
|
|
||||||
/// <summary>
|
|
||||||
/// Color transformation.
|
|
||||||
/// </summary>
|
|
||||||
public enum ColorTransform
|
|
||||||
{
|
|
||||||
None,
|
|
||||||
Linear
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region public enum RoundMode
|
|
||||||
/// <summary>
|
|
||||||
/// Extents rounding mode.
|
|
||||||
/// </summary>
|
|
||||||
public enum RoundMode
|
|
||||||
{
|
|
||||||
None,
|
|
||||||
ToNextPowerOfTwo,
|
|
||||||
ToNearestPowerOfTwo,
|
|
||||||
ToPreviousPowerOfTwo,
|
|
||||||
ToNextMultipleOfFour,
|
|
||||||
ToNearestMultipleOfFour,
|
|
||||||
ToPreviousMultipleOfFour
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region public enum AlphaMode
|
|
||||||
/// <summary>
|
|
||||||
/// Alpha mode.
|
|
||||||
/// </summary>
|
|
||||||
public enum AlphaMode
|
|
||||||
{
|
|
||||||
None,
|
|
||||||
Transparency,
|
|
||||||
Premultiplied
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region public enum Error
|
|
||||||
/// <summary>
|
|
||||||
/// Error codes.
|
|
||||||
/// </summary>
|
|
||||||
public enum Error
|
|
||||||
{
|
|
||||||
InvalidInput,
|
|
||||||
UserInterruption,
|
|
||||||
UnsupportedFeature,
|
|
||||||
CudaError,
|
|
||||||
Unknown,
|
|
||||||
FileOpen,
|
|
||||||
FileWrite,
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region public class InputOptions
|
|
||||||
/// <summary>
|
|
||||||
/// Input options.
|
|
||||||
/// </summary>
|
|
||||||
public class InputOptions
|
|
||||||
{
|
|
||||||
#region Bindings
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static IntPtr nvttCreateInputOptions();
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttDestroyInputOptions(IntPtr inputOptions);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetInputOptionsTextureLayout(IntPtr inputOptions, TextureType type, int w, int h, int d, int arraySize);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttResetInputOptionsTextureLayout(IntPtr inputOptions);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static bool nvttSetInputOptionsMipmapData(IntPtr inputOptions, IntPtr data, int w, int h, int d, int face, int mipmap);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetInputOptionsFormat(IntPtr inputOptions, InputFormat format);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetInputOptionsAlphaMode(IntPtr inputOptions, AlphaMode alphaMode);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetInputOptionsGamma(IntPtr inputOptions, float inputGamma, float outputGamma);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetInputOptionsWrapMode(IntPtr inputOptions, WrapMode mode);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetInputOptionsMipmapFilter(IntPtr inputOptions, MipmapFilter filter);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetInputOptionsMipmapGeneration(IntPtr inputOptions, bool generateMipmaps, int maxLevel);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetInputOptionsKaiserParameters(IntPtr inputOptions, float width, float alpha, float stretch);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetInputOptionsNormalMap(IntPtr inputOptions, bool b);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetInputOptionsConvertToNormalMap(IntPtr inputOptions, bool convert);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetInputOptionsHeightEvaluation(IntPtr inputOptions, float redScale, float greenScale, float blueScale, float alphaScale);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetInputOptionsNormalFilter(IntPtr inputOptions, float small, float medium, float big, float large);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetInputOptionsNormalizeMipmaps(IntPtr inputOptions, bool b);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetInputOptionsColorTransform(IntPtr inputOptions, ColorTransform t);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetInputOptionsLinearTransfrom(IntPtr inputOptions, int channel, float w0, float w1, float w2, float w3);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetInputOptionsMaxExtents(IntPtr inputOptions, int d);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetInputOptionsRoundMode(IntPtr inputOptions, RoundMode mode);
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
internal IntPtr options;
|
|
||||||
|
|
||||||
public InputOptions()
|
|
||||||
{
|
|
||||||
options = nvttCreateInputOptions();
|
|
||||||
}
|
|
||||||
~InputOptions()
|
|
||||||
{
|
|
||||||
nvttDestroyInputOptions(options);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetTextureLayout(TextureType type, int w, int h, int d, int arraySize = 1)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsTextureLayout(options, type, w, h, d, arraySize);
|
|
||||||
}
|
|
||||||
public void ResetTextureLayout()
|
|
||||||
{
|
|
||||||
nvttResetInputOptionsTextureLayout(options);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetMipmapData(IntPtr data, int width, int height, int depth, int face, int mipmap)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsMipmapData(options, data, width, height, depth, face, mipmap);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetFormat(InputFormat format)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsFormat(options, format);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetAlphaMode(AlphaMode alphaMode)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsAlphaMode(options, alphaMode);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetGamma(float inputGamma, float outputGamma)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsGamma(options, inputGamma, outputGamma);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetWrapMode(WrapMode wrapMode)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsWrapMode(options, wrapMode);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetMipmapFilter(MipmapFilter filter)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsMipmapFilter(options, filter);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetMipmapGeneration(bool enabled)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsMipmapGeneration(options, enabled, -1);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetMipmapGeneration(bool enabled, int maxLevel)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsMipmapGeneration(options, enabled, maxLevel);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetKaiserParameters(float width, float alpha, float stretch)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsKaiserParameters(options, width, alpha, stretch);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetNormalMap(bool b)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsNormalMap(options, b);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetConvertToNormalMap(bool convert)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsConvertToNormalMap(options, convert);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetHeightEvaluation(float redScale, float greenScale, float blueScale, float alphaScale)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsHeightEvaluation(options, redScale, greenScale, blueScale, alphaScale);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetNormalFilter(float small, float medium, float big, float large)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsNormalFilter(options, small, medium, big, large);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetNormalizeMipmaps(bool b)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsNormalizeMipmaps(options, b);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetColorTransform(ColorTransform t)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsColorTransform(options, t);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetLinearTransfrom(int channel, float w0, float w1, float w2, float w3)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsLinearTransfrom(options, channel, w0, w1, w2, w3);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetMaxExtents(int dim)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsMaxExtents(options, dim);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetRoundMode(RoundMode mode)
|
|
||||||
{
|
|
||||||
nvttSetInputOptionsRoundMode(options, mode);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region public class CompressionOptions
|
|
||||||
/// <summary>
|
|
||||||
/// Compression options.
|
|
||||||
/// </summary>
|
|
||||||
public class CompressionOptions
|
|
||||||
{
|
|
||||||
#region Bindings
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static IntPtr nvttCreateCompressionOptions();
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttDestroyCompressionOptions(IntPtr compressionOptions);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetCompressionOptionsFormat(IntPtr compressionOptions, Format format);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetCompressionOptionsQuality(IntPtr compressionOptions, Quality quality);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetCompressionOptionsColorWeights(IntPtr compressionOptions, float red, float green, float blue, float alpha);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetCompressionOptionsPixelFormat(IntPtr compressionOptions, uint bitcount, uint rmask, uint gmask, uint bmask, uint amask);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetCompressionOptionsQuantization(IntPtr compressionOptions, bool colorDithering, bool alphaDithering, bool binaryAlpha, int alphaThreshold);
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
internal IntPtr options;
|
|
||||||
|
|
||||||
public CompressionOptions()
|
|
||||||
{
|
|
||||||
options = nvttCreateCompressionOptions();
|
|
||||||
}
|
|
||||||
~CompressionOptions()
|
|
||||||
{
|
|
||||||
nvttDestroyCompressionOptions(options);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetFormat(Format format)
|
|
||||||
{
|
|
||||||
nvttSetCompressionOptionsFormat(options, format);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetQuality(Quality quality)
|
|
||||||
{
|
|
||||||
nvttSetCompressionOptionsQuality(options, quality);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetColorWeights(float red, float green, float blue)
|
|
||||||
{
|
|
||||||
nvttSetCompressionOptionsColorWeights(options, red, green, blue, 1.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetColorWeights(float red, float green, float blue, float alpha)
|
|
||||||
{
|
|
||||||
nvttSetCompressionOptionsColorWeights(options, red, green, blue, alpha);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetPixelFormat(uint bitcount, uint rmask, uint gmask, uint bmask, uint amask)
|
|
||||||
{
|
|
||||||
nvttSetCompressionOptionsPixelFormat(options, bitcount, rmask, gmask, bmask, amask);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetQuantization(bool colorDithering, bool alphaDithering, bool binaryAlpha)
|
|
||||||
{
|
|
||||||
nvttSetCompressionOptionsQuantization(options, colorDithering, alphaDithering, binaryAlpha, 127);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetQuantization(bool colorDithering, bool alphaDithering, bool binaryAlpha, int alphaThreshold)
|
|
||||||
{
|
|
||||||
nvttSetCompressionOptionsQuantization(options, colorDithering, alphaDithering, binaryAlpha, alphaThreshold);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region public class OutputOptions
|
|
||||||
/// <summary>
|
|
||||||
/// Output options.
|
|
||||||
/// </summary>
|
|
||||||
public class OutputOptions
|
|
||||||
{
|
|
||||||
#region Delegates
|
|
||||||
public delegate void ErrorHandler(Error error);
|
|
||||||
private delegate void WriteDataDelegate(IntPtr data, int size);
|
|
||||||
private delegate void ImageDelegate(int size, int width, int height, int depth, int face, int miplevel);
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region Bindings
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static IntPtr nvttCreateOutputOptions();
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttDestroyOutputOptions(IntPtr outputOptions);
|
|
||||||
|
|
||||||
[DllImport("nvtt", CharSet = CharSet.Ansi), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetOutputOptionsFileName(IntPtr outputOptions, string fileName);
|
|
||||||
|
|
||||||
//[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
//private extern static void nvttSetOutputOptionsErrorHandler(IntPtr outputOptions, ErrorHandler errorHandler);
|
|
||||||
|
|
||||||
private void ErrorCallback(Error error)
|
|
||||||
{
|
|
||||||
if (Error != null) Error(error);
|
|
||||||
}
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttSetOutputOptionsOutputHeader(IntPtr outputOptions, bool b);
|
|
||||||
|
|
||||||
//[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
//private extern static void nvttSetOutputOptionsOutputHandler(IntPtr outputOptions, WriteDataDelegate writeData, ImageDelegate image);
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
internal IntPtr options;
|
|
||||||
|
|
||||||
public OutputOptions()
|
|
||||||
{
|
|
||||||
options = nvttCreateOutputOptions();
|
|
||||||
//nvttSetOutputOptionsErrorHandler(options, new ErrorHandler(ErrorCallback));
|
|
||||||
}
|
|
||||||
~OutputOptions()
|
|
||||||
{
|
|
||||||
nvttDestroyOutputOptions(options);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetFileName(string fileName)
|
|
||||||
{
|
|
||||||
nvttSetOutputOptionsFileName(options, fileName);
|
|
||||||
}
|
|
||||||
|
|
||||||
public event ErrorHandler Error;
|
|
||||||
|
|
||||||
public void SetOutputHeader(bool b)
|
|
||||||
{
|
|
||||||
nvttSetOutputOptionsOutputHeader(options, b);
|
|
||||||
}
|
|
||||||
|
|
||||||
// @@ Add OutputHandler interface.
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region public static class Compressor
|
|
||||||
public class Compressor
|
|
||||||
{
|
|
||||||
#region Bindings
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static IntPtr nvttCreateCompressor();
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static void nvttDestroyCompressor(IntPtr compressor);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static bool nvttCompress(IntPtr compressor, IntPtr inputOptions, IntPtr compressionOptions, IntPtr outputOptions);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private extern static int nvttEstimateSize(IntPtr compressor, IntPtr inputOptions, IntPtr compressionOptions);
|
|
||||||
|
|
||||||
[DllImport("nvtt"), SuppressUnmanagedCodeSecurity]
|
|
||||||
private static extern IntPtr nvttErrorString(Error error);
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
internal IntPtr compressor;
|
|
||||||
|
|
||||||
public Compressor()
|
|
||||||
{
|
|
||||||
compressor = nvttCreateCompressor();
|
|
||||||
}
|
|
||||||
|
|
||||||
~Compressor()
|
|
||||||
{
|
|
||||||
nvttDestroyCompressor(compressor);
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Compress(InputOptions input, CompressionOptions compression, OutputOptions output)
|
|
||||||
{
|
|
||||||
return nvttCompress(compressor, input.options, compression.options, output.options);
|
|
||||||
}
|
|
||||||
|
|
||||||
public int EstimateSize(InputOptions input, CompressionOptions compression)
|
|
||||||
{
|
|
||||||
return nvttEstimateSize(compressor, input.options, compression.options);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string ErrorString(Error error)
|
|
||||||
{
|
|
||||||
return Marshal.PtrToStringAnsi(nvttErrorString(error));
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
} // Nvidia.TextureTools namespace
|
|
@ -1,105 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<VSPerformanceSession Version="1.00">
|
|
||||||
<Options>
|
|
||||||
<Solution>C:\nvtt\project\vc10\nvtt.sln</Solution>
|
|
||||||
<CollectionMethod>Sampling</CollectionMethod>
|
|
||||||
<AllocationMethod>None</AllocationMethod>
|
|
||||||
<LaunchRuntimeControl>true</LaunchRuntimeControl>
|
|
||||||
<AddReport>true</AddReport>
|
|
||||||
<ResourceBasedAnalysisSelected>false</ResourceBasedAnalysisSelected>
|
|
||||||
<ThreadBasedAnalysisSelected>false</ThreadBasedAnalysisSelected>
|
|
||||||
<UniqueReport>Timestamp</UniqueReport>
|
|
||||||
<SamplingMethod>Cycles</SamplingMethod>
|
|
||||||
<CycleCount>10000000</CycleCount>
|
|
||||||
<PageFaultCount>10</PageFaultCount>
|
|
||||||
<SysCallCount>10</SysCallCount>
|
|
||||||
<SamplingCounter Name="" ReloadValue="00000000000f4240" DisplayName="" />
|
|
||||||
<RelocateBinaries>false</RelocateBinaries>
|
|
||||||
<CollectOnHpcCluster>false</CollectOnHpcCluster>
|
|
||||||
<HPCSettings>
|
|
||||||
<NumberOfProcesses>0</NumberOfProcesses>
|
|
||||||
<TargetSelection>UnknownDisabled</TargetSelection>
|
|
||||||
<ProfileOnRank>0</ProfileOnRank>
|
|
||||||
<AdvancedProperties>
|
|
||||||
<Project>nvcompress</Project>
|
|
||||||
<CleanUp>true</CleanUp>
|
|
||||||
<MpiexecCommand>mpiexec.exe</MpiexecCommand>
|
|
||||||
<DeployCRT>true</DeployCRT>
|
|
||||||
</AdvancedProperties>
|
|
||||||
</HPCSettings>
|
|
||||||
<HardwareCounters EnableHWCounters="false" />
|
|
||||||
<EtwSettings />
|
|
||||||
<PdhSettings>
|
|
||||||
<PdhCountersEnabled>false</PdhCountersEnabled>
|
|
||||||
<PdhCountersRate>500</PdhCountersRate>
|
|
||||||
<PdhCounters>
|
|
||||||
<PdhCounter>\Memory\Pages/sec</PdhCounter>
|
|
||||||
<PdhCounter>\PhysicalDisk(_Total)\Avg. Disk Queue Length</PdhCounter>
|
|
||||||
<PdhCounter>\Processor(_Total)\% Processor Time</PdhCounter>
|
|
||||||
</PdhCounters>
|
|
||||||
</PdhSettings>
|
|
||||||
</Options>
|
|
||||||
<ExcludeSmallFuncs>true</ExcludeSmallFuncs>
|
|
||||||
<JScriptProfilingEnabled>false</JScriptProfilingEnabled>
|
|
||||||
<PreinstrumentEvent>
|
|
||||||
<InstrEventExclude>false</InstrEventExclude>
|
|
||||||
</PreinstrumentEvent>
|
|
||||||
<PostinstrumentEvent>
|
|
||||||
<InstrEventExclude>false</InstrEventExclude>
|
|
||||||
</PostinstrumentEvent>
|
|
||||||
<Binaries>
|
|
||||||
<ProjBinary>
|
|
||||||
<Path>C:\nvtt\project\vc10\Release.x64\bin\nvcompress.exe</Path>
|
|
||||||
<ArgumentTimestamp>01/01/0001 00:00:00</ArgumentTimestamp>
|
|
||||||
<Instrument>true</Instrument>
|
|
||||||
<Sample>true</Sample>
|
|
||||||
<ExternalWebsite>false</ExternalWebsite>
|
|
||||||
<InteractionProfilingEnabled>false</InteractionProfilingEnabled>
|
|
||||||
<IsLocalJavascript>false</IsLocalJavascript>
|
|
||||||
<LaunchProject>true</LaunchProject>
|
|
||||||
<OverrideProjectSettings>false</OverrideProjectSettings>
|
|
||||||
<LaunchMethod>Executable</LaunchMethod>
|
|
||||||
<ExecutablePath>C:\nvtt\project\vc10\\Release.x64\bin\nvcompress.exe</ExecutablePath>
|
|
||||||
<StartupDirectory>C:\nvtt\project\vc10\nvcompress\</StartupDirectory>
|
|
||||||
<Arguments>-bc6 -nomips C:\nvtt\data\testsuite\kodak\kodim01.png C:\nvtt\data\testsuite\kodak\kodim01_bc6.dds</Arguments>
|
|
||||||
<NetAppHost>IIS</NetAppHost>
|
|
||||||
<NetBrowser>InternetExplorer</NetBrowser>
|
|
||||||
<ExcludeSmallFuncs>true</ExcludeSmallFuncs>
|
|
||||||
<JScriptProfilingEnabled>false</JScriptProfilingEnabled>
|
|
||||||
<PreinstrumentEvent>
|
|
||||||
<InstrEventExclude>false</InstrEventExclude>
|
|
||||||
</PreinstrumentEvent>
|
|
||||||
<PostinstrumentEvent>
|
|
||||||
<InstrEventExclude>false</InstrEventExclude>
|
|
||||||
</PostinstrumentEvent>
|
|
||||||
<ProjRef>{88079E38-83AA-4E8A-B18A-66A78D1B058B}|nvcompress\nvcompress.vcxproj</ProjRef>
|
|
||||||
<ProjPath>C:\nvtt\project\vc10\nvcompress\nvcompress.vcxproj</ProjPath>
|
|
||||||
<ProjName>nvcompress</ProjName>
|
|
||||||
</ProjBinary>
|
|
||||||
</Binaries>
|
|
||||||
<Reports>
|
|
||||||
<Report>
|
|
||||||
<Path>C:\nvtt\project\vc10\bc6-01-eigen-solver.vsp</Path>
|
|
||||||
</Report>
|
|
||||||
<Report>
|
|
||||||
<Path>C:\nvtt\project\vc10\bc6-02-no-double.vsp</Path>
|
|
||||||
</Report>
|
|
||||||
</Reports>
|
|
||||||
<Launches>
|
|
||||||
<ProjBinary>
|
|
||||||
<Path>:PB:{88079E38-83AA-4E8A-B18A-66A78D1B058B}|nvcompress\nvcompress.vcxproj</Path>
|
|
||||||
</ProjBinary>
|
|
||||||
</Launches>
|
|
||||||
<RuntimeMarks>
|
|
||||||
<MarkName>Mark One</MarkName>
|
|
||||||
<MarkName>Mark Two</MarkName>
|
|
||||||
<MarkName>Mark Three</MarkName>
|
|
||||||
<MarkName>Mark Four</MarkName>
|
|
||||||
<MarkName>Mark Five</MarkName>
|
|
||||||
<MarkName>Mark Six</MarkName>
|
|
||||||
<MarkName>Mark Seven</MarkName>
|
|
||||||
<MarkName>Mark Eight</MarkName>
|
|
||||||
<MarkName>Mark Nine</MarkName>
|
|
||||||
<MarkName>Mark Ten</MarkName>
|
|
||||||
</RuntimeMarks>
|
|
||||||
</VSPerformanceSession>
|
|
@ -1,40 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<ItemGroup>
|
|
||||||
<Filter Include="Source Files">
|
|
||||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
|
||||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="Header Files">
|
|
||||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
|
||||||
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="Resource Files">
|
|
||||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
|
||||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav</Extensions>
|
|
||||||
</Filter>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\tools\assemble.cpp">
|
|
||||||
<Filter>Source Files</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\tools\cmdline.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="resource.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ResourceCompile Include="nvassemble.rc">
|
|
||||||
<Filter>Resource Files</Filter>
|
|
||||||
</ResourceCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="nvidia.ico">
|
|
||||||
<Filter>Resource Files</Filter>
|
|
||||||
</None>
|
|
||||||
</ItemGroup>
|
|
||||||
</Project>
|
|
Before Width: | Height: | Size: 15 KiB |
@ -1,16 +0,0 @@
|
|||||||
//{{NO_DEPENDENCIES}}
|
|
||||||
// Microsoft Visual C++ generated include file.
|
|
||||||
// Used by nvcompress.rc
|
|
||||||
//
|
|
||||||
#define IDI_ICON1 101
|
|
||||||
|
|
||||||
// Next default values for new objects
|
|
||||||
//
|
|
||||||
#ifdef APSTUDIO_INVOKED
|
|
||||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
|
||||||
#define _APS_NEXT_RESOURCE_VALUE 102
|
|
||||||
#define _APS_NEXT_COMMAND_VALUE 40001
|
|
||||||
#define _APS_NEXT_CONTROL_VALUE 1000
|
|
||||||
#define _APS_NEXT_SYMED_VALUE 101
|
|
||||||
#endif
|
|
||||||
#endif
|
|
@ -1,40 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<ItemGroup>
|
|
||||||
<Filter Include="Source Files">
|
|
||||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
|
||||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="Header Files">
|
|
||||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
|
||||||
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="Resource Files">
|
|
||||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
|
||||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav</Extensions>
|
|
||||||
</Filter>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\tools\compress.cpp">
|
|
||||||
<Filter>Source Files</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\tools\cmdline.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="resource.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ResourceCompile Include="nvcompress.rc">
|
|
||||||
<Filter>Resource Files</Filter>
|
|
||||||
</ResourceCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="nvidia.ico">
|
|
||||||
<Filter>Resource Files</Filter>
|
|
||||||
</None>
|
|
||||||
</ItemGroup>
|
|
||||||
</Project>
|
|
Before Width: | Height: | Size: 15 KiB |
@ -1,16 +0,0 @@
|
|||||||
//{{NO_DEPENDENCIES}}
|
|
||||||
// Microsoft Visual C++ generated include file.
|
|
||||||
// Used by nvcompress.rc
|
|
||||||
//
|
|
||||||
#define IDI_ICON1 101
|
|
||||||
|
|
||||||
// Next default values for new objects
|
|
||||||
//
|
|
||||||
#ifdef APSTUDIO_INVOKED
|
|
||||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
|
||||||
#define _APS_NEXT_RESOURCE_VALUE 102
|
|
||||||
#define _APS_NEXT_COMMAND_VALUE 40001
|
|
||||||
#define _APS_NEXT_CONTROL_VALUE 1000
|
|
||||||
#define _APS_NEXT_SYMED_VALUE 101
|
|
||||||
#endif
|
|
||||||
#endif
|
|
@ -1,22 +0,0 @@
|
|||||||
#ifndef NV_CONFIG
|
|
||||||
#define NV_CONFIG
|
|
||||||
|
|
||||||
//#cmakedefine HAVE_UNISTD_H
|
|
||||||
//#define HAVE_STDARG_H
|
|
||||||
//#cmakedefine HAVE_SIGNAL_H
|
|
||||||
//#cmakedefine HAVE_EXECINFO_H
|
|
||||||
//#define HAVE_MALLOC_H
|
|
||||||
|
|
||||||
#if defined(_OPENMP)
|
|
||||||
#define HAVE_OPENMP
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define NV_HAVE_STBIMAGE
|
|
||||||
/*#if !defined(_M_X64)
|
|
||||||
//#define NV_HAVE_FREEIMAGE
|
|
||||||
#define NV_HAVE_PNG
|
|
||||||
#define NV_HAVE_JPEG
|
|
||||||
#define NV_HAVE_TIFF
|
|
||||||
#endif*/
|
|
||||||
|
|
||||||
#endif // NV_CONFIG
|
|
@ -1,40 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<ItemGroup>
|
|
||||||
<Filter Include="Source Files">
|
|
||||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
|
||||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="Header Files">
|
|
||||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
|
||||||
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="Resource Files">
|
|
||||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
|
||||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav</Extensions>
|
|
||||||
</Filter>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\tools\ddsinfo.cpp">
|
|
||||||
<Filter>Source Files</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\tools\cmdline.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="resource.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ResourceCompile Include="nvddsinfo.rc">
|
|
||||||
<Filter>Resource Files</Filter>
|
|
||||||
</ResourceCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="nvidia.ico">
|
|
||||||
<Filter>Resource Files</Filter>
|
|
||||||
</None>
|
|
||||||
</ItemGroup>
|
|
||||||
</Project>
|
|
Before Width: | Height: | Size: 15 KiB |
@ -1,16 +0,0 @@
|
|||||||
//{{NO_DEPENDENCIES}}
|
|
||||||
// Microsoft Visual C++ generated include file.
|
|
||||||
// Used by nvcompress.rc
|
|
||||||
//
|
|
||||||
#define IDI_ICON1 101
|
|
||||||
|
|
||||||
// Next default values for new objects
|
|
||||||
//
|
|
||||||
#ifdef APSTUDIO_INVOKED
|
|
||||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
|
||||||
#define _APS_NEXT_RESOURCE_VALUE 102
|
|
||||||
#define _APS_NEXT_COMMAND_VALUE 40001
|
|
||||||
#define _APS_NEXT_CONTROL_VALUE 1000
|
|
||||||
#define _APS_NEXT_SYMED_VALUE 101
|
|
||||||
#endif
|
|
||||||
#endif
|
|
@ -1,40 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<ItemGroup>
|
|
||||||
<Filter Include="Source Files">
|
|
||||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
|
||||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="Header Files">
|
|
||||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
|
||||||
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="Resource Files">
|
|
||||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
|
||||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav</Extensions>
|
|
||||||
</Filter>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\tools\decompress.cpp">
|
|
||||||
<Filter>Source Files</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\tools\cmdline.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="resource.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ResourceCompile Include="nvdecompress.rc">
|
|
||||||
<Filter>Resource Files</Filter>
|
|
||||||
</ResourceCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="nvidia.ico">
|
|
||||||
<Filter>Resource Files</Filter>
|
|
||||||
</None>
|
|
||||||
</ItemGroup>
|
|
||||||
</Project>
|
|
Before Width: | Height: | Size: 15 KiB |
@ -1,16 +0,0 @@
|
|||||||
//{{NO_DEPENDENCIES}}
|
|
||||||
// Microsoft Visual C++ generated include file.
|
|
||||||
// Used by nvcompress.rc
|
|
||||||
//
|
|
||||||
#define IDI_ICON1 101
|
|
||||||
|
|
||||||
// Next default values for new objects
|
|
||||||
//
|
|
||||||
#ifdef APSTUDIO_INVOKED
|
|
||||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
|
||||||
#define _APS_NEXT_RESOURCE_VALUE 102
|
|
||||||
#define _APS_NEXT_COMMAND_VALUE 40001
|
|
||||||
#define _APS_NEXT_CONTROL_VALUE 1000
|
|
||||||
#define _APS_NEXT_SYMED_VALUE 101
|
|
||||||
#endif
|
|
||||||
#endif
|
|
Before Width: | Height: | Size: 15 KiB |
@ -1,40 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<ItemGroup>
|
|
||||||
<Filter Include="Source Files">
|
|
||||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
|
||||||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="Header Files">
|
|
||||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
|
||||||
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="Resource Files">
|
|
||||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
|
||||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav</Extensions>
|
|
||||||
</Filter>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\tools\imgdiff.cpp">
|
|
||||||
<Filter>Source Files</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\tools\cmdline.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="resource.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="nvidia.ico">
|
|
||||||
<Filter>Resource Files</Filter>
|
|
||||||
</None>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ResourceCompile Include="nvimgdiff.rc">
|
|
||||||
<Filter>Resource Files</Filter>
|
|
||||||
</ResourceCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
</Project>
|
|
@ -1,16 +0,0 @@
|
|||||||
//{{NO_DEPENDENCIES}}
|
|
||||||
// Microsoft Visual C++ generated include file.
|
|
||||||
// Used by nvcompress.rc
|
|
||||||
//
|
|
||||||
#define IDI_ICON1 101
|
|
||||||
|
|
||||||
// Next default values for new objects
|
|
||||||
//
|
|
||||||
#ifdef APSTUDIO_INVOKED
|
|
||||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
|
||||||
#define _APS_NEXT_RESOURCE_VALUE 102
|
|
||||||
#define _APS_NEXT_COMMAND_VALUE 40001
|
|
||||||
#define _APS_NEXT_CONTROL_VALUE 1000
|
|
||||||
#define _APS_NEXT_SYMED_VALUE 101
|
|
||||||
#endif
|
|
||||||
#endif
|
|
@ -1,21 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<ItemGroup>
|
|
||||||
<ClInclude Include="..\..\..\src\nvthread\Atomic.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvthread\Event.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvthread\Mutex.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvthread\nvthread.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvthread\Thread.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvthread\ThreadPool.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvthread\Win32.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvthread\ParallelFor.h" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClCompile Include="..\..\..\src\nvthread\Event.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvthread\Mutex.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvthread\nvthread.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvthread\Thread.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvthread\ThreadPool.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvthread\ParallelFor.cpp" />
|
|
||||||
</ItemGroup>
|
|
||||||
</Project>
|
|
@ -1,9 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<ImportGroup Label="PropertySheets" />
|
|
||||||
<PropertyGroup Label="UserMacros">
|
|
||||||
<SrcDir>$(SolutionDir)..\..\src</SrcDir>
|
|
||||||
<ExternDir>$(SolutionDir)..\..\extern</ExternDir>
|
|
||||||
<GnuWinDir>$(ExternDir)\gnuwin32</GnuWinDir>
|
|
||||||
</PropertyGroup>
|
|
||||||
</Project>
|
|
@ -1,102 +0,0 @@
|
|||||||
// Microsoft Visual C++ generated resource script.
|
|
||||||
//
|
|
||||||
#include "resource.h"
|
|
||||||
|
|
||||||
#define APSTUDIO_READONLY_SYMBOLS
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
//
|
|
||||||
// Generated from the TEXTINCLUDE 2 resource.
|
|
||||||
//
|
|
||||||
#include "windows.h"
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
#undef APSTUDIO_READONLY_SYMBOLS
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// English (U.S.) resources
|
|
||||||
|
|
||||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
|
||||||
#ifdef _WIN32
|
|
||||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
|
||||||
#pragma code_page(1252)
|
|
||||||
#endif //_WIN32
|
|
||||||
|
|
||||||
#ifdef APSTUDIO_INVOKED
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
//
|
|
||||||
// TEXTINCLUDE
|
|
||||||
//
|
|
||||||
|
|
||||||
1 TEXTINCLUDE
|
|
||||||
BEGIN
|
|
||||||
"resource.h\0"
|
|
||||||
END
|
|
||||||
|
|
||||||
2 TEXTINCLUDE
|
|
||||||
BEGIN
|
|
||||||
"#include ""afxres.h""\r\n"
|
|
||||||
"\0"
|
|
||||||
END
|
|
||||||
|
|
||||||
3 TEXTINCLUDE
|
|
||||||
BEGIN
|
|
||||||
"\r\n"
|
|
||||||
"\0"
|
|
||||||
END
|
|
||||||
|
|
||||||
#endif // APSTUDIO_INVOKED
|
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
//
|
|
||||||
// Version
|
|
||||||
//
|
|
||||||
|
|
||||||
VS_VERSION_INFO VERSIONINFO
|
|
||||||
FILEVERSION 2,1,0,0
|
|
||||||
PRODUCTVERSION 2,1,0,0
|
|
||||||
FILEFLAGSMASK 0x17L
|
|
||||||
#ifdef _DEBUG
|
|
||||||
FILEFLAGS 0x1L
|
|
||||||
#else
|
|
||||||
FILEFLAGS 0x0L
|
|
||||||
#endif
|
|
||||||
FILEOS 0x4L
|
|
||||||
FILETYPE 0x2L
|
|
||||||
FILESUBTYPE 0x0L
|
|
||||||
BEGIN
|
|
||||||
BLOCK "StringFileInfo"
|
|
||||||
BEGIN
|
|
||||||
BLOCK "040904b0"
|
|
||||||
BEGIN
|
|
||||||
VALUE "CompanyName", "NVIDIA Corporation"
|
|
||||||
VALUE "FileDescription", "NVIDIA Texture Tools Dynamic Link Library"
|
|
||||||
VALUE "FileVersion", "2, 1, 0, 0"
|
|
||||||
VALUE "InternalName", "nvtt"
|
|
||||||
VALUE "LegalCopyright", "Copyright (C) 2007"
|
|
||||||
VALUE "OriginalFilename", "nvtt.dll"
|
|
||||||
VALUE "ProductName", "NVIDIA Texture Tools Dynamic Link Library"
|
|
||||||
VALUE "ProductVersion", "2, 1, 0, 0"
|
|
||||||
END
|
|
||||||
END
|
|
||||||
BLOCK "VarFileInfo"
|
|
||||||
BEGIN
|
|
||||||
VALUE "Translation", 0x409, 1200
|
|
||||||
END
|
|
||||||
END
|
|
||||||
|
|
||||||
#endif // English (U.S.) resources
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef APSTUDIO_INVOKED
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
//
|
|
||||||
// Generated from the TEXTINCLUDE 3 resource.
|
|
||||||
//
|
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
#endif // not APSTUDIO_INVOKED
|
|
||||||
|
|
@ -1,91 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
||||||
<ItemGroup>
|
|
||||||
<Filter Include="Resource Files">
|
|
||||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
|
||||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav</Extensions>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="cuda">
|
|
||||||
<UniqueIdentifier>{18fa5da9-6ed8-4990-880e-ab4234fe2114}</UniqueIdentifier>
|
|
||||||
</Filter>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ResourceCompile Include="nvtt.rc">
|
|
||||||
<Filter>Resource Files</Filter>
|
|
||||||
</ResourceCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClInclude Include="resource.h">
|
|
||||||
<Filter>Resource Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\cuda\CudaCompressorDXT.h">
|
|
||||||
<Filter>cuda</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\cuda\CudaMath.h">
|
|
||||||
<Filter>cuda</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\cuda\CudaUtils.h">
|
|
||||||
<Filter>cuda</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\ClusterFit.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\CompressionOptions.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\Compressor.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\CompressorDX10.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\CompressorDX9.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\CompressorRGB.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\Context.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\InputOptions.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\nvtt.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\nvtt_wrapper.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\OptimalCompressDXT.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\OutputOptions.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\QuickCompressDXT.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\TaskDispatcher.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\CubeSurface.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\Surface.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\BlockCompressor.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\SingleColorLookup.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\CompressorDX11.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\CompressorDXT1.h" />
|
|
||||||
<ClInclude Include="..\..\..\src\nvtt\CompressorDXT5_RGBM.h" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\cuda\CudaCompressorDXT.cpp">
|
|
||||||
<Filter>cuda</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\cuda\CudaUtils.cpp">
|
|
||||||
<Filter>cuda</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\ClusterFit.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\CompressionOptions.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\CompressorDX10.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\CompressorDX11.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\CompressorDX9.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\CompressorRGB.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\Context.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\InputOptions.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\nvtt.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\nvtt_wrapper.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\OptimalCompressDXT.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\OutputOptions.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\QuickCompressDXT.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\SingleColorLookup.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\CubeSurface.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\Surface.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\BlockCompressor.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\TaskDispatcher.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\CompressorDXT1.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\CompressorDXT5_RGBM.cpp" />
|
|
||||||
<ClCompile Include="..\..\..\src\nvtt\CompressorETC.cpp" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<CustomBuildStep Include="..\..\..\src\nvtt\cuda\ConvolveKernel.cu">
|
|
||||||
<Filter>cuda</Filter>
|
|
||||||
</CustomBuildStep>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<CudaCompile Include="..\..\..\src\nvtt\cuda\CompressKernel.cu">
|
|
||||||
<Filter>cuda</Filter>
|
|
||||||
</CudaCompile>
|
|
||||||
</ItemGroup>
|
|
||||||
</Project>
|
|
@ -1,14 +0,0 @@
|
|||||||
//{{NO_DEPENDENCIES}}
|
|
||||||
// Microsoft Visual C++ generated include file.
|
|
||||||
// Used by nvtt.rc
|
|
||||||
|
|
||||||
// Next default values for new objects
|
|
||||||
//
|
|
||||||
#ifdef APSTUDIO_INVOKED
|
|
||||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
|
||||||
#define _APS_NEXT_RESOURCE_VALUE 101
|
|
||||||
#define _APS_NEXT_COMMAND_VALUE 40001
|
|
||||||
#define _APS_NEXT_CONTROL_VALUE 1001
|
|
||||||
#define _APS_NEXT_SYMED_VALUE 101
|
|
||||||
#endif
|
|
||||||
#endif
|
|