Lines Matching defs:image
979 /* Try to find a free image. */
982 /* We found a non-busy image */
1055 struct wsi_wl_image *image = &chain->images[image_index];
1056 memcpy(image->shm_ptr, image->base.cpu_map,
1057 image->base.row_pitches[0] * chain->extent.height);
1100 struct wsi_wl_image *image = data;
1102 assert(image->buffer == buffer);
1104 image->busy = false;
1114 struct wsi_wl_image *image = (struct wsi_wl_image *)imagew;
1127 image->shm_fd = fd;
1128 image->shm_ptr = ptr;
1129 image->shm_size = size;
1136 struct wsi_wl_image *image,
1144 &image->base);
1152 wsi_wl_alloc_image_shm(&image->base, image->base.row_pitches[0] *
1155 assert(image->shm_ptr != NULL);
1159 image->shm_fd,
1160 image->shm_size);
1162 image->buffer = wl_shm_pool_create_buffer(pool, 0, chain->extent.width,
1164 image->base.row_pitches[0],
1178 for (int i = 0; i < image->base.num_planes; i++) {
1180 image->base.dma_buf_fd,
1182 image->base.offsets[i],
1183 image->base.row_pitches[i],
1184 image->base.drm_modifier >> 32,
1185 image->base.drm_modifier & 0xffffffff);
1188 image->buffer =
1202 if (!image->buffer)
1205 wl_buffer_add_listener(image->buffer, &buffer_listener, image);
1210 wsi_destroy_image(&chain->base, &image->base);