Lines Matching refs:ctx

194 	struct g2d_context *ctx;
199 ctx = g2d_init(dev->fd);
200 if (!ctx)
225 ret = g2d_solid_fill(ctx, &img, x, y, w, h);
229 ret = g2d_exec(ctx);
235 g2d_fini(ctx);
244 struct g2d_context *ctx;
250 ctx = g2d_init(dev->fd);
251 if (!ctx)
295 ret = g2d_solid_fill(ctx, &src_img, src_x, src_y, img_w, img_h);
305 ret = g2d_copy(ctx, &src_img, &dst_img, src_x, src_y, dst_x, dst_y,
310 g2d_exec(ctx);
318 g2d_fini(ctx);
328 struct g2d_context *ctx;
350 ctx = g2d_init(dev->fd);
351 if (!ctx)
398 ret = g2d_solid_fill(ctx, &img, 0, 0, screen_width, screen_height) ||
399 g2d_copy(ctx, &tmp_img, &img, 0, 0, cur_x, cur_y, img_w, img_h);
402 ret = g2d_exec(ctx);
425 ret = g2d_move(ctx, &img, cur_x, cur_y, cur_x + s->x, cur_y + s->y,
428 ret = g2d_exec(ctx);
440 g2d_fini(ctx);
452 struct g2d_context *ctx;
458 ctx = g2d_init(dev->fd);
459 if (!ctx)
501 ret = g2d_solid_fill(ctx, &src_img, src_x, src_y, img_w , img_h);
506 ret = g2d_solid_fill(ctx, &src_img, 5, 5, 100, 100);
516 ret = g2d_copy_with_scale(ctx, &src_img, &dst_img, 5, 5, 100, 100,
521 g2d_exec(ctx);
529 g2d_fini(ctx);
540 struct g2d_context *ctx;
546 ctx = g2d_init(dev->fd);
547 if (!ctx)
592 ret = g2d_solid_fill(ctx, &src_img, src_x, src_y, img_w, img_h);
597 ret = g2d_solid_fill(ctx, &src_img, 5, 5, 200, 200);
608 ret = g2d_solid_fill(ctx, &dst_img, dst_x, dst_y, img_w, img_h);
613 ret = g2d_solid_fill(ctx, &dst_img, 105, 105, 200, 200);
617 ret = g2d_blend(ctx, &src_img, &dst_img, 5, 5, 105, 105, 200, 200,
622 g2d_exec(ctx);
630 g2d_fini(ctx);
641 struct g2d_context *ctx;
647 ctx = g2d_init(dev->fd);
648 if (!ctx)
697 ret = g2d_solid_fill(ctx, &dst_img, src_x, src_y, screen_width, screen_height);
701 ret = g2d_copy(ctx, &src_img, &dst_img, src_x, src_y, dst_x, dst_y,
706 g2d_exec(ctx);
710 g2d_fini(ctx);