Beispiel #1
0
__s32 bsp_disp_video_stop(__u32 screen_id, __u32 hid)
{
	hid = HANDTOID(hid);
	HLID_ASSERT(hid, gdisp.screen[screen_id].max_layers);

	if(g_video[screen_id][hid].enable) {
		memset(&g_video[screen_id][hid], 0, sizeof(frame_para_t));

		disp_drc_start_ui_mode(screen_id);
		video_enhancement_stop(screen_id,hid);
		return DIS_SUCCESS;
	}	else {
		return DIS_FAIL;
	}
}
Beispiel #2
0
__s32 BSP_disp_video_stop(__u32 sel, __u32 hid)
{
    hid = HANDTOID(hid);
    HLID_ASSERT(hid, gdisp.screen[sel].max_layers);

    if(g_video[sel][hid].enable)
    {
        memset(&g_video[sel][hid], 0, sizeof(frame_para_t));
        
        Disp_drc_start_ui_mode(sel);
        video_enhancement_stop(sel,hid);
        if(sel == 1)
        {
            //disp_clk_adjust(0, 1);
        }
    	return DIS_SUCCESS;
    }
    else
    {
        return DIS_FAIL;
    }
}