Patch to make autoexposure of thumbs and preview image agree. The problem was that white balance was applied to raw data for preview image but not for thumbs. I sure hope all this improves with rtengine2.
This commit is contained in:
@@ -890,7 +890,7 @@
|
||||
+ tpp->aeHistogram = new unsigned int[65536>>tpp->aeHistCompression];
|
||||
+ memset (tpp->aeHistogram, 0, (65536>>tpp->aeHistCompression)*sizeof(int));
|
||||
+ int radd = 4;
|
||||
+ int gadd = 2;
|
||||
+ int gadd = 4;
|
||||
+ int badd = 4;
|
||||
+ if (!filter)
|
||||
+ radd = gadd = badd = 1;
|
||||
@@ -907,11 +907,11 @@
|
||||
+ }
|
||||
+ for (int j=start; j<end; j++)
|
||||
+ if (FISGREEN(filter,i,j))
|
||||
+ tpp->aeHistogram[image[i* ::width+j][1]>>tpp->aeHistCompression]+=gadd;
|
||||
+ tpp->aeHistogram[CLIP((int)(tpp->camwbGreen*image[i* ::width+j][1]))>>tpp->aeHistCompression]+=gadd;
|
||||
+ else if (FISRED(filter,i,j))
|
||||
+ tpp->aeHistogram[image[i* ::width+j][0]>>tpp->aeHistCompression]+=radd;
|
||||
+ tpp->aeHistogram[CLIP((int)(tpp->camwbRed*image[i* ::width+j][0]))>>tpp->aeHistCompression]+=radd;
|
||||
+ else if (FISBLUE(filter,i,j))
|
||||
+ tpp->aeHistogram[image[i* ::width+j][2]>>tpp->aeHistCompression]+=badd;
|
||||
+ tpp->aeHistogram[CLIP((int)(tpp->camwbBlue*image[i* ::width+j][2]))>>tpp->aeHistCompression]+=badd;
|
||||
+ }
|
||||
+
|
||||
+t5.set ();
|
||||
|
Reference in New Issue
Block a user