am c03443b2: Fix lens shading map origin calculation.
* commit 'c03443b23de0b474080168d892cd685283c3285b': Fix lens shading map origin calculation.
This commit is contained in:
@@ -1660,10 +1660,11 @@ static sp<TiffWriter> DngCreator_setup(JNIEnv* env, jobject thiz, uint32_t image
|
|||||||
uint32_t width = static_cast<uint32_t>(entry.data.i32[2]);
|
uint32_t width = static_cast<uint32_t>(entry.data.i32[2]);
|
||||||
uint32_t height = static_cast<uint32_t>(entry.data.i32[3]);
|
uint32_t height = static_cast<uint32_t>(entry.data.i32[3]);
|
||||||
if (entry2.count > 0 && entry2.count == lsmWidth * lsmHeight * 4) {
|
if (entry2.count > 0 && entry2.count == lsmWidth * lsmHeight * 4) {
|
||||||
|
// GainMap rectangle is relative to the active area origin.
|
||||||
err = builder.addGainMapsForMetadata(lsmWidth,
|
err = builder.addGainMapsForMetadata(lsmWidth,
|
||||||
lsmHeight,
|
lsmHeight,
|
||||||
ymin,
|
0,
|
||||||
xmin,
|
0,
|
||||||
height,
|
height,
|
||||||
width,
|
width,
|
||||||
opcodeCfaLayout,
|
opcodeCfaLayout,
|
||||||
|
|||||||
Reference in New Issue
Block a user