PDK API Guide for J721E
|
RGB to HSV color conversion module This module is used to convert from RGB format to Saturation and Greyscale value. Does not support hue generation. Greyscale is computed by doing weighter average of three input, H1, H2 and H3. H1 and H2 inputs can be selected from different sources. Saturation block first applies dynamic white balance offset to correct the saturation plane and then calculates the saturation.
Data Fields | |
uint32_t | inputSelect |
uint32_t | h1Input |
uint32_t | h2Input |
uint32_t | weights [FCP_RGB2HSV_MAX_IN_COLOR] |
uint32_t | offset |
uint32_t | useWbDataForGreyCalc |
uint32_t | wbOffset [FCP_RGB2HSV_MAX_IN_COLOR] |
uint32_t | threshold [FCP_RGB2HSV_MAX_IN_COLOR] |
uint32_t | satMinThr |
uint32_t | satMode |
uint32_t | satDiv |
uint32_t Fcp_Rgb2HsvConfig::inputSelect |
Flag to select input source for RGB2HSV RGB input for the RGB2HSV module can come either from the output of the Contrast block, ie after gamma correcttion or from the input of the contrast block ie before gamma correction. Used to configure MuxRGBHSV mux, Refer Fcp_Rgb2HsvInput for valid values
uint32_t Fcp_Rgb2HsvConfig::h1Input |
Flag to select H1 input, it can either original color Red or Min of RGB, Configures MuxRGBHSV_H1, Refer Fcp_Rgb2HsvH1InputSelect for valid values
uint32_t Fcp_Rgb2HsvConfig::h2Input |
Flag to select H2 input, it can either original color Blue or Max of RGB, Configures MuxRGBHSV_H2, Refer Fcp_Rgb2HsvH2InputSelect for valid values
uint32_t Fcp_Rgb2HsvConfig::weights[FCP_RGB2HSV_MAX_IN_COLOR] |
Weights used in calculating grey scale value 12b signed with a range of -8 to +7.9996 in S12Q8 format
uint32_t Fcp_Rgb2HsvConfig::offset |
Offset used in calculating grey scale value Signed 13 bits in S13Q11 format with a range of -2 to +1.995
uint32_t Fcp_Rgb2HsvConfig::useWbDataForGreyCalc |
Flag to select either white balance correct data or uncorrected data for V/grey calculation. TRUE: Uses white balance corrected data FALSE: Uses uncorrected data Configures Mux MuxRGBHSV_Mux_V
uint32_t Fcp_Rgb2HsvConfig::wbOffset[FCP_RGB2HSV_MAX_IN_COLOR] |
Dynamic White Balance offset applied to correct the saturation plane Applied only if independent pixel values are below a threshold (RGBHSV_WB_LINLOGTHR_*)
uint32_t Fcp_Rgb2HsvConfig::threshold[FCP_RGB2HSV_MAX_IN_COLOR] |
Dynamic White Balance threshold, pixel value is compared againts this threshold and wbOffset is applied only if pixel value is below this threshold. in U12 format index 0 is for Red channel format index 1 is for green channel format index 2 is for blue channel format
uint32_t Fcp_Rgb2HsvConfig::satMinThr |
Threshold for comparing Min(RGB) limit Refer to FCP specs for more details
uint32_t Fcp_Rgb2HsvConfig::satMode |
Saturation Mode, used for selecting the numerator in saturation calculation, Refer Fcp_SaturationMode for valid values
uint32_t Fcp_Rgb2HsvConfig::satDiv |
Saturation Divisor, Used for selecting denominator for the divisor in saturatin calculation Refer Fcp_SaturationDiv for valid values