|
|
@ -173,8 +173,8 @@ status_t OpcodeListBuilder::addBayerGainMapsForMetadata(uint32_t lsmWidth,
|
|
|
|
|
|
|
|
|
|
|
|
status_t err = addGainMap(/*top*/redTop,
|
|
|
|
status_t err = addGainMap(/*top*/redTop,
|
|
|
|
/*left*/redLeft,
|
|
|
|
/*left*/redLeft,
|
|
|
|
/*bottom*/activeAreaHeight - 1,
|
|
|
|
/*bottom*/activeAreaHeight,
|
|
|
|
/*right*/activeAreaWidth - 1,
|
|
|
|
/*right*/activeAreaWidth,
|
|
|
|
/*plane*/0,
|
|
|
|
/*plane*/0,
|
|
|
|
/*planes*/1,
|
|
|
|
/*planes*/1,
|
|
|
|
/*rowPitch*/2,
|
|
|
|
/*rowPitch*/2,
|
|
|
@ -191,8 +191,8 @@ status_t OpcodeListBuilder::addBayerGainMapsForMetadata(uint32_t lsmWidth,
|
|
|
|
|
|
|
|
|
|
|
|
err = addGainMap(/*top*/greenEvenTop,
|
|
|
|
err = addGainMap(/*top*/greenEvenTop,
|
|
|
|
/*left*/greenEvenLeft,
|
|
|
|
/*left*/greenEvenLeft,
|
|
|
|
/*bottom*/activeAreaHeight - 1,
|
|
|
|
/*bottom*/activeAreaHeight,
|
|
|
|
/*right*/activeAreaWidth - 1,
|
|
|
|
/*right*/activeAreaWidth,
|
|
|
|
/*plane*/0,
|
|
|
|
/*plane*/0,
|
|
|
|
/*planes*/1,
|
|
|
|
/*planes*/1,
|
|
|
|
/*rowPitch*/2,
|
|
|
|
/*rowPitch*/2,
|
|
|
@ -209,8 +209,8 @@ status_t OpcodeListBuilder::addBayerGainMapsForMetadata(uint32_t lsmWidth,
|
|
|
|
|
|
|
|
|
|
|
|
err = addGainMap(/*top*/greenOddTop,
|
|
|
|
err = addGainMap(/*top*/greenOddTop,
|
|
|
|
/*left*/greenOddLeft,
|
|
|
|
/*left*/greenOddLeft,
|
|
|
|
/*bottom*/activeAreaHeight - 1,
|
|
|
|
/*bottom*/activeAreaHeight,
|
|
|
|
/*right*/activeAreaWidth - 1,
|
|
|
|
/*right*/activeAreaWidth,
|
|
|
|
/*plane*/0,
|
|
|
|
/*plane*/0,
|
|
|
|
/*planes*/1,
|
|
|
|
/*planes*/1,
|
|
|
|
/*rowPitch*/2,
|
|
|
|
/*rowPitch*/2,
|
|
|
@ -227,8 +227,8 @@ status_t OpcodeListBuilder::addBayerGainMapsForMetadata(uint32_t lsmWidth,
|
|
|
|
|
|
|
|
|
|
|
|
err = addGainMap(/*top*/blueTop,
|
|
|
|
err = addGainMap(/*top*/blueTop,
|
|
|
|
/*left*/blueLeft,
|
|
|
|
/*left*/blueLeft,
|
|
|
|
/*bottom*/activeAreaHeight - 1,
|
|
|
|
/*bottom*/activeAreaHeight,
|
|
|
|
/*right*/activeAreaWidth - 1,
|
|
|
|
/*right*/activeAreaWidth,
|
|
|
|
/*plane*/0,
|
|
|
|
/*plane*/0,
|
|
|
|
/*planes*/1,
|
|
|
|
/*planes*/1,
|
|
|
|
/*rowPitch*/2,
|
|
|
|
/*rowPitch*/2,
|
|
|
@ -265,8 +265,8 @@ status_t OpcodeListBuilder::addMonochromeGainMapsForMetadata(uint32_t lsmWidth,
|
|
|
|
|
|
|
|
|
|
|
|
status_t err = addGainMap(/*top*/0,
|
|
|
|
status_t err = addGainMap(/*top*/0,
|
|
|
|
/*left*/0,
|
|
|
|
/*left*/0,
|
|
|
|
/*bottom*/activeAreaHeight - 1,
|
|
|
|
/*bottom*/activeAreaHeight,
|
|
|
|
/*right*/activeAreaWidth - 1,
|
|
|
|
/*right*/activeAreaWidth,
|
|
|
|
/*plane*/0,
|
|
|
|
/*plane*/0,
|
|
|
|
/*planes*/1,
|
|
|
|
/*planes*/1,
|
|
|
|
/*rowPitch*/1,
|
|
|
|
/*rowPitch*/1,
|
|
|
@ -364,8 +364,8 @@ status_t OpcodeListBuilder::addWarpRectilinearForMetadata(const float* kCoeffs,
|
|
|
|
return BAD_VALUE;
|
|
|
|
return BAD_VALUE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
double normalizedOCX = opticalCenterX / static_cast<double>(activeArrayWidth - 1);
|
|
|
|
double normalizedOCX = opticalCenterX / static_cast<double>(activeArrayWidth);
|
|
|
|
double normalizedOCY = opticalCenterY / static_cast<double>(activeArrayHeight - 1);
|
|
|
|
double normalizedOCY = opticalCenterY / static_cast<double>(activeArrayHeight);
|
|
|
|
|
|
|
|
|
|
|
|
normalizedOCX = CLAMP(normalizedOCX, 0, 1);
|
|
|
|
normalizedOCX = CLAMP(normalizedOCX, 0, 1);
|
|
|
|
normalizedOCY = CLAMP(normalizedOCY, 0, 1);
|
|
|
|
normalizedOCY = CLAMP(normalizedOCY, 0, 1);
|
|
|
|