Skip to content

Commit

Permalink
Fix the problem of GC4653 color anomaly
Browse files Browse the repository at this point in the history
  • Loading branch information
Z2Z-GuGu committed May 28, 2024
1 parent e4c87a6 commit 58f1952
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Binary file modified middleware/v2/lib/libsample.a
Binary file not shown.
Binary file modified middleware/v2/lib/libsample.so
Binary file not shown.
5 changes: 5 additions & 0 deletions middleware/v2/sample/common/sample_common_sensor.c
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,9 @@ CVI_S32 SAMPLE_COMM_SNS_GetDevAttr(SAMPLE_SNS_TYPE_E enSnsType, VI_DEV_ATTR_S *p
case GCORE_GC1084_SLAVE_MIPI_1M_30FPS_10BIT:
case GCORE_GC4653_MIPI_4M_30FPS_10BIT:
case GCORE_GC4653_SLAVE_MIPI_4M_30FPS_10BIT:
pstViDevAttr->enBayerFormat = BAYER_FORMAT_RG;
// pstViDevAttr->enBayerFormat = BAYER_FORMAT_GB;
break;
// omnivision
case OV_OS04A10_MIPI_4M_1440P_30FPS_12BIT:
case OV_OS04A10_MIPI_4M_1440P_30FPS_10BIT_WDR2TO1:
Expand Down Expand Up @@ -1126,6 +1129,8 @@ CVI_S32 SAMPLE_COMM_SNS_GetIspAttrBySns(SAMPLE_SNS_TYPE_E enSnsType, ISP_PUB_ATT
case GCORE_GC1084_SLAVE_MIPI_1M_30FPS_10BIT:
case GCORE_GC4653_MIPI_4M_30FPS_10BIT:
case GCORE_GC4653_SLAVE_MIPI_4M_30FPS_10BIT:
pstPubAttr->enBayer = BAYER_RGGB;
break;
// omnivision
case OV_OS04A10_MIPI_4M_1440P_30FPS_12BIT:
case OV_OS04A10_MIPI_4M_1440P_30FPS_10BIT_WDR2TO1:
Expand Down

0 comments on commit 58f1952

Please sign in to comment.