SetCscParams (Setting a Parameter Value as Required)
Syntax
void SetCscParams(bool csc_switch = false,
int16_t cscMatrixR0C0 = 0,
int16_t cscMatrixR0C1 = 0,
int16_t cscMatrixR0C2 = 0,
int16_t cscMatrixR1C0 = 0,
int16_t cscMatrixR1C1 = 0,
int16_t cscMatrixR1C2 = 0,
int16_t cscMatrixR2C0 = 0,
int16_t cscMatrixR2C1 = 0,
int16_t cscMatrixR2C2 = 0,
uint8_t cscOutputBiasR0 = 0,
uint8_t cscOutputBiasR1 = 0,
uint8_t cscOutputBiasR2 = 0,
uint8_t cscInputBiasR0 = 0,
uint8_t cscInputBiasR1 = 0,
uint8_t cscInputBiasR2 = 0);
Function Description
You can call this API to flexibly configure CSC parameters in AIPP as required.
Parameter Description
Parameter |
Input/Output |
Type |
Description |
---|---|---|---|
csc_switch |
Input |
bool |
CSC switch. It is set to false by default. |
cscMatrixR0C0 |
Input |
int16_t |
CSC matrix parameter. |
cscMatrixR0C1 |
Input |
int16_t |
CSC matrix parameter. |
cscMatrixR0C2 |
Input |
int16_t |
CSC matrix parameter. |
cscMatrixR1C0 |
Input |
int16_t |
CSC matrix parameter. |
cscMatrixR1C1 |
Input |
int16_t |
CSC matrix parameter. |
cscMatrixR1C2 |
Input |
int16_t |
CSC matrix parameter. |
cscMatrixR2C0 |
Input |
int16_t |
CSC matrix parameter. |
cscMatrixR2C1 |
Input |
int16_t |
CSC matrix parameter. |
cscMatrixR2C2 |
Input |
int16_t |
CSC matrix parameter. |
cscOutputBiasR0 |
Input |
uint8_t |
Output bias for RGB-to-YUV conversion. The default value is 0. You can set only some configuration items. |
cscOutputBiasR1 |
Input |
uint8_t |
Output bias for RGB-to-YUV conversion. The default value is 0. You can set only some configuration items. |
cscOutputBiasR2 |
Input |
uint8_t |
Output bias for RGB-to-YUV conversion. The default value is 0. You can set only some configuration items. |
cscInputBiasR0 |
Input |
uint8_t |
Input bias for YUV-to-RGB conversion. The default value is 0. You can set only some configuration items. |
cscInputBiasR1 |
Input |
uint8_t |
Input bias for YUV-to-RGB conversion. The default value is 0. You can set only some configuration items. |
cscInputBiasR2 |
Input |
uint8_t |
Input bias for YUV-to-RGB conversion. The default value is 0. You can set only some configuration items. |
Return Value
None
Exception Handling
None
Restriction
None
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot