static BOOL disp_drv_dpi_init_context(void)
{
   dpiTmpBufFormat = get_tmp_buffer_dpi_format();
   lcdTmpBufFormat = get_tmp_buffer_lcd_format();
   dpiTmpBufBpp    = get_tmp_buffer_bpp();
   
   if (lcm_drv != NULL && lcm_params!= NULL) 
      return TRUE;
   else 
      printk("%s, lcm_drv=0x%08x, lcm_params=0x%08x\n", __func__, (unsigned int)lcm_drv, (unsigned int)lcm_params);
   
   if (NULL == lcm_drv) {
      printk("%s, lcm_drv is NULL\n", __func__);
      return FALSE;
   }
   
   return TRUE;
}
Example #2
0
static UINT32 dpi_get_dithering_bpp(void)
{
	return MIN(get_tmp_buffer_bpp() * 8,PANEL_COLOR_FORMAT_TO_BPP(dpi_get_panel_color_format()));
}