示例#1
0
LOCAL void GSP_SetMiscParameter(gsp_context_t *gspCtx)
{
    if(!gspCtx->gsp_cfg.layer0_info.layer_en && !gspCtx->gsp_cfg.layer1_info.layer_en) {
        return ;
    }

    GSP_L0_ENABLE_SET(gspCtx->gsp_cfg.layer0_info.layer_en);
    GSP_L1_ENABLE_SET(gspCtx->gsp_cfg.layer1_info.layer_en);

    if(gspCtx->gsp_cfg.layer0_info.scaling_en == 1) {
        GSP_SCALESTATUS_RESET();
    }
    GSP_SCALE_ENABLE_SET(gspCtx->gsp_cfg.layer0_info.scaling_en);


    GSP_PMARGB_ENABLE_SET(gspCtx->gsp_cfg.layer0_info.pmargb_en||gspCtx->gsp_cfg.layer1_info.pmargb_en);
    GSP_L0_PMARGBMODE_SET(gspCtx->gsp_cfg.layer0_info.pmargb_mod);
    GSP_L1_PMARGBMODE_SET(gspCtx->gsp_cfg.layer1_info.pmargb_mod);
    GSP_PAGES_BOARDER_SPLIT_SET(gspCtx->gsp_cfg.misc_info.split_pages);
    GSP_Y2R_OPT_SET(gspCtx->gsp_cfg.misc_info.y2r_opt);
    GSP_DITHER_ENABLE_SET(gspCtx->gsp_cfg.misc_info.dithering_en);
    //GSP_AHB_CLOCK_SET(gspCtx->gsp_cfg.misc_info.ahb_clock);
    GSP_CLOCK_SET(gspCtx->gsp_cfg.misc_info.gsp_clock);
    GSP_EMC_GAP_SET(gspCtx->gsp_cfg.misc_info.gsp_gap);
}
LOCAL void GSP_SetMiscParameter(void)
{
    if(!s_gsp_cfg.layer0_info.layer_en && !s_gsp_cfg.layer1_info.layer_en)
    {
        return ;
    }

    GSP_L0_ENABLE_SET(s_gsp_cfg.layer0_info.layer_en);
    GSP_L1_ENABLE_SET(s_gsp_cfg.layer1_info.layer_en);

    if(s_gsp_cfg.layer0_info.scaling_en == 1)
    {
        GSP_SCALESTATUS_RESET();
    }
    GSP_SCALE_ENABLE_SET(s_gsp_cfg.layer0_info.scaling_en);


    GSP_PMARGB_ENABLE_SET(s_gsp_cfg.layer0_info.pmargb_en||s_gsp_cfg.layer1_info.pmargb_en);
    GSP_L0_PMARGBMODE_SET(s_gsp_cfg.layer0_info.pmargb_mod);
    GSP_L1_PMARGBMODE_SET(s_gsp_cfg.layer1_info.pmargb_mod);


    GSP_DITHER_ENABLE_SET(s_gsp_cfg.misc_info.dithering_en);
    //GSP_AHB_CLOCK_SET(s_gsp_cfg.misc_info.ahb_clock);
    GSP_CLOCK_SET(s_gsp_cfg.misc_info.gsp_clock);
    GSP_EMC_GAP_SET(s_gsp_cfg.misc_info.gsp_gap);
}