Home
last modified time | relevance | path

Searched refs:ximage (Results 1 – 25 of 33) sorted by relevance

12

/third_party/mesa3d/src/mesa/drivers/x11/
Dxm_buffer.c81 b->backxrb->ximage = XShmCreateImage(b->xm_visual->display, in alloc_back_shm_ximage()
86 if (b->backxrb->ximage == NULL) { in alloc_back_shm_ximage()
93 b->shminfo.shmid = shmget(IPC_PRIVATE, b->backxrb->ximage->bytes_per_line in alloc_back_shm_ximage()
94 * b->backxrb->ximage->height, IPC_CREAT | 0600); in alloc_back_shm_ximage()
97 XDestroyImage(b->backxrb->ximage); in alloc_back_shm_ximage()
98 b->backxrb->ximage = NULL; in alloc_back_shm_ximage()
104 b->shminfo.shmaddr = b->backxrb->ximage->data in alloc_back_shm_ximage()
108 XDestroyImage(b->backxrb->ximage); in alloc_back_shm_ximage()
110 b->backxrb->ximage = NULL; in alloc_back_shm_ximage()
127 XDestroyImage(b->backxrb->ximage); in alloc_back_shm_ximage()
[all …]
Dxm_dd.c194 if (!xrb->ximage) in clear_32bit_ximage()
207 GLuint *ptr4 = (GLuint *) xrb->ximage->data; in clear_32bit_ximage()
236 XMesaImage *img = xrb->ximage; in clear_nbit_ximage()
395 XMesaImage ximage; in xmesa_DrawPixels_8R8G8B() local
406 memset(&ximage, 0, sizeof(XMesaImage)); in xmesa_DrawPixels_8R8G8B()
407 ximage.width = width; in xmesa_DrawPixels_8R8G8B()
408 ximage.height = height; in xmesa_DrawPixels_8R8G8B()
409 ximage.format = ZPixmap; in xmesa_DrawPixels_8R8G8B()
410 ximage.data = (char *) pixels in xmesa_DrawPixels_8R8G8B()
412 ximage.byte_order = LSBFirst; in xmesa_DrawPixels_8R8G8B()
[all …]
Dxm_line.c137 #define PLOT(X,Y) XMesaPutPixel(xrb->ximage, X, YFLIP(xrb, Y), pixel );
151 #define BYTES_PER_ROW (xrb->ximage->bytes_per_line)
168 #define BYTES_PER_ROW (xrb->ximage->bytes_per_line)
185 #define BYTES_PER_ROW (xrb->ximage->bytes_per_line)
201 #define BYTES_PER_ROW (xrb->ximage->bytes_per_line)
222 #define BYTES_PER_ROW (xrb->ximage->bytes_per_line)
239 #define BYTES_PER_ROW (xrb->ximage->bytes_per_line)
263 XMesaPutPixel(xrb->ximage, X, YFLIP(xrb, Y), pixel); \
280 #define BYTES_PER_ROW (xrb->ximage->bytes_per_line)
303 #define BYTES_PER_ROW (xrb->ximage->bytes_per_line)
[all …]
Dxm_tri.c77 XMesaPutPixel(xrb->ximage, x, y, p); \
101 #define BYTES_PER_ROW (xrb->ximage->bytes_per_line)
135 #define BYTES_PER_ROW (xrb->ximage->bytes_per_line)
169 #define BYTES_PER_ROW (xrb->ximage->bytes_per_line)
201 #define BYTES_PER_ROW (xrb->ximage->bytes_per_line)
243 XMesaPutPixel(xrb->ximage, x, y, p); \
264 #define BYTES_PER_ROW (xrb->ximage->bytes_per_line)
294 #define BYTES_PER_ROW (xrb->ximage->bytes_per_line)
326 XMesaImage *img = xrb->ximage; \
352 #define BYTES_PER_ROW (xrb->ximage->bytes_per_line)
[all …]
Dxm_api.c1345 if (b->backxrb->ximage) { in XMesaSwapBuffers()
1352 b->backxrb->ximage, 0, 0, in XMesaSwapBuffers()
1363 b->backxrb->ximage, 0, 0, in XMesaSwapBuffers()
1406 if (b->backxrb->ximage) { in XMesaCopySubBuffer()
1413 b->backxrb->ximage, x, yTop, in XMesaCopySubBuffer()
1423 b->backxrb->ximage, x, yTop, in XMesaCopySubBuffer()
1452 XMesaImage **ximage ) in XMesaGetBackBuffer() argument
1457 if (ximage) in XMesaGetBackBuffer()
1458 *ximage = b->backxrb->ximage; in XMesaGetBackBuffer()
1463 *ximage = NULL; in XMesaGetBackBuffer()
[all …]
Dxmesa.h272 XMesaImage **ximage );
/third_party/gstreamer/gstplugins_good/sys/ximage/
Dximageutil.c45 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()
[all …]
Dgstximagesrc.c88 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()
[all …]
Dximageutil.h153 XImage *ximage; member
174 GstBuffer * ximage);
177 void gst_ximage_buffer_free (GstBuffer *ximage);
/third_party/gstreamer/gstplugins_base/sys/ximage/
Dximagepool.c99 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()
[all …]
Dximagesink.c237 gst_x_image_sink_ximage_put (GstXImageSink * ximagesink, GstBuffer * ximage) in gst_x_image_sink_ximage_put() argument
262 if (ximage && ximagesink->cur_image != ximage) { in gst_x_image_sink_ximage_put()
267 GST_LOG_OBJECT (ximagesink, "reffing %p as our current image", ximage); in gst_x_image_sink_ximage_put()
268 ximagesink->cur_image = gst_buffer_ref (ximage); in gst_x_image_sink_ximage_put()
272 if (!ximage) { in gst_x_image_sink_ximage_put()
275 ximage = ximagesink->cur_image; in gst_x_image_sink_ximage_put()
282 mem = (GstXImageMemory *) gst_buffer_peek_memory (ximage, 0); in gst_x_image_sink_ximage_put()
283 crop = gst_buffer_get_video_crop_meta (ximage); in gst_x_image_sink_ximage_put()
314 ximage, 0, 0, result.x, result.y, result.w, result.h, in gst_x_image_sink_ximage_put()
317 ximagesink->xwindow->gc, mem->ximage, src.x, src.y, result.x, result.y, in gst_x_image_sink_ximage_put()
[all …]
Dmeson.build8 'ximagesink.c', 'ximage.c', 'ximagepool.c',
Dximagepool.h66 XImage *ximage; member
/third_party/mesa3d/src/glx/
Ddrisw_glx.c59 if (pdp->ximage) { in XCreateDrawable()
60 XDestroyImage(pdp->ximage); in XCreateDrawable()
61 pdp->ximage = NULL; in XCreateDrawable()
68 pdp->ximage = XShmCreateImage(dpy, in XCreateDrawable()
75 if (pdp->ximage != NULL) { in XCreateDrawable()
88 XDestroyImage(pdp->ximage); in XCreateDrawable()
89 pdp->ximage = NULL; in XCreateDrawable()
96 if (pdp->ximage == NULL) { in XCreateDrawable()
98 pdp->ximage = XCreateImage(dpy, in XCreateDrawable()
112 if (pdp->ximage->bits_per_pixel == 24) in XCreateDrawable()
[all …]
Ddrisw_priv.h67 XImage *ximage; member
/third_party/skia/third_party/externals/libpng/contrib/gregbook/
Drpng-x.c142 static XImage *ximage; variable
667 ximage = XCreateImage(display, visual, depth, ZPixmap, 0, in rpng_x_create_window()
670 if (!ximage) { in rpng_x_create_window()
683 ximage->byte_order = MSBFirst; in rpng_x_create_window()
700 int ximage_rowbytes = ximage->bytes_per_line; in rpng_x_display_image()
708 Trace((stderr, " (bpp = %d)\n", ximage->bits_per_pixel)) in rpng_x_display_image()
709 Trace((stderr, " (byte_order = %s)\n", ximage->byte_order == MSBFirst? in rpng_x_display_image()
710 "MSBFirst" : (ximage->byte_order == LSBFirst? "LSBFirst" : "unknown"))) in rpng_x_display_image()
717 dest = ximage->data + row*ximage_rowbytes; in rpng_x_display_image()
779 XPutImage(display, window, gc, ximage, 0, (int)lastrow, 0, in rpng_x_display_image()
[all …]
Drpng2-x.c291 static XImage *ximage; variable
1021 ximage = XCreateImage(display, visual, depth, ZPixmap, 0, in rpng2_x_create_window()
1024 if (!ximage) { in rpng2_x_create_window()
1037 ximage->byte_order = MSBFirst; in rpng2_x_create_window()
1096 int ximage_rowbytes = ximage->bytes_per_line; in rpng2_x_load_bg_image()
1308 int bpp = ximage->bits_per_pixel; in rpng2_x_load_bg_image()
1312 dest = ximage->data + row*ximage_rowbytes; in rpng2_x_load_bg_image()
1350 dest = ximage->data + row*ximage_rowbytes; in rpng2_x_load_bg_image()
1370 XPutImage(display, window, gc, ximage, 0, 0, 0, 0, rpng2_info.width, in rpng2_x_load_bg_image()
1389 int ximage_rowbytes = ximage->bytes_per_line; in rpng2_x_display_row()
[all …]
/third_party/libpng/contrib/gregbook/
Drpng-x.c142 static XImage *ximage; variable
667 ximage = XCreateImage(display, visual, depth, ZPixmap, 0, in rpng_x_create_window()
670 if (!ximage) { in rpng_x_create_window()
683 ximage->byte_order = MSBFirst; in rpng_x_create_window()
700 int ximage_rowbytes = ximage->bytes_per_line; in rpng_x_display_image()
708 Trace((stderr, " (bpp = %d)\n", ximage->bits_per_pixel)) in rpng_x_display_image()
709 Trace((stderr, " (byte_order = %s)\n", ximage->byte_order == MSBFirst? in rpng_x_display_image()
710 "MSBFirst" : (ximage->byte_order == LSBFirst? "LSBFirst" : "unknown"))) in rpng_x_display_image()
717 dest = ximage->data + row*ximage_rowbytes; in rpng_x_display_image()
779 XPutImage(display, window, gc, ximage, 0, (int)lastrow, 0, in rpng_x_display_image()
[all …]
Drpng2-x.c291 static XImage *ximage; variable
1021 ximage = XCreateImage(display, visual, depth, ZPixmap, 0, in rpng2_x_create_window()
1024 if (!ximage) { in rpng2_x_create_window()
1037 ximage->byte_order = MSBFirst; in rpng2_x_create_window()
1096 int ximage_rowbytes = ximage->bytes_per_line; in rpng2_x_load_bg_image()
1308 int bpp = ximage->bits_per_pixel; in rpng2_x_load_bg_image()
1312 dest = ximage->data + row*ximage_rowbytes; in rpng2_x_load_bg_image()
1350 dest = ximage->data + row*ximage_rowbytes; in rpng2_x_load_bg_image()
1370 XPutImage(display, window, gc, ximage, 0, 0, 0, 0, rpng2_info.width, in rpng2_x_load_bg_image()
1389 int ximage_rowbytes = ximage->bytes_per_line; in rpng2_x_display_row()
[all …]
/third_party/mesa3d/src/gallium/winsys/sw/xlib/
Dxlib_sw_winsys.c305 XImage *ximage; in xlib_sw_display() local
352 ximage = xlib_dt->tempImage; in xlib_sw_display()
353 ximage->data = xlib_dt->data; in xlib_sw_display()
357 ximage, box->x, box->y, box->x, box->y, in xlib_sw_display()
362 ximage = xlib_dt->tempImage; in xlib_sw_display()
363 ximage->data = xlib_dt->data; in xlib_sw_display()
366 assert(ximage->format); in xlib_sw_display()
367 assert(ximage->bitmap_unit); in xlib_sw_display()
370 ximage->width = xlib_dt->width; in xlib_sw_display()
371 ximage->height = xlib_dt->height; in xlib_sw_display()
[all …]
/third_party/flutter/skia/third_party/externals/sdl/src/video/x11/
DSDL_x11framebuffer.c112 data->ximage = X11_XShmCreateImage(display, data->visual, in X11_CreateWindowFramebuffer()
116 if (!data->ximage) { in X11_CreateWindowFramebuffer()
135 data->ximage = X11_XCreateImage(display, data->visual, in X11_CreateWindowFramebuffer()
138 if (!data->ximage) { in X11_CreateWindowFramebuffer()
180 X11_XShmPutImage(display, data->xwindow, data->gc, data->ximage, in X11_UpdateWindowFramebuffer()
212 X11_XPutImage(display, data->xwindow, data->gc, data->ximage, in X11_UpdateWindowFramebuffer()
235 if (data->ximage) { in X11_DestroyWindowFramebuffer()
236 XDestroyImage(data->ximage); in X11_DestroyWindowFramebuffer()
247 data->ximage = NULL; in X11_DestroyWindowFramebuffer()
DSDL_x11window.h55 XImage *ximage; member
/third_party/gstreamer/gstplugins_base/sys/
Dmeson.build2 # XShm is only used by ximage and xvimage
7 subdir('ximage') subdir
/third_party/gstreamer/gstplugins_good/sys/
Dmeson.build9 subdir('ximage') subdir
/third_party/gstreamer/gstplugins_good/po/
DPOTFILES33 sys/ximage/gstximagesrc.c

12