• Home
  • Raw
  • Download

Lines Matching refs:ximage

45   emeta->ximage = NULL;  in gst_meta_ximage_init()
91 XImage *ximage; in ximageutil_check_xshm_calls() local
114 ximage = XShmCreateImage (xcontext->disp, xcontext->visual, in ximageutil_check_xshm_calls()
119 if (!ximage || error_caught) { in ximageutil_check_xshm_calls()
123 size = ximage->height * ximage->bytes_per_line; in ximageutil_check_xshm_calls()
142 ximage->data = SHMInfo.shmaddr; in ximageutil_check_xshm_calls()
170 if (ximage) in ximageutil_check_xshm_calls()
171 XDestroyImage (ximage); in ximageutil_check_xshm_calls()
335 gst_ximagesrc_buffer_dispose (GstBuffer * ximage) in gst_ximagesrc_buffer_dispose() argument
341 meta = GST_META_XIMAGE_GET (ximage); in gst_ximagesrc_buffer_dispose()
350 ret = meta->return_func (parent, ximage); in gst_ximagesrc_buffer_dispose()
357 gst_ximage_buffer_free (GstBuffer * ximage) in gst_ximage_buffer_free() argument
361 meta = GST_META_XIMAGE_GET (ximage); in gst_ximage_buffer_free()
366 gst_buffer_unref (ximage); in gst_ximage_buffer_free()
374 GstBuffer *ximage = NULL; in gst_ximageutil_ximage_new() local
378 ximage = gst_buffer_new (); in gst_ximageutil_ximage_new()
379 GST_MINI_OBJECT_CAST (ximage)->dispose = in gst_ximageutil_ximage_new()
382 meta = GST_META_XIMAGE_ADD (ximage); in gst_ximageutil_ximage_new()
391 meta->ximage = XShmCreateImage (xcontext->disp, in gst_ximageutil_ximage_new()
394 if (!meta->ximage) { in gst_ximageutil_ximage_new()
404 meta->size = meta->ximage->bytes_per_line * meta->ximage->height; in gst_ximageutil_ximage_new()
417 meta->ximage->data = meta->SHMInfo.shmaddr; in gst_ximageutil_ximage_new()
428 meta->ximage = XCreateImage (xcontext->disp, in gst_ximageutil_ximage_new()
432 if (!meta->ximage) in gst_ximageutil_ximage_new()
436 meta->size = meta->ximage->bytes_per_line * meta->ximage->height; in gst_ximageutil_ximage_new()
437 meta->ximage->data = g_malloc (meta->size); in gst_ximageutil_ximage_new()
443 gst_buffer_append_memory (ximage, in gst_ximageutil_ximage_new()
444 gst_memory_new_wrapped (GST_MEMORY_FLAG_NO_SHARE, meta->ximage->data, in gst_ximageutil_ximage_new()
452 gst_ximage_buffer_free (ximage); in gst_ximageutil_ximage_new()
453 ximage = NULL; in gst_ximageutil_ximage_new()
456 return ximage; in gst_ximageutil_ximage_new()
461 gst_ximageutil_ximage_destroy (GstXContext * xcontext, GstBuffer * ximage) in gst_ximageutil_ximage_destroy() argument
465 meta = GST_META_XIMAGE_GET (ximage); in gst_ximageutil_ximage_destroy()
471 g_return_if_fail (ximage != NULL); in gst_ximageutil_ximage_destroy()
480 if (meta->ximage) in gst_ximageutil_ximage_destroy()
481 XDestroyImage (meta->ximage); in gst_ximageutil_ximage_destroy()
486 if (meta->ximage) { in gst_ximageutil_ximage_destroy()
487 XDestroyImage (meta->ximage); in gst_ximageutil_ximage_destroy()