9p031里面没有找到相关的设置,只在vpfe里面有ccolp的设置
dm365ccdc.c里面有与之对应的代码:
.config_params = [
.data_size = CCDC_12_BITS,
.data_shift = CCDC_NO_SHIFT,
.col_pat_field0 = [
.olop = CCDC_GREEN_BLUE,
.olep = CCDC_BLUE,
.elop = CCDC_RED,
.elep = CCDC_GREEN_RED, ],
.col_pat_field1 = [
.olop = CCDC_GREEN_BLUE,
.olep = CCDC_BLUE,
.elop = CCDC_RED,
.elep = CCDC_GREEN_RED, ],
val = (params->config_params.col_pat_field0.olop) |
(params->config_params.col_pat_field0.olep << 2) |
(params->config_params.col_pat_field0.elop << 4) |
(params->config_params.col_pat_field0.elep << 6) |
(params->config_params.col_pat_field1.olop << 8) |
(params->config_params.col_pat_field1.olep << 10) |
(params->config_params.col_pat_field1.elop << 12) |
(params->config_params.col_pat_field1.elep << 14);
regw(val, CCOLP);
我刚开始想可能是蓝色红色对调,所以把上面红色的代码改成了:
.olep = CCDC_RED,
.elop = CCDC_BLUE,
结果还是那样的,我不知道有没有改对,是根据什么来改的?
如果是根据bayer格式来改的,又怎么对应呢?