Skip to content

Commit

Permalink
tiare: camera: Change Black pattern level
Browse files Browse the repository at this point in the history
Issue: ov13855 camera sensor has wrong black pattern values which is causing green issues with GCAM on hdr + mode

Fix: The workaround for this issue is to change the Black pattern value according to ominivision camera sensor
Signed-off-by: Aryan Sinha <sinha.aryan03@gmail.com>
  • Loading branch information
Coderessurect authored and techyminati committed Apr 12, 2022
1 parent 2f2454e commit 4f63fce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions camera/QCamera2/HAL3/QCamera3HWI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7501,8 +7501,8 @@ int QCamera3HardwareInterface::initStaticMetadata(uint32_t cameraId)
staticInfo.update(ANDROID_SENSOR_INFO_WHITE_LEVEL,
&gCamCapability[cameraId]->white_level, 1);

if(facingBack && gCamCapability[cameraId]->black_level_pattern[0] < 32) {
int32_t black_level_pattern_custom[BLACK_LEVEL_PATTERN_CNT] = {64,64,64,64};
if(facingBack && gCamCapability[cameraId]->black_level_pattern[0] < 16) {
int32_t black_level_pattern_custom[BLACK_LEVEL_PATTERN_CNT] = {32,32,32,32};
staticInfo.update(ANDROID_SENSOR_BLACK_LEVEL_PATTERN,
black_level_pattern_custom, BLACK_LEVEL_PATTERN_CNT);
} else {
Expand Down

0 comments on commit 4f63fce

Please sign in to comment.