Lines Matching defs:images
120 struct g2d_image *images;
126 images = calloc(batch, sizeof(struct g2d_image));
127 if (images == NULL) {
128 fprintf(stderr, "error: failed to allocate G2D images.\n");
133 images[i].width = buf_width;
134 images[i].height = buf_height;
135 images[i].stride = buf_width * 4;
136 images[i].color_mode = G2D_COLOR_FMT_ARGB8888 | G2D_ORDER_AXRGB;
137 images[i].buf_type = G2D_IMGBUF_GEM;
138 images[i].bo[0] = bo->handle;
170 images[j].color = rand();
174 ret = g2d_solid_fill(ctx, &images[j], x, y, w, h);
206 free(images);