Example #1
0
static int disp_ccorr_config(DISP_MODULE_ENUM module, disp_ddp_path_config *pConfig, void *cmdq)
{
	if (pConfig->dst_dirty)
		disp_ccorr_init(DISP_CCORR0, pConfig->dst_w, pConfig->dst_h, cmdq);

	return 0;
}
Example #2
0
void disp_gamma_init(disp_gamma_id_t id, unsigned int width, unsigned int height, void *cmdq)
{
    if (id == DISP_GAMMA1) {
        DISP_REG_MASK(cmdq, DISP_REG_GAMMA_EN, 0x1, 0x1);
        DISP_REG_MASK(cmdq, DISP_REG_GAMMA_SIZE, ((width << 16) | height), ~0);
    }

    disp_gamma_write_lut_reg(cmdq, id, 1);

    { /* Init CCORR */
        disp_ccorr_id_t ccorr_id = DISP_CCORR0;
        if (id == DISP_GAMMA1)
            ccorr_id = DISP_CCORR1;
        disp_ccorr_init(ccorr_id, width, height, cmdq);
    }
}