Lines Matching refs:ximage
88 gst_ximage_src_return_buf (GstXImageSrc * ximagesrc, GstBuffer * ximage) in gst_ximage_src_return_buf() argument
90 GstMetaXImage *meta = GST_META_XIMAGE_GET (ximage); in gst_ximage_src_return_buf()
98 ximage, meta->width, meta->height, ximagesrc->width, ximagesrc->height); in gst_ximage_src_return_buf()
100 gst_ximageutil_ximage_destroy (ximagesrc->xcontext, ximage); in gst_ximage_src_return_buf()
104 GST_LOG_OBJECT (ximagesrc, "recycling image %p in pool", ximage); in gst_ximage_src_return_buf()
106 gst_buffer_ref (ximage); in gst_ximage_src_return_buf()
108 GST_BUFFER_FLAGS (GST_BUFFER (ximage)) = 0; /* clear out any flags from the previous use */ in gst_ximage_src_return_buf()
109 ximagesrc->buffer_pool = g_slist_prepend (ximagesrc->buffer_pool, ximage); in gst_ximage_src_return_buf()
491 GstBuffer *ximage = NULL; in gst_ximage_src_ximage_get() local
496 ximage = ximagesrc->buffer_pool->data; in gst_ximage_src_ximage_get()
498 meta = GST_META_XIMAGE_GET (ximage); in gst_ximage_src_ximage_get()
507 gst_ximage_buffer_free (ximage); in gst_ximage_src_ximage_get()
508 ximage = NULL; in gst_ximage_src_ximage_get()
512 if (ximage == NULL) { in gst_ximage_src_ximage_get()
517 ximage = gst_ximageutil_ximage_new (ximagesrc->xcontext, in gst_ximage_src_ximage_get()
520 if (ximage == NULL) { in gst_ximage_src_ximage_get()
533 meta = GST_META_XIMAGE_GET (ximage); in gst_ximage_src_ximage_get()
574 gst_buffer_get_size (ximage)); in gst_ximage_src_ximage_get()
575 copy_buffer (ximage, ximagesrc->last_ximage); in gst_ximage_src_ximage_get()
614 meta->ximage, startx - ximagesrc->startx, in gst_ximage_src_ximage_get()
626 AllPlanes, ZPixmap, meta->ximage, rects[i].x, rects[i].y); in gst_ximage_src_ximage_get()
635 gst_buffer_get_size (ximage)); in gst_ximage_src_ximage_get()
636 copy_buffer (ximage, ximagesrc->last_ximage); in gst_ximage_src_ximage_get()
687 meta->ximage, startx - ximagesrc->startx, in gst_ximage_src_ximage_get()
694 x, y, width, height, AllPlanes, ZPixmap, meta->ximage, x, y); in gst_ximage_src_ximage_get()
707 meta->ximage, ximagesrc->startx, ximagesrc->starty, AllPlanes); in gst_ximage_src_ximage_get()
716 ximagesrc->height, AllPlanes, ZPixmap, meta->ximage, 0, 0); in gst_ximage_src_ximage_get()
718 meta->ximage = in gst_ximage_src_ximage_get()
798 (guint8 *) & (meta->ximage->data[((j - in gst_ximage_src_ximage_get()
814 gst_buffer_ref (ximage); in gst_ximage_src_ximage_get()
818 ximagesrc->last_ximage = ximage; in gst_ximage_src_ximage_get()
822 return ximage; in gst_ximage_src_ximage_get()
1026 GstBuffer *ximage = ximagesrc->buffer_pool->data; in gst_ximage_src_clear_bufpool() local
1028 gst_ximage_buffer_free (ximage); in gst_ximage_src_clear_bufpool()