Home
last modified time | relevance | path

Searched refs:pmap (Results 1 – 25 of 81) sorted by relevance

1234

/external/skia/src/ports/
DSkImageEncoder_NDK.cpp13 bool SkEncodeImageWithNDK(SkWStream* stream, const SkPixmap& pmap, SkEncodedImageFormat format, in SkEncodeImageWithNDK() argument
18 .width = SkTFitsIn<uint32_t>(pmap.width()) ? SkToU32(pmap.width()) : 0, in SkEncodeImageWithNDK()
19 .height = SkTFitsIn<uint32_t>(pmap.height()) ? SkToU32(pmap.height()) : 0, in SkEncodeImageWithNDK()
20 .stride = SkTFitsIn<uint32_t>(pmap.rowBytes()) ? SkToU32(pmap.rowBytes()) : 0, in SkEncodeImageWithNDK()
21 .format = SkNDKConversions::toAndroidBitmapFormat(pmap.colorType()) in SkEncodeImageWithNDK()
24 switch (pmap.alphaType()) { in SkEncodeImageWithNDK()
68 SkNDKConversions::toDataSpace(pmap.colorSpace()), pmap.addr(), androidFormat, quality, in SkEncodeImageWithNDK()
/external/boringssl/src/crypto/x509v3/
Dv3_pmaps.c100 POLICY_MAPPING *pmap; variable
105 pmap = sk_POLICY_MAPPING_value(pmaps, i);
106 i2t_ASN1_OBJECT(obj_tmp1, 80, pmap->issuerDomainPolicy);
107 i2t_ASN1_OBJECT(obj_tmp2, 80, pmap->subjectDomainPolicy);
117 POLICY_MAPPING *pmap; in v2i_POLICY_MAPPINGS() local
143 pmap = POLICY_MAPPING_new(); in v2i_POLICY_MAPPINGS()
144 if (!pmap) { in v2i_POLICY_MAPPINGS()
149 pmap->issuerDomainPolicy = obj1; in v2i_POLICY_MAPPINGS()
150 pmap->subjectDomainPolicy = obj2; in v2i_POLICY_MAPPINGS()
151 sk_POLICY_MAPPING_push(pmaps, pmap); in v2i_POLICY_MAPPINGS()
/external/rust/crates/quiche/deps/boringssl/src/crypto/x509v3/
Dv3_pmaps.c100 POLICY_MAPPING *pmap; variable
105 pmap = sk_POLICY_MAPPING_value(pmaps, i);
106 i2t_ASN1_OBJECT(obj_tmp1, 80, pmap->issuerDomainPolicy);
107 i2t_ASN1_OBJECT(obj_tmp2, 80, pmap->subjectDomainPolicy);
117 POLICY_MAPPING *pmap; in v2i_POLICY_MAPPINGS() local
143 pmap = POLICY_MAPPING_new(); in v2i_POLICY_MAPPINGS()
144 if (!pmap) { in v2i_POLICY_MAPPINGS()
149 pmap->issuerDomainPolicy = obj1; in v2i_POLICY_MAPPINGS()
150 pmap->subjectDomainPolicy = obj2; in v2i_POLICY_MAPPINGS()
151 sk_POLICY_MAPPING_push(pmaps, pmap); in v2i_POLICY_MAPPINGS()
/external/skqp/src/image/
DSkImage_Raster.cpp257 sk_sp<SkImage> MakeRasterCopyPriv(const SkPixmap& pmap, uint32_t id) { in MakeRasterCopyPriv() argument
259 if (!SkImage_Raster::ValidArgs(pmap.info(), pmap.rowBytes(), &size) || !pmap.addr()) { in MakeRasterCopyPriv()
264 sk_sp<SkData> data(SkData::MakeWithCopy(pmap.addr(), size)); in MakeRasterCopyPriv()
265 return sk_make_sp<SkImage_Raster>(pmap.info(), std::move(data), pmap.rowBytes(), id); in MakeRasterCopyPriv()
268 sk_sp<SkImage> SkImage::MakeRasterCopy(const SkPixmap& pmap) { in MakeRasterCopy() argument
269 return MakeRasterCopyPriv(pmap, kNeedNewImageUniqueID); in MakeRasterCopy()
287 sk_sp<SkImage> SkImage::MakeFromRaster(const SkPixmap& pmap, RasterReleaseProc proc, in MakeFromRaster() argument
290 if (!SkImage_Raster::ValidArgs(pmap.info(), pmap.rowBytes(), &size) || !pmap.addr()) { in MakeFromRaster()
294 sk_sp<SkData> data(SkData::MakeWithProc(pmap.addr(), size, proc, ctx)); in MakeFromRaster()
295 return sk_make_sp<SkImage_Raster>(pmap.info(), std::move(data), pmap.rowBytes()); in MakeFromRaster()
[all …]
DSkSurface.cpp192 bool SkSurface::peekPixels(SkPixmap* pmap) { in peekPixels() argument
193 return this->getCanvas()->peekPixels(pmap); in peekPixels()
210 void SkSurface::writePixels(const SkPixmap& pmap, int x, int y) { in writePixels() argument
211 if (pmap.addr() == nullptr || pmap.width() <= 0 || pmap.height() <= 0) { in writePixels()
215 const SkIRect srcR = SkIRect::MakeXYWH(x, y, pmap.width(), pmap.height()); in writePixels()
223 asSB(this)->onWritePixels(pmap, x, y); in writePixels()
DSkImage_Lazy.cpp144 static bool generate_pixels(SkImageGenerator* gen, const SkPixmap& pmap, int originX, int originY) { in generate_pixels() argument
148 const SkIRect dstR = SkIRect::MakeXYWH(originX, originY, pmap.width(), pmap.height()); in generate_pixels()
157 const SkPixmap* dstPM = &pmap; in generate_pixels()
159 if (!full.tryAllocPixels(pmap.info().makeWH(genW, genH))) { in generate_pixels()
173 if (!full.readPixels(pmap, originX, originY)) { in generate_pixels()
194 SkPixmap pmap; in getROPixels() local
195 SkBitmapCache::RecPtr cacheRec = SkBitmapCache::Alloc(desc, fInfo, &pmap); in getROPixels()
197 !generate_pixels(ScopedGenerator(fSharedGenerator), pmap, in getROPixels()
/external/skia/src/image/
DSkImage_Raster.cpp276 sk_sp<SkImage> MakeRasterCopyPriv(const SkPixmap& pmap, uint32_t id) { in MakeRasterCopyPriv() argument
278 if (!SkImage_Raster::ValidArgs(pmap.info(), pmap.rowBytes(), &size) || !pmap.addr()) { in MakeRasterCopyPriv()
283 sk_sp<SkData> data(SkData::MakeWithCopy(pmap.addr(), size)); in MakeRasterCopyPriv()
284 return sk_make_sp<SkImage_Raster>(pmap.info(), std::move(data), pmap.rowBytes(), id); in MakeRasterCopyPriv()
287 sk_sp<SkImage> SkImage::MakeRasterCopy(const SkPixmap& pmap) { in MakeRasterCopy() argument
288 return MakeRasterCopyPriv(pmap, kNeedNewImageUniqueID); in MakeRasterCopy()
339 sk_sp<SkImage> SkImage::MakeFromRaster(const SkPixmap& pmap, RasterReleaseProc proc, in MakeFromRaster() argument
342 if (!SkImage_Raster::ValidArgs(pmap.info(), pmap.rowBytes(), &size) || !pmap.addr()) { in MakeFromRaster()
346 sk_sp<SkData> data(SkData::MakeWithProc(pmap.addr(), size, proc, ctx)); in MakeFromRaster()
347 return sk_make_sp<SkImage_Raster>(pmap.info(), std::move(data), pmap.rowBytes()); in MakeFromRaster()
[all …]
DSkSurface.cpp227 bool SkSurface::peekPixels(SkPixmap* pmap) { in peekPixels() argument
228 return this->getCanvas()->peekPixels(pmap); in peekPixels()
283 void SkSurface::writePixels(const SkPixmap& pmap, int x, int y) { in writePixels() argument
284 if (pmap.addr() == nullptr || pmap.width() <= 0 || pmap.height() <= 0) { in writePixels()
288 const SkIRect srcR = SkIRect::MakeXYWH(x, y, pmap.width(), pmap.height()); in writePixels()
296 asSB(this)->onWritePixels(pmap, x, y); in writePixels()
/external/skia/modules/skottie/tests/
DImage.cpp114 SkPixmap pmap; in DEF_TEST() local
115 surf->peekPixels(&pmap); in DEF_TEST()
123 tst.c[0] == pmap.getColor(render_size.width() / 2, render_size.height() / 2)); in DEF_TEST()
125 tst.c[1] == pmap.getColor(1 , render_size.height() / 2)); in DEF_TEST()
127 tst.c[2] == pmap.getColor(render_size.width() / 2, 1)); in DEF_TEST()
129 tst.c[3] == pmap.getColor(render_size.width() - 1, render_size.height() / 2)); in DEF_TEST()
131 tst.c[4] == pmap.getColor(render_size.width() /2 , render_size.height() - 1)); in DEF_TEST()
/external/skqp/src/utils/mac/
DSkCreateCGImageRef.cpp181 CGContextRef SkCreateCGContext(const SkPixmap& pmap) { in SkCreateCGContext() argument
184 switch (pmap.colorType()) { in SkCreateCGContext()
187 cg_bitmap_info = ComputeCGAlphaInfo_RGBA(pmap.alphaType()); in SkCreateCGContext()
191 cg_bitmap_info = ComputeCGAlphaInfo_BGRA(pmap.alphaType()); in SkCreateCGContext()
197 size_t rb = pmap.addr() ? pmap.rowBytes() : 0; in SkCreateCGContext()
199 CGContextRef cg = CGBitmapContextCreate(pmap.writable_addr(), pmap.width(), pmap.height(), in SkCreateCGContext()
/external/skia/src/utils/mac/
DSkCreateCGImageRef.cpp154 CGContextRef SkCreateCGContext(const SkPixmap& pmap) { in SkCreateCGContext() argument
157 switch (pmap.colorType()) { in SkCreateCGContext()
160 cg_bitmap_info = compute_cgalpha_info_rgba(pmap.alphaType()); in SkCreateCGContext()
164 cg_bitmap_info = compute_cgalpha_info_bgra(pmap.alphaType()); in SkCreateCGContext()
170 size_t rb = pmap.addr() ? pmap.rowBytes() : 0; in SkCreateCGContext()
172 CGContextRef cg = CGBitmapContextCreate(pmap.writable_addr(), pmap.width(), pmap.height(), in SkCreateCGContext()
/external/skqp/src/utils/
DSkCanvasStateUtils.cpp184 SkPixmap pmap; in CaptureCanvasState() local
185 if (!layer.device()->accessPixels(&pmap) || 0 == pmap.width() || 0 == pmap.height()) { in CaptureCanvasState()
194 layerState->width = pmap.width(); in CaptureCanvasState()
195 layerState->height = pmap.height(); in CaptureCanvasState()
197 switch (pmap.colorType()) { in CaptureCanvasState()
207 layerState->raster.rowBytes = pmap.rowBytes(); in CaptureCanvasState()
208 layerState->raster.pixels = pmap.writable_addr(); in CaptureCanvasState()
/external/skia/src/utils/
DSkCanvasStateUtils.cpp187 SkPixmap pmap; in CaptureCanvasState() local
188 if (!device->accessPixels(&pmap) || 0 == pmap.width() || 0 == pmap.height()) { in CaptureCanvasState()
203 layerState->width = pmap.width(); in CaptureCanvasState()
204 layerState->height = pmap.height(); in CaptureCanvasState()
206 switch (pmap.colorType()) { in CaptureCanvasState()
216 layerState->raster.rowBytes = pmap.rowBytes(); in CaptureCanvasState()
217 layerState->raster.pixels = pmap.writable_addr(); in CaptureCanvasState()
/external/skia/tools/gpu/
DYUVUtils.cpp36 static uint8_t look_up(SkPoint normPt, const SkPixmap& pmap, SkColorChannel channel) { in look_up() argument
39 int x = SkScalarFloorToInt(normPt.x() * pmap.width()); in look_up()
40 int y = SkScalarFloorToInt(normPt.y() * pmap.height()); in look_up()
42 auto ii = pmap.info().makeColorType(kRGBA_8888_SkColorType).makeWH(1, 1); in look_up()
44 SkAssertResult(pmap.readPixels(ii, &pixel, sizeof(pixel), x, y)); in look_up()
93 const auto& pmap = fPixmaps.plane(yuvaLocations[c].fPlane); in onGetPixels() local
94 yuva[c] = look_up(xy1, pmap, yuvaLocations[c].fChannel); in onGetPixels()
98 const auto& pmap = fPixmaps.plane(aPlane); in onGetPixels() local
99 yuva[3] = look_up(xy1, pmap, aChan); in onGetPixels()
/external/libwebsockets/lib/misc/
Dlws-struct-lejp.c95 const lws_struct_map_t *map, *pmap = NULL; in lws_struct_default_lejp_cb() local
116 pmap = &args->map_st[ctx->pst_sp - 1] in lws_struct_default_lejp_cb()
128 pmap = map; in lws_struct_default_lejp_cb()
135 if (reason == LEJPCB_OBJECT_END && pmap && pmap->type == LSMT_CHILD_PTR) in lws_struct_default_lejp_cb()
171 if (!ctx->path_match || !pmap) in lws_struct_default_lejp_cb()
177 if (pmap->type != LSMT_LIST && pmap->type != LSMT_CHILD_PTR) in lws_struct_default_lejp_cb()
183 (((char *)ctx->pst[ctx->pst_sp - 1].user) + pmap->ofs); in lws_struct_default_lejp_cb()
185 assert(pmap->aux); in lws_struct_default_lejp_cb()
190 pmap->aux, args->ac_block_size); in lws_struct_default_lejp_cb()
197 (int)pmap->aux); in lws_struct_default_lejp_cb()
[all …]
/external/python/cpython2/Demo/rpc/
Drpc.py583 pmap = TCPPortMapperClient(host)
584 port = pmap.Getport((prog, vers, IPPROTO_TCP, 0))
585 pmap.close()
594 pmap = UDPPortMapperClient(host)
595 port = pmap.Getport((prog, vers, IPPROTO_UDP, 0))
596 pmap.close()
605 self.pmap = BroadcastUDPPortMapperClient(bcastaddr)
606 self.pmap.set_reply_handler(self.my_reply_handler)
613 self.pmap.close()
619 self.pmap.set_timeout(timeout)
[all …]
/external/python/pyasn1-modules/tests/
Dtest_rfc7229.py82 for pmap in ev:
83 if pmap['issuerDomainPolicy'] in test_oids:
85 if pmap['subjectDomainPolicy'] in test_oids:
/external/skqp/gm/
Dpath_stroke_with_zero_length.cpp36 SkAutoPixmapStorage pmap; in draw_path_cell() local
37 pmap.alloc(info); in draw_path_cell()
38 if (!img->readPixels(pmap, 0, 0)) { in draw_path_cell()
51 uint32_t v = SkGetPackedR32(*pmap.addr32(x, y)) + SkGetPackedR32(*pmap.addr32(x, y + 1)); in draw_path_cell()
/external/skqp/src/core/
DSkBitmap.cpp489 SkPixmap pmap; in GetBitmapAlpha() local
490 if (!src.peekPixels(&pmap)) { in GetBitmapAlpha()
497 SkConvertPixels(SkImageInfo::MakeA8(pmap.width(), pmap.height()), alpha, alphaRowBytes, in GetBitmapAlpha()
498 pmap.info(), pmap.addr(), pmap.rowBytes()); in GetBitmapAlpha()
604 bool SkBitmap::peekPixels(SkPixmap* pmap) const { in peekPixels()
606 if (pmap) { in peekPixels()
607 *pmap = fPixmap; in peekPixels()
DSkDraw.cpp973 SkPixmap pmap; in drawBitmapAsMask() local
974 if (!bitmap.peekPixels(&pmap)) { in drawBitmapAsMask()
978 mask.fBounds.set(ix, iy, ix + pmap.width(), iy + pmap.height()); in drawBitmapAsMask()
980 mask.fRowBytes = SkToU32(pmap.rowBytes()); in drawBitmapAsMask()
982 mask.fImage = (uint8_t*)pmap.addr8(0, 0); in drawBitmapAsMask()
1060 static bool clipHandlesSprite(const SkRasterClip& clip, int x, int y, const SkPixmap& pmap) { in clipHandlesSprite() argument
1061 return clip.isBW() || clip.quickContains(x, y, x + pmap.width(), y + pmap.height()); in clipHandlesSprite()
1093 SkPixmap pmap; in drawBitmap() local
1094 if (!bitmap.peekPixels(&pmap)) { in drawBitmap()
1099 if (clipHandlesSprite(*fRC, ix, iy, pmap)) { in drawBitmap()
[all …]
DSkDevice.cpp318 bool SkBaseDevice::accessPixels(SkPixmap* pmap) { in accessPixels() argument
320 if (nullptr == pmap) { in accessPixels()
321 pmap = &tempStorage; in accessPixels()
323 return this->onAccessPixels(pmap); in accessPixels()
326 bool SkBaseDevice::peekPixels(SkPixmap* pmap) { in peekPixels() argument
328 if (nullptr == pmap) { in peekPixels()
329 pmap = &tempStorage; in peekPixels()
331 return this->onPeekPixels(pmap); in peekPixels()
/external/skia/gm/
Dpath_stroke_with_zero_length.cpp47 SkAutoPixmapStorage pmap; in draw_path_cell() local
48 pmap.alloc(info); in draw_path_cell()
49 if (!img->readPixels(dContext, pmap, 0, 0)) { in draw_path_cell()
62 uint32_t v = SkGetPackedR32(*pmap.addr32(x, y)) + SkGetPackedR32(*pmap.addr32(x, y + 1)); in draw_path_cell()
/external/skqp/tests/
DBitmapTest.cpp23 SkPixmap pmap; in test_peekpixels() local
28 REPORTER_ASSERT(reporter, !bm.peekPixels(&pmap)); in test_peekpixels()
33 REPORTER_ASSERT(reporter, !bm.peekPixels(&pmap)); in test_peekpixels()
38 REPORTER_ASSERT(reporter, bm.peekPixels(&pmap)); in test_peekpixels()
39 REPORTER_ASSERT(reporter, pmap.info() == bm.info()); in test_peekpixels()
40 REPORTER_ASSERT(reporter, pmap.addr() == bm.getPixels()); in test_peekpixels()
41 REPORTER_ASSERT(reporter, pmap.rowBytes() == bm.rowBytes()); in test_peekpixels()
/external/skia/src/core/
DSkBitmap.cpp500 SkPixmap pmap; in GetBitmapAlpha() local
501 if (!src.peekPixels(&pmap)) { in GetBitmapAlpha()
508 return SkConvertPixels(SkImageInfo::MakeA8(pmap.width(), pmap.height()), alpha, alphaRowBytes, in GetBitmapAlpha()
509 pmap.info(), pmap.addr(), pmap.rowBytes()); in GetBitmapAlpha()
612 bool SkBitmap::peekPixels(SkPixmap* pmap) const { in peekPixels()
614 if (pmap) { in peekPixels()
615 *pmap = fPixmap; in peekPixels()
DSkDraw.cpp986 SkPixmap pmap; in drawBitmapAsMask() local
987 if (!bitmap.peekPixels(&pmap)) { in drawBitmapAsMask()
991 mask.fBounds.setXYWH(ix, iy, pmap.width(), pmap.height()); in drawBitmapAsMask()
993 mask.fRowBytes = SkToU32(pmap.rowBytes()); in drawBitmapAsMask()
995 mask.fImage = (uint8_t*)pmap.addr8(0, 0); in drawBitmapAsMask()
1071 static bool clipHandlesSprite(const SkRasterClip& clip, int x, int y, const SkPixmap& pmap) { in clipHandlesSprite() argument
1072 return clip.isBW() || clip.quickContains(x, y, x + pmap.width(), y + pmap.height()); in clipHandlesSprite()
1105 SkPixmap pmap; in drawBitmap() local
1106 if (!bitmap.peekPixels(&pmap)) { in drawBitmap()
1111 if (clipHandlesSprite(*fRC, ix, iy, pmap)) { in drawBitmap()
[all …]

1234