Fix broken non-raw images

This commit is contained in:
heckflosse 2018-11-18 12:15:30 +01:00
parent b090fd7d2f
commit 99c8b60615
2 changed files with 2 additions and 6 deletions

View File

@ -106,11 +106,7 @@ public:
return sampleArrangement; return sampleArrangement;
} }
virtual void getStdImage (ColorTemp ctemp, int tran, Imagefloat* image, PreviewProps pp, bool first) virtual void getStdImage (ColorTemp ctemp, int tran, Imagefloat* image, PreviewProps pp) = 0;
{
printf("getStdImage NULL!\n");
}
virtual int getBPS () = 0; virtual int getBPS () = 0;
virtual void getScanline (int row, unsigned char* buffer, int bps, bool isFloat = false) {} virtual void getScanline (int row, unsigned char* buffer, int bps, bool isFloat = false) {}
virtual void setScanline (int row, unsigned char* buffer, int bps, unsigned int numSamples = 3) {} virtual void setScanline (int row, unsigned char* buffer, int bps, unsigned int numSamples = 3) {}

View File

@ -194,7 +194,7 @@ void StdImageSource::getImage (const ColorTemp &ctemp, int tran, Imagefloat* ima
// the code will use OpenMP as of now. // the code will use OpenMP as of now.
img->getStdImage(ctemp, tran, image, pp, true); img->getStdImage(ctemp, tran, image, pp);
// Hombre: we could have rotated the image here too, with just few line of code, but: // Hombre: we could have rotated the image here too, with just few line of code, but:
// 1. it would require other modifications in the engine, so "do not touch that little plonker!" // 1. it would require other modifications in the engine, so "do not touch that little plonker!"