move to camconst.json the info about whether global green equilibration is needed for the camera

This commit is contained in:
Alberto Griggio
2018-06-07 20:48:53 +02:00
parent 7d5bd9808f
commit d0ec3f2dbc
4 changed files with 88 additions and 2 deletions

View File

@@ -26,6 +26,8 @@ private:
std::map<float, float> mApertureScaling;
std::vector<int> pdafPattern;
int pdafOffset;
int globalGreenEquilibration;
CameraConst();
static bool parseLevels(CameraConst *cc, int bw, void *ji);
static bool parseApertureScaling(CameraConst *cc, void *ji);
@@ -45,10 +47,13 @@ public:
void get_rawMask(int idx, int& top, int& left, int& bottom, int& right);
int get_BlackLevel(int idx, int iso_speed);
int get_WhiteLevel(int idx, int iso_speed, float fnumber);
bool has_globalGreenEquilibration();
bool get_globalGreenEquilibration();
void update_Levels(const CameraConst *other);
void update_Crop(CameraConst *other);
void update_pdafPattern(const std::vector<int> &other);
void update_pdafOffset(int other);
void update_globalGreenEquilibration(bool other);
};
class CameraConstantsStore