2010-11-06 02:34:34 +00:00
|
|
|
// Copyright (c) 2009-2011 Ignacio Castano <castano@gmail.com>
|
|
|
|
// Copyright (c) 2007-2009 NVIDIA Corporation -- Ignacio Castano <icastano@nvidia.com>
|
2007-05-17 00:11:38 +00:00
|
|
|
//
|
|
|
|
// Permission is hereby granted, free of charge, to any person
|
|
|
|
// obtaining a copy of this software and associated documentation
|
|
|
|
// files (the "Software"), to deal in the Software without
|
|
|
|
// restriction, including without limitation the rights to use,
|
|
|
|
// copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
// copies of the Software, and to permit persons to whom the
|
|
|
|
// Software is furnished to do so, subject to the following
|
|
|
|
// conditions:
|
|
|
|
//
|
|
|
|
// The above copyright notice and this permission notice shall be
|
|
|
|
// included in all copies or substantial portions of the Software.
|
|
|
|
//
|
|
|
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
|
|
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
|
|
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
|
|
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
|
|
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
|
|
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
|
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
2007-12-17 03:51:34 +00:00
|
|
|
// OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
|
2010-05-31 08:13:23 +00:00
|
|
|
#ifndef NVTT_COMPRESSOR_H
|
|
|
|
#define NVTT_COMPRESSOR_H
|
2007-12-17 03:51:34 +00:00
|
|
|
|
|
|
|
#include "nvtt.h"
|
2010-05-31 08:13:23 +00:00
|
|
|
#include "nvcore/nvcore.h" // uint
|
2007-12-17 03:51:34 +00:00
|
|
|
|
|
|
|
namespace nv
|
|
|
|
{
|
2010-03-16 22:37:25 +00:00
|
|
|
struct CompressorInterface
|
|
|
|
{
|
|
|
|
virtual ~CompressorInterface() {}
|
2010-11-03 18:31:16 +00:00
|
|
|
virtual void compress(nvtt::AlphaMode alphaMode, uint w, uint h, const float * rgba, const nvtt::CompressionOptions::Private & compressionOptions, const nvtt::OutputOptions::Private & outputOptions) = 0;
|
2010-03-16 22:37:25 +00:00
|
|
|
};
|
2007-12-17 03:51:34 +00:00
|
|
|
|
|
|
|
} // nv namespace
|
|
|
|
|
2010-05-31 08:13:23 +00:00
|
|
|
#endif // NVTT_COMPRESSOR_H
|