Beispiel #1
0
static void main_disp_path_setup(u32 width, u32 height, u32 pixel_clk,
				 bool dual_dsi_mode)
{
	/* Setup OVL */
	ovl_set_roi(width, height, 0);

	/* Setup RDMA0 */
	rdma_config(width, height, pixel_clk);

	/* Setup OD */
	od_start(width, height);

	/* Setup UFOE */
	ufoe_start(width, height, dual_dsi_mode);

	if (dual_dsi_mode)
		split_start();

	/* Setup Color */
	color_start(width, height);

	/* Setup main path connection */
	disp_config_main_path_connection(dual_dsi_mode);

	/* Setup main path mutex */
	disp_config_main_path_mutex();
}
Beispiel #2
0
static void find_best_edge_split(mesh* m, split* s, ment e, ment v[2])
{
  double mq;
  double q;
  unsigned ne;
  unsigned i;
  ment v_[2];
  ne = simplex_ndown[e.t][EDGE];
  mq = -1;
  for (i = 0; i < ne; ++i) {
    mesh_down(m, e, EDGE, i, v_);
    split_start(s, EDGE, v_, ment_null);
    q = split_quality(s);
    if (q > mq) {
      mq = q;
      v[0] = v_[0];
      v[1] = v_[1];
    }
    split_cancel(s);
  }
}
Beispiel #3
0
static
void * parsing_thread (void *arg)
{
    return (void *)split_start((mbox_t *)arg);
}