Additional speedup for lcp vignette correction

This commit is contained in:
heckflosse
2017-02-21 19:11:54 +01:00
parent 94129861f5
commit 87a280f8ca
3 changed files with 58 additions and 59 deletions

View File

@@ -42,10 +42,6 @@ public:
float x0, y0, fx, fy; // prepared params
float rfx, rfy;
float vignParam[4];
#if defined( __SSE2__ ) && defined( __x86_64__ )
vfloat vignParamv[4] ALIGNED16;
vfloat x0v, y0v, rfxv, rfyv;
#endif
LCPModelCommon();
bool empty() const; // is it empty
void print() const; // printf all values
@@ -137,9 +133,8 @@ public:
void correctDistortion(double& x, double& y) const; // MUST be the first stage
void correctCA(double& x, double& y, int channel) const;
float calcVignetteFac (int x, int y) const; // MUST be in RAW
#if defined( __SSE2__ ) && defined( __x86_64__ )
vfloat calcVignetteFac(vfloat x, vfloat y) const;
#endif
void processVignetteLine(int width, int y, float *line) const;
void processVignetteLine3Channels(int width, int y, float *line) const;
};
}
#endif