/external/skia/debugger/QT/ |
D | SkDrawCommandGeometryWidget.cpp | 44 SkPixmap pixmap; in paintEvent() local 46 if (fSurface->peekPixels(&pixmap)) { in paintEvent() 47 SkASSERT(pixmap.width() > 0); in paintEvent() 48 SkASSERT(pixmap.height() > 0); in paintEvent() 52 float ratio = this->width() / pixmap.width(); in paintEvent() 53 resultRect = QRectF(0, 0, this->width(), ratio * pixmap.height()); in paintEvent() 55 float ratio = this->height() / pixmap.height(); in paintEvent() 56 resultRect = QRectF(0, 0, ratio * pixmap.width(), this->height()); in paintEvent() 61 QImage image(reinterpret_cast<const uchar*>(pixmap.addr()), in paintEvent() 62 pixmap.width(), in paintEvent() [all …]
|
D | SkRasterWidget.cpp | 51 SkPixmap pixmap; in paintEvent() local 53 if (fSurface->peekPixels(&pixmap)) { in paintEvent() 54 QImage image(reinterpret_cast<const uchar*>(pixmap.addr()), in paintEvent() 55 pixmap.width(), in paintEvent() 56 pixmap.height(), in paintEvent() 57 pixmap.rowBytes(), in paintEvent()
|
/external/skia/src/images/ |
D | SkWebpEncoder.cpp | 116 bool SkWebpEncoder::Encode(SkWStream* stream, const SkPixmap& pixmap, const Options& opts) { in Encode() argument 117 if (!SkPixmapIsValid(pixmap, opts.fUnpremulBehavior)) { in Encode() 121 const transform_scanline_proc proc = choose_proc(pixmap.info(), opts.fUnpremulBehavior); in Encode() 127 if (kRGBA_F16_SkColorType == pixmap.colorType()) { in Encode() 130 bpp = pixmap.isOpaque() ? 3 : 4; in Encode() 133 if (nullptr == pixmap.addr()) { in Encode() 147 pic.width = pixmap.width(); in Encode() 148 pic.height = pixmap.height(); in Encode() 170 sk_sp<SkData> icc = icc_from_color_space(pixmap.info()); in Encode() 174 const uint8_t* src = (uint8_t*)pixmap.addr(); in Encode() [all …]
|
/external/mesa3d/src/glx/apple/ |
D | apple_glx_pixmap.c | 61 struct apple_glx_pixmap *p = &d->types.pixmap; in pixmap_make_current() 93 struct apple_glx_pixmap *p = &d->types.pixmap; in pixmap_destroy() 119 apple_glx_pixmap_create(Display * dpy, int screen, Pixmap pixmap, in apple_glx_pixmap_create() argument 129 if (apple_glx_drawable_create(dpy, screen, pixmap, &d, &callbacks)) in apple_glx_pixmap_create() 134 p = &d->types.pixmap; in apple_glx_pixmap_create() 136 p->xpixmap = pixmap; in apple_glx_pixmap_create() 139 if (!XAppleDRICreatePixmap(dpy, screen, pixmap, in apple_glx_pixmap_create() 188 apple_glx_pixmap_query(GLXPixmap pixmap, int attr, unsigned int *value) in apple_glx_pixmap_query() argument 194 d = apple_glx_drawable_find_by_type(pixmap, APPLE_GLX_DRAWABLE_PIXMAP, in apple_glx_pixmap_query() 198 p = &d->types.pixmap; in apple_glx_pixmap_query() [all …]
|
D | apple_glx_drawable.h | 108 struct apple_glx_pixmap pixmap; member 216 bool apple_glx_pixmap_create(Display * dpy, int screen, Pixmap pixmap, 220 bool apple_glx_pixmap_destroy(Display * dpy, Pixmap pixmap); 222 bool apple_glx_pixmap_query(GLXPixmap pixmap, int attribute,
|
/external/ImageMagick/coders/ |
D | pict.c | 76 #define ReadPixmap(pixmap) \ argument 78 pixmap.version=(short) ReadBlobMSBShort(image); \ 79 pixmap.pack_type=(short) ReadBlobMSBShort(image); \ 80 pixmap.pack_size=ReadBlobMSBLong(image); \ 81 pixmap.horizontal_resolution=1UL*ReadBlobMSBShort(image); \ 83 pixmap.vertical_resolution=1UL*ReadBlobMSBShort(image); \ 85 pixmap.pixel_type=(short) ReadBlobMSBShort(image); \ 86 pixmap.bits_per_pixel=(short) ReadBlobMSBShort(image); \ 87 pixmap.component_count=(short) ReadBlobMSBShort(image); \ 88 pixmap.component_size=(short) ReadBlobMSBShort(image); \ [all …]
|
D | dps.c | 114 pixmap; in ReadDPSImage() local 217 GetBlobFileHandle(image),visual_info->depth,pixels_per_point,&pixmap, in ReadDPSImage() 229 status=XDPSImageFileIntoDrawable((DPSContext) NULL,screen,pixmap, in ReadDPSImage() 243 dps_image=XGetImage(display,pixmap,0,0,bits_per_pixel.width, in ReadDPSImage() 245 (void) XFreePixmap(display,pixmap); in ReadDPSImage() 468 GetBlobFileHandle(image),1,pixels_per_point,&pixmap,&bits_per_pixel,&page); in ReadDPSImage() 471 status=XDPSImageFileIntoDrawable((DPSContext) NULL,screen,pixmap, in ReadDPSImage() 482 matte_image=XGetImage(display,pixmap,0,0,bits_per_pixel.width, in ReadDPSImage() 484 (void) XFreePixmap(display,pixmap); in ReadDPSImage()
|
/external/skia/src/gpu/ |
D | SkGr.cpp | 72 SkPixmap pixmap; in GrUploadBitmapToTextureProxy() local 73 if (!bitmap.peekPixels(&pixmap)) { in GrUploadBitmapToTextureProxy() 76 return GrUploadPixmapToTextureProxy(resourceProvider, pixmap, SkBudgeted::kYes, dstColorSpace); in GrUploadBitmapToTextureProxy() 79 static const SkPixmap* compute_desc(const GrCaps& caps, const SkPixmap& pixmap, in compute_desc() argument 82 const SkPixmap* pmap = &pixmap; in compute_desc() 84 *desc = GrImageInfoToSurfaceDesc(pixmap.info(), caps); in compute_desc() 88 SkColorSpace* colorSpace = pixmap.colorSpace(); in compute_desc() 96 SkImageInfo linSrcInfo = SkImageInfo::Make(pixmap.width(), pixmap.height(), in compute_desc() 97 pixmap.colorType(), pixmap.alphaType()); in compute_desc() 98 SkPixmap linSrcPixmap(linSrcInfo, pixmap.addr(), pixmap.rowBytes()); in compute_desc() [all …]
|
/external/skia/tests/ |
D | SkBlend_optsTest.cpp | 61 SkPixmap pixmap; in test_blender() local 62 bm.peekPixels(&pixmap); in test_blender() 63 SkASSERTF(pixmap.colorType() == kN32_SkColorType, "colorType: %d", pixmap.colorType()); in test_blender() 64 SkASSERT(pixmap.alphaType() != kUnpremul_SkAlphaType); in test_blender() 65 const uint32_t* src = pixmap.addr32(); in test_blender() 66 const int width = pixmap.rowBytesAsPixels(); in test_blender() 72 for (int y = 0; y < pixmap.height(); y++) { in test_blender()
|
/external/python/cpython2/Mac/Demo/imgbrowse/ |
D | imgbrowse.py | 60 pixmap = mac_image.mkpixmap(w, h, imgformat.macrgb16, data) 61 self.showimg(w, h, pixmap, data) 63 def showimg(self, w, h, pixmap, data): argument 65 win.open(w, h, pixmap, data) 73 def open(self, width, height, pixmap, data): argument 74 self.pixmap = pixmap 87 … print 'ARGS:', (self.pixmap, self.wid.GetWindowPort().GetPortBitMapForCopyBits(), self.pictrect, 90 Qd.CopyBits(self.pixmap, self.wid.GetWindowPort().GetPortBitMapForCopyBits(), self.pictrect,
|
/external/mesa3d/src/gallium/state_trackers/glx/xlib/ |
D | glx_usefont.c | 133 Pixmap pixmap; in fill_bitmap() local 136 pixmap = XCreatePixmap(dpy, win, 8 * width, height, 1); in fill_bitmap() 138 XFillRectangle(dpy, pixmap, gc, 0, 0, 8 * width, height); in fill_bitmap() 144 XDrawString16(dpy, pixmap, gc, x0, y0, &char2b, 1); in fill_bitmap() 146 image = XGetImage(dpy, pixmap, 0, 0, 8 * width, height, 1, XYPixmap); in fill_bitmap() 157 XFreePixmap(dpy, pixmap); in fill_bitmap() 215 Pixmap pixmap; in glXUseXFont() local 280 pixmap = XCreatePixmap(dpy, win, 10, 10, 1); in glXUseXFont() 285 gc = XCreateGC(dpy, pixmap, valuemask, &values); in glXUseXFont() 286 XFreePixmap(dpy, pixmap); in glXUseXFont()
|
/external/mesa3d/src/mesa/drivers/x11/ |
D | xfonts.c | 133 Pixmap pixmap; in fill_bitmap() local 136 pixmap = XCreatePixmap(dpy, win, 8 * width, height, 1); in fill_bitmap() 138 XFillRectangle(dpy, pixmap, gc, 0, 0, 8 * width, height); in fill_bitmap() 144 XDrawString16(dpy, pixmap, gc, x0, y0, &char2b, 1); in fill_bitmap() 146 image = XGetImage(dpy, pixmap, 0, 0, 8 * width, height, 1, XYPixmap); in fill_bitmap() 157 XFreePixmap(dpy, pixmap); in fill_bitmap() 215 Pixmap pixmap; in Fake_glXUseXFont() local 279 pixmap = XCreatePixmap(dpy, win, 10, 10, 1); in Fake_glXUseXFont() 284 gc = XCreateGC(dpy, pixmap, valuemask, &values); in Fake_glXUseXFont() 285 XFreePixmap(dpy, pixmap); in Fake_glXUseXFont()
|
D | xm_buffer.c | 214 b->backxrb->pixmap = None; in alloc_back_buffer() 218 if (b->backxrb->pixmap) { in alloc_back_buffer() 219 XMesaFreePixmap(b->xm_visual->display, b->backxrb->pixmap); in alloc_back_buffer() 220 b->backxrb->pixmap = 0; in alloc_back_buffer() 225 b->backxrb->pixmap = XMesaCreatePixmap(b->xm_visual->display, in alloc_back_buffer() 232 b->backxrb->drawable = b->backxrb->pixmap; in alloc_back_buffer() 407 if (b->backxrb->pixmap) { in xmesa_delete_framebuffer() 408 XMesaFreePixmap( b->display, b->backxrb->pixmap ); in xmesa_delete_framebuffer() 452 assert(xrb->pixmap); in xmesa_MapRenderbuffer() 462 xrb->pixmap, x, y2, w, h, in xmesa_MapRenderbuffer() [all …]
|
D | glxapi.h | 67 GLXPixmap (*CreateGLXPixmap)(Display *dpy, XVisualInfo *visinfo, Pixmap pixmap); 69 void (*DestroyGLXPixmap)(Display *dpy, GLXPixmap pixmap); 94 … GLXPixmap (*CreatePixmap)(Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attribList); 97 void (*DestroyPixmap)(Display *dpy, GLXPixmap pixmap); 185 …GLXPixmap (*CreateGLXPixmapMESA)(Display *dpy, XVisualInfo *visinfo, Pixmap pixmap, Colormap cmap);
|
D | xm_dd.c | 112 assert(xrb->pixmap); in clear_pixmap() 115 assert(xrb->pixmap); in clear_pixmap() 118 XMesaFillRectangle( xmesa->display, xrb->pixmap, xmbuf->cleargc, in clear_pixmap() 323 xrb->pixmap && /* drawing to pixmap or window */ in can_do_DrawPixels_8R8G8B() 414 XPutImage(dpy, xrb->pixmap, gc, &ximage, 0, 0, dstX, dstY, w, h); in xmesa_DrawPixels_8R8G8B() 454 xrb->pixmap && /* drawing to pixmap or window */ in can_do_DrawPixels_5R6G5B() 545 XPutImage(dpy, xrb->pixmap, gc, &ximage, 0, 0, dstX, dstY, w, h); in xmesa_DrawPixels_5R6G5B() 588 if (srcXrb->pixmap && dstXrb->pixmap) { in can_do_CopyPixels() 625 XCopyArea(dpy, srcXrb->pixmap, dstXrb->pixmap, gc, in xmesa_CopyPixels() 713 if (xmbuf->backxrb->pixmap) { in xmesa_update_state()
|
/external/mesa3d/src/glx/ |
D | xfont.c | 138 Pixmap pixmap; in fill_bitmap() local 141 pixmap = XCreatePixmap(dpy, win, 8 * width, height, 1); in fill_bitmap() 143 XFillRectangle(dpy, pixmap, gc, 0, 0, 8 * width, height); in fill_bitmap() 149 XDrawString16(dpy, pixmap, gc, x0, y0, &char2b, 1); in fill_bitmap() 151 image = XGetImage(dpy, pixmap, 0, 0, 8 * width, height, 1, XYPixmap); in fill_bitmap() 162 XFreePixmap(dpy, pixmap); in fill_bitmap() 219 Pixmap pixmap; in DRI_glXUseXFont() local 292 pixmap = XCreatePixmap(dpy, win, 10, 10, 1); in DRI_glXUseXFont() 297 gc = XCreateGC(dpy, pixmap, valuemask, &values); in DRI_glXUseXFont() 298 XFreePixmap(dpy, pixmap); in DRI_glXUseXFont()
|
D | glx_pbuffer.c | 544 Pixmap pixmap; in CreatePbuffer() local 610 pixmap = XCreatePixmap(dpy, RootWindow(dpy, config->screen), in CreatePbuffer() 613 if (!CreateDRIDrawable(dpy, config, pixmap, id, attrib_list, i)) { in CreatePbuffer() 615 XFreePixmap(dpy, pixmap); in CreatePbuffer() 919 glXCreatePixmap(Display * dpy, GLXFBConfig config, Pixmap pixmap, in glXCreatePixmap() argument 927 if (apple_glx_pixmap_create(dpy, modes->screen, pixmap, modes)) in glXCreatePixmap() 930 return pixmap; in glXCreatePixmap() 933 (Drawable) pixmap, attrib_list, X_GLXCreatePixmap); in glXCreatePixmap() 974 glXDestroyPixmap(Display * dpy, GLXPixmap pixmap) in glXDestroyPixmap() argument 978 if (apple_glx_pixmap_destroy(dpy, pixmap)) in glXDestroyPixmap() [all …]
|
/external/skia/include/core/ |
D | SkImageEncoder.h | 40 SkPixmap pixmap; in SkEncodeImage() local 41 return src.peekPixels(&pixmap) && SkEncodeImage(dst, pixmap, f, q); in SkEncodeImage()
|
D | SkPixelSerializer.h | 34 sk_sp<SkData> encodeToData(const SkPixmap& pixmap) { in encodeToData() argument 35 return sk_sp<SkData>(this->onEncode(pixmap)); in encodeToData()
|
/external/mesa3d/src/loader/ |
D | loader_dri3_helper.c | 95 xcb_free_pixmap(draw->conn, buffer->pixmap); in dri3_free_render_buffer() 259 if (buf && buf->pixmap == ie->pixmap) { in dri3_handle_present_event() 509 dri3_back_buffer(draw)->pixmap, in loader_dri3_copy_sub_buffer() 520 dri3_back_buffer(draw)->pixmap, in loader_dri3_copy_sub_buffer() 521 dri3_fake_front_buffer(draw)->pixmap, in loader_dri3_copy_sub_buffer() 558 loader_dri3_copy_drawable(draw, front->pixmap, draw->drawable); in loader_dri3_wait_x() 598 loader_dri3_copy_drawable(draw, draw->drawable, front->pixmap); in loader_dri3_wait_gl() 708 back->pixmap, in loader_dri3_swap_buffers_msc() 731 back->pixmap, in loader_dri3_swap_buffers_msc() 732 draw->buffers[LOADER_DRI3_FRONT_ID]->pixmap, in loader_dri3_swap_buffers_msc() [all …]
|
/external/skia/src/image/ |
D | SkImage_Gpu.cpp | 680 SkAutoPixmapStorage pixmap; in getDeferredTextureImageData() local 683 if (!isScaled && this->peekPixels(&pixmap) && pixmap.info().colorType() == dstColorType) { in getDeferredTextureImageData() 684 info = pixmap.info(); in getDeferredTextureImageData() 685 pixelSize = SkAlign8(pixmap.getSafeSize()); in getDeferredTextureImageData() 687 pixmap.setColorSpace(nullptr); in getDeferredTextureImageData() 727 pixmap.alloc(info); in getDeferredTextureImageData() 729 decodePixmap.readPixels(pixmap.info(), pixmap.writable_addr(), pixmap.rowBytes(), 0, in getDeferredTextureImageData() 732 pixmap = std::move(decodePixmap); in getDeferredTextureImageData() 791 pixmap.addr(), pixmap.getSafeSize()); in getDeferredTextureImageData() 803 SkASSERT(info == pixmap.info()); in getDeferredTextureImageData() [all …]
|
/external/deqp/android/cts/mnc/ |
D | egl-master.txt | 77 dEQP-EGL.functional.create_surface.pixmap.rgb565_no_depth_no_stencil 78 dEQP-EGL.functional.create_surface.pixmap.rgb565_no_depth_stencil 79 dEQP-EGL.functional.create_surface.pixmap.rgb565_depth_no_stencil 80 dEQP-EGL.functional.create_surface.pixmap.rgb565_depth_stencil 81 dEQP-EGL.functional.create_surface.pixmap.rgb888_no_depth_no_stencil 82 dEQP-EGL.functional.create_surface.pixmap.rgb888_no_depth_stencil 83 dEQP-EGL.functional.create_surface.pixmap.rgb888_depth_no_stencil 84 dEQP-EGL.functional.create_surface.pixmap.rgb888_depth_stencil 85 dEQP-EGL.functional.create_surface.pixmap.rgba4444_no_depth_no_stencil 86 dEQP-EGL.functional.create_surface.pixmap.rgba4444_no_depth_stencil [all …]
|
/external/deqp/android/cts/mnc/src/ |
D | egl-master.txt | 77 dEQP-EGL.functional.create_surface.pixmap.rgb565_no_depth_no_stencil 78 dEQP-EGL.functional.create_surface.pixmap.rgb565_no_depth_stencil 79 dEQP-EGL.functional.create_surface.pixmap.rgb565_depth_no_stencil 80 dEQP-EGL.functional.create_surface.pixmap.rgb565_depth_stencil 81 dEQP-EGL.functional.create_surface.pixmap.rgb888_no_depth_no_stencil 82 dEQP-EGL.functional.create_surface.pixmap.rgb888_no_depth_stencil 83 dEQP-EGL.functional.create_surface.pixmap.rgb888_depth_no_stencil 84 dEQP-EGL.functional.create_surface.pixmap.rgb888_depth_stencil 85 dEQP-EGL.functional.create_surface.pixmap.rgba4444_no_depth_no_stencil 86 dEQP-EGL.functional.create_surface.pixmap.rgba4444_no_depth_stencil [all …]
|
/external/mesa3d/include/GL/ |
D | glx.h | 204 Pixmap pixmap ); 206 extern void glXDestroyGLXPixmap( Display *dpy, GLXPixmap pixmap ); 260 Pixmap pixmap, const int *attribList ); 262 extern void glXDestroyPixmap( Display *dpy, GLXPixmap pixmap ); 297 typedef GLXPixmap (* PFNGLXCREATEPIXMAPPROC) (Display *dpy, GLXFBConfig config, Pixmap pixmap, cons… 298 typedef void (* PFNGLXDESTROYPIXMAPPROC) (Display *dpy, GLXPixmap pixmap);
|
/external/skia/bench/ |
D | PDFBench.cpp | 75 SkAutoPixmapStorage pixmap; in onDelayedSetup() local 76 pixmap.alloc(SkImageInfo::MakeN32Premul(img->dimensions())); in onDelayedSetup() 77 if (img->readPixels(pixmap, 0, 0)) { in onDelayedSetup() 78 fImage = SkImage::MakeRasterCopy(pixmap); in onDelayedSetup()
|