You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
484 B
16 lines
484 B
#include "rk_aiq_isp39_modules.h"
|
|
|
|
void rk_aiq_cp10_params_cvt(void* attr, isp_params_t* isp_params)
|
|
{
|
|
struct isp2x_cproc_cfg* pFix = &isp_params->isp_cfg->others.cproc_cfg;
|
|
cp_param_t *cp_param = (cp_param_t *) attr;
|
|
cp_params_static_t* psta = &cp_param->sta;
|
|
|
|
pFix->contrast = (uint8_t)(psta->contrast);
|
|
pFix->sat = (uint8_t)(psta->saturation);
|
|
pFix->brightness = (uint8_t)(psta->brightness - 128);
|
|
pFix->hue = (uint8_t)(psta->hue - 128);
|
|
|
|
return;
|
|
}
|