Lines Matching refs:ximage
99 if (mem->ximage) in gst_ximage_memory_free()
100 XDestroyImage (mem->ximage); in gst_ximage_memory_free()
104 if (mem->ximage) { in gst_ximage_memory_free()
105 XDestroyImage (mem->ximage); in gst_ximage_memory_free()
125 return mem->ximage->data + mem->parent.offset; in ximage_memory_map()
161 sub->ximage = mem->ximage; in ximage_memory_share()
248 mem->ximage = XShmCreateImage (xcontext->disp, in ximage_memory_alloc()
251 if (!mem->ximage || error_caught) { in ximage_memory_alloc()
273 mem->size = mem->ximage->bytes_per_line * mem->ximage->height; in ximage_memory_alloc()
276 mem->size, width, mem->ximage->bytes_per_line); in ximage_memory_alloc()
291 mem->ximage->data = mem->SHMInfo.shmaddr; in ximage_memory_alloc()
312 mem->ximage = XCreateImage (xcontext->disp, in ximage_memory_alloc()
315 if (!mem->ximage || error_caught) in ximage_memory_alloc()
320 if ((mem->ximage->bytes_per_line % 4) != 0) { in ximage_memory_alloc()
326 mem->size = mem->ximage->bytes_per_line * mem->ximage->height; in ximage_memory_alloc()
332 GST_ROUND_UP_4 (mem->ximage->bytes_per_line) * mem->ximage->height; in ximage_memory_alloc()
336 mem->ximage->data = g_malloc (allocsize + align); in ximage_memory_alloc()
339 "stride %d", mem->size, allocsize, width, mem->ximage->bytes_per_line); in ximage_memory_alloc()
344 if ((offset = ((guintptr) mem->ximage->data & align))) in ximage_memory_alloc()
348 mem->ximage->data, align, offset); in ximage_memory_alloc()
425 XImage *ximage; in gst_x_image_sink_check_xshm_calls() local
448 ximage = XShmCreateImage (xcontext->disp, xcontext->visual, in gst_x_image_sink_check_xshm_calls()
453 if (!ximage || error_caught) { in gst_x_image_sink_check_xshm_calls()
457 size = ximage->height * ximage->bytes_per_line; in gst_x_image_sink_check_xshm_calls()
474 ximage->data = SHMInfo.shmaddr; in gst_x_image_sink_check_xshm_calls()
519 if (ximage) in gst_x_image_sink_check_xshm_calls()
520 XDestroyImage (ximage); in gst_x_image_sink_check_xshm_calls()
637 GstBuffer *ximage; in ximage_buffer_pool_alloc() local
642 ximage = gst_buffer_new (); in ximage_buffer_pool_alloc()
645 gst_buffer_unref (ximage); in ximage_buffer_pool_alloc()
648 gst_buffer_append_memory (ximage, mem); in ximage_buffer_pool_alloc()
655 meta = gst_buffer_add_video_meta_full (ximage, GST_VIDEO_FRAME_FLAG_NONE, in ximage_buffer_pool_alloc()
662 *buffer = ximage; in ximage_buffer_pool_alloc()