Reduce rawimage.h dependencies

This commit is contained in:
Ingo Weyrich
2019-10-29 15:21:02 +01:00
parent c11087c28d
commit ed161c6288
21 changed files with 50 additions and 35 deletions

View File

@@ -21,6 +21,7 @@
#include "rtengine.h"
#include "imagefloat.h"
#include "rawimage.h"
#include "rawimagesource.h"
#include "rawimagesource_i.h"
#include "jaggedarray.h"
@@ -501,6 +502,26 @@ RawImageSource::~RawImageSource ()
}
}
unsigned RawImageSource::FC(int row, int col) const
{
return ri->FC(row, col);
}
eSensorType RawImageSource::getSensorType () const
{
return ri != nullptr ? ri->getSensorType() : ST_NONE;
}
bool RawImageSource::isMono() const
{
return ri->get_colors() == 1;
}
int RawImageSource::getRotateDegree() const
{
return ri->get_rotateDegree();
}
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
void RawImageSource::transformRect (const PreviewProps &pp, int tran, int &ssx1, int &ssy1, int &width, int &height, int &fw)