cancel
Showing results for 
Search instead for 
Did you mean: 

Update the color config for the VD66GY sensor

FB__1
Associate III

 

Hello,


On the STM32N6, I am using DCMIPP_PIXEL_PACKER_FORMAT_YUV422_1.
I am seeing the correct coloring when using CMW_MIRRORFLIP_NONE and the incorrect coloring when setting CMW_MIRRORFLIP_FLIP.

 

Any help getting the correct DCMIPP_ColorConversionConfTypeDef color_conf for the CMW_MIRRORFLIP_FLIP ?

 

...

 
if (HAL_DCMIPP_PIPE_EnableRedBlueSwap(&hcamera_dcmipp, DCMIPP_PIPE1) != HAL_OK)

 {

Error_Handler();

 }



#define N10(val) (((val) ^ 0x7FF) + 1)
 DCMIPP_ColorConversionConfTypeDef color_conf = {
 .ClampOutputSamples = ENABLE,
 .OutputSamplesType = DCMIPP_CLAMP_YUV,
 .RR = N10(26), .RG = N10(87), .RB = 112, .RA = 128,
 .GR = 47, .GG = 157, .GB = 16, .GA = 16,
 .BR = 112, .BG = N10(102), .BB = N10(10), .BA = 128,
 };



if (HAL_DCMIPP_PIPE_SetYUVConversionConfig(&hcamera_dcmipp, DCMIPP_PIPE1, &color_conf) != HAL_OK)

 {

Error_Handler();

 }



if (HAL_DCMIPP_PIPE_EnableYUVConversion(&hcamera_dcmipp, DCMIPP_PIPE1) != HAL_OK)

 {

Error_Handler();

 }

 

0 REPLIES 0