From 94c3fa75a8371905d062e2eddd7792c0dcd1ba83 Mon Sep 17 00:00:00 2001 From: castano Date: Tue, 6 May 2008 22:01:23 +0000 Subject: [PATCH] Add comments indicating where to perform linear color transforms. --- src/nvtt/Compressor.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/nvtt/Compressor.cpp b/src/nvtt/Compressor.cpp index 5bdb014..bddd391 100644 --- a/src/nvtt/Compressor.cpp +++ b/src/nvtt/Compressor.cpp @@ -414,10 +414,6 @@ bool Compressor::Private::compressMipmaps(uint f, const InputOptions::Private & outputOptions.outputHandler->beginImage(size, w, h, d, f, m); } - // @@ Where to do the color transform? - // - Color transform may not be linear, so we cannot do before computing mipmaps. - // - Should be done in linear space, that is, after gamma correction. - if (!initMipmap(mipmap, inputOptions, w, h, d, f, m)) { if (outputOptions.errorHandler != NULL) @@ -656,6 +652,8 @@ void Compressor::Private::processInputImage(Mipmap & mipmap, const InputOptions: mipmap.toFloatImage(inputOptions); } } + + // @@ Linear and swizzle color transforms should be done here. }