refactored code for extracting image dimensions from metadata

(cherry picked from commit 0ece9c5bfad09bc9052238d83fa696ef39effaaa)
This commit is contained in:
Alberto Griggio
2020-12-02 02:03:00 -08:00
committed by Lawrence Lee
parent 0102fca563
commit 92befa7e81
13 changed files with 146 additions and 21 deletions

View File

@@ -46,7 +46,7 @@ private:
static LUTf invGrad; // for fast_demosaic
static LUTf initInvGrad ();
static void colorSpaceConversion_ (Imagefloat* im, const procparams::ColorManagementParams& cmp, const ColorTemp &wb, double pre_mul[3], cmsHPROFILE embedded, cmsHPROFILE camprofile, double cam[3][3], const std::string &camName);
int defTransform (int tran);
static int defTransform (const RawImage *ri, int tran);
protected:
MyMutex getImageMutex; // locks getImage
@@ -228,6 +228,8 @@ public:
virtual float operator()(int row) const { return 1.f; }
};
static void computeFullSize(const RawImage *ri, int tr, int &w, int &h);
protected:
typedef unsigned short ushort;
void processFalseColorCorrection(Imagefloat* i, const int steps);