Output compressed files.
This commit is contained in:
parent
a769831fb5
commit
56849b78ad
@ -23,10 +23,12 @@
|
||||
|
||||
#include <nvtt/nvtt.h>
|
||||
#include <nvimage/Image.h>
|
||||
#include <nvimage/ImageIO.h>
|
||||
#include <nvimage/BlockDXT.h>
|
||||
#include <nvimage/ColorBlock.h>
|
||||
#include <nvcore/Ptr.h>
|
||||
#include <nvcore/Debug.h>
|
||||
#include <nvcore/StrLib.h>
|
||||
|
||||
#include <stdlib.h> // free
|
||||
#include <string.h> // memcpy
|
||||
@ -223,6 +225,9 @@ int main(int argc, char *argv[])
|
||||
|
||||
AutoPtr<Image> img_out( outputHandler.decompress(nvtt::Format_BC1) );
|
||||
|
||||
Path outputFileName("data/%s", s_fileNames[i]);
|
||||
ImageIO::save(outputFileName, img_out.ptr());
|
||||
|
||||
float rms = rmsError(img.ptr(), img_out.ptr());
|
||||
totalRMS += rms;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user