Home
last modified time | relevance | path

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

1234

/third_party/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()
/third_party/openssl/crypto/x509v3/
Dv3_pmaps.c51 POLICY_MAPPING *pmap; variable
57 pmap = sk_POLICY_MAPPING_value(pmaps, i);
58 i2t_ASN1_OBJECT(obj_tmp1, 80, pmap->issuerDomainPolicy);
59 i2t_ASN1_OBJECT(obj_tmp2, 80, pmap->subjectDomainPolicy);
68 POLICY_MAPPING *pmap = NULL; in v2i_POLICY_MAPPINGS() local
96 pmap = POLICY_MAPPING_new(); in v2i_POLICY_MAPPINGS()
97 if (pmap == NULL) { in v2i_POLICY_MAPPINGS()
101 pmap->issuerDomainPolicy = obj1; in v2i_POLICY_MAPPINGS()
102 pmap->subjectDomainPolicy = obj2; in v2i_POLICY_MAPPINGS()
104 sk_POLICY_MAPPING_push(pmaps, pmap); /* no failure as it was reserved */ in v2i_POLICY_MAPPINGS()
/third_party/boost/libs/graph/test/
Dlvalue_pmap.cpp36 property_map< graph_t, vertex_info_t >::type pmap = get(vertex_info_t(), x); in foo_1() local
37 return pmap[vertex(0, x)]; in foo_1()
42 property_map< graph_t, vertex_info_t >::const_type pmap in foo_2() local
44 return pmap[vertex(0, x)]; in foo_2()
49 property_map< graph_t, edge_info_t >::type pmap = get(edge_info_t(), x); in bar_1() local
50 return pmap[edge(vertex(0, x), vertex(1, x), x).first]; in bar_1()
55 property_map< graph_t, edge_info_t >::const_type pmap in bar_2() local
57 return pmap[edge(vertex(0, x), vertex(1, x), x).first]; in bar_2()
/third_party/flutter/skia/src/image/
DSkImage_Raster.cpp256 sk_sp<SkImage> MakeRasterCopyPriv(const SkPixmap& pmap, uint32_t id) { in MakeRasterCopyPriv() argument
258 if (!SkImage_Raster::ValidArgs(pmap.info(), pmap.rowBytes(), &size) || !pmap.addr()) { in MakeRasterCopyPriv()
263 sk_sp<SkData> data(SkData::MakeWithCopy(pmap.addr(), size)); in MakeRasterCopyPriv()
264 return sk_make_sp<SkImage_Raster>(pmap.info(), std::move(data), pmap.rowBytes(), id); in MakeRasterCopyPriv()
267 sk_sp<SkImage> SkImage::MakeRasterCopy(const SkPixmap& pmap) { in MakeRasterCopy() argument
268 return MakeRasterCopyPriv(pmap, kNeedNewImageUniqueID); in MakeRasterCopy()
286 sk_sp<SkImage> SkImage::MakeFromRaster(const SkPixmap& pmap, RasterReleaseProc proc, in MakeFromRaster() argument
289 if (!SkImage_Raster::ValidArgs(pmap.info(), pmap.rowBytes(), &size) || !pmap.addr()) { in MakeFromRaster()
293 sk_sp<SkData> data(SkData::MakeWithProc(pmap.addr(), size, proc, ctx)); in MakeFromRaster()
294 return sk_make_sp<SkImage_Raster>(pmap.info(), std::move(data), pmap.rowBytes()); in MakeFromRaster()
[all …]
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, this->imageInfo(), &pmap); in getROPixels()
197 !generate_pixels(ScopedGenerator(fSharedGenerator), pmap, in getROPixels()
338 SkPixmap pmap(info, data->writable_data(), rb); in DecodeToRaster() local
339 if (!generate_pixels(gen.get(), pmap, origin.x(), origin.y())) { in DecodeToRaster()
/third_party/skia/src/image/
DSkImage_Raster.cpp277 sk_sp<SkImage> MakeRasterCopyPriv(const SkPixmap& pmap, uint32_t id) { in MakeRasterCopyPriv() argument
279 if (!SkImage_Raster::ValidArgs(pmap.info(), pmap.rowBytes(), &size) || !pmap.addr()) { in MakeRasterCopyPriv()
284 sk_sp<SkData> data(SkData::MakeWithCopy(pmap.addr(), size)); in MakeRasterCopyPriv()
285 return sk_make_sp<SkImage_Raster>(pmap.info(), std::move(data), pmap.rowBytes(), id); in MakeRasterCopyPriv()
288 sk_sp<SkImage> SkImage::MakeRasterCopy(const SkPixmap& pmap) { in MakeRasterCopy() argument
289 return MakeRasterCopyPriv(pmap, kNeedNewImageUniqueID); in MakeRasterCopy()
340 sk_sp<SkImage> SkImage::MakeFromRaster(const SkPixmap& pmap, RasterReleaseProc proc, in MakeFromRaster() argument
343 if (!SkImage_Raster::ValidArgs(pmap.info(), pmap.rowBytes(), &size) || !pmap.addr()) { in MakeFromRaster()
347 sk_sp<SkData> data(SkData::MakeWithProc(pmap.addr(), size, proc, ctx)); in MakeFromRaster()
348 return sk_make_sp<SkImage_Raster>(pmap.info(), std::move(data), pmap.rowBytes()); in MakeFromRaster()
[all …]
DSkSurface.cpp235 bool SkSurface::peekPixels(SkPixmap* pmap) { in peekPixels() argument
236 return this->getCanvas()->peekPixels(pmap); in peekPixels()
291 void SkSurface::writePixels(const SkPixmap& pmap, int x, int y) { in writePixels() argument
292 if (pmap.addr() == nullptr || pmap.width() <= 0 || pmap.height() <= 0) { in writePixels()
296 const SkIRect srcR = SkIRect::MakeXYWH(x, y, pmap.width(), pmap.height()); in writePixels()
306 asSB(this)->onWritePixels(pmap, x, y); in writePixels()
/third_party/boost/libs/graph/example/
Diterator-property-map-eg.cpp16 pmap(x); in main() local
17 std::cout << "x[1] = " << get(pmap, 1) << std::endl; in main()
18 put(pmap, 0, 1.7); in main()
19 std::cout << "x[0] = " << pmap[0] << std::endl; in main()
/third_party/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()
/third_party/boost/boost/interprocess/detail/
Dintermodule_singleton_common.hpp130 ThreadSafeGlobalMap *const pmap = get_map_ptr(); in initialize_singleton_logic() local
131 void *tmp = constructor(*pmap); in initialize_singleton_logic()
189 ThreadSafeGlobalMap * const pmap = get_map_ptr(); in finalize_singleton_logic() local
190 destructor(ptr, *pmap); in finalize_singleton_logic()
238 ThreadSafeGlobalMap * const pmap = get_map_ptr(); in initialize_global_map_handle() local
240 <ThreadSafeGlobalMap>::construct_map(static_cast<void*>(pmap)); in initialize_global_map_handle()
244 lock_file_logic f(*pmap); in initialize_global_map_handle()
248 pmap->~ThreadSafeGlobalMap(); in initialize_global_map_handle()
271 ThreadSafeGlobalMap * const pmap = get_map_ptr(); in destroy_global_map_handle() local
273 unlink_map_logic f(*pmap); in destroy_global_map_handle()
[all …]
/third_party/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()
/third_party/flutter/skia/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()
/third_party/flutter/skia/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()
/third_party/libwebsockets/lib/misc/
Dlws-struct-lejp.c145 const lws_struct_map_t *map, *pmap = NULL; in lws_struct_default_lejp_cb() local
168 pmap = &args->map_st[ctx->pst_sp - 1] in lws_struct_default_lejp_cb()
187 pmap = map; in lws_struct_default_lejp_cb()
192 if (reason == LEJPCB_OBJECT_END && pmap) { in lws_struct_default_lejp_cb()
193 if (pmap->type == LSMT_CHILD_PTR) in lws_struct_default_lejp_cb()
197 pmap = &args->map_st[ctx->pst_sp - 1] in lws_struct_default_lejp_cb()
242 if (!ctx->path_match || !pmap) in lws_struct_default_lejp_cb()
251 if (pmap->type != LSMT_LIST && pmap->type != LSMT_CHILD_PTR) in lws_struct_default_lejp_cb()
257 (((char *)ctx->pst[ctx->pst_sp - 1].user) + pmap->ofs); in lws_struct_default_lejp_cb()
259 assert(pmap->aux); in lws_struct_default_lejp_cb()
[all …]
/third_party/skia/src/utils/
DSkCanvasStateUtils.cpp186 SkPixmap pmap; in CaptureCanvasState() local
187 if (!device->accessPixels(&pmap) || 0 == pmap.width() || 0 == pmap.height()) { in CaptureCanvasState()
202 layerState->width = pmap.width(); in CaptureCanvasState()
203 layerState->height = pmap.height(); in CaptureCanvasState()
205 switch (pmap.colorType()) { in CaptureCanvasState()
215 layerState->raster.rowBytes = pmap.rowBytes(); in CaptureCanvasState()
216 layerState->raster.pixels = pmap.writable_addr(); in CaptureCanvasState()
/third_party/gstreamer/gstplugins_base/tests/check/elements/
Daudiotestsrc.c216 GstMapInfo imap, pmap; in GST_START_TEST() local
230 gst_buffer_map (pbuf, &pmap, GST_MAP_READ); in GST_START_TEST()
233 fail_unless_equals_int (imap.size, pmap.size); in GST_START_TEST()
237 psamples = pmap.size / TEST_LAYOUT_CHANNELS; in GST_START_TEST()
239 fail_unless_equals_int (pmap.size % TEST_LAYOUT_CHANNELS, 0); in GST_START_TEST()
243 pptr = (gint16 *) pmap.data; in GST_START_TEST()
257 fail_unless (pidx < pmap.size / 2); in GST_START_TEST()
262 gst_buffer_unmap (pbuf, &pmap); in GST_START_TEST()
/third_party/boost/boost/pending/
Dindirect_cmp.hpp60 const Compare& cmp, ReadablePropertyMap pmap) in make_indirect_cmp() argument
62 indirect_cmp< ReadablePropertyMap, Compare > p(pmap, cmp); in make_indirect_cmp()
84 ReadablePropertyMap pmap) in make_indirect_pmap() argument
86 indirect_pmap< ReadablePropertyMap > f(pmap); in make_indirect_pmap()
/third_party/skia/tools/gpu/
DYUVUtils.cpp39 static uint8_t look_up(SkPoint normPt, const SkPixmap& pmap, SkColorChannel channel) { in look_up() argument
42 int x = SkScalarFloorToInt(normPt.x() * pmap.width()); in look_up()
43 int y = SkScalarFloorToInt(normPt.y() * pmap.height()); in look_up()
45 auto ii = pmap.info().makeColorType(kRGBA_8888_SkColorType).makeWH(1, 1); in look_up()
47 SkAssertResult(pmap.readPixels(ii, &pixel, sizeof(pixel), x, y)); in look_up()
96 const auto& pmap = fPixmaps.plane(yuvaLocations[c].fPlane); in onGetPixels() local
97 yuva[c] = look_up(xy1, pmap, yuvaLocations[c].fChannel); in onGetPixels()
101 const auto& pmap = fPixmaps.plane(aPlane); in onGetPixels() local
102 yuva[3] = look_up(xy1, pmap, aChan); in onGetPixels()
/third_party/NuttX/fs/nfs/
Drpc_clnt.c729 request.sdata.pmap.prog = txdr_unsigned(RPCPROG_MNT); in rpcclnt_connect()
730 request.sdata.pmap.vers = txdr_unsigned(RPCMNT_VER3); in rpcclnt_connect()
731 request.sdata.pmap.proc = txdr_unsigned(NFS_PROTOTYPE); in rpcclnt_connect()
732 request.sdata.pmap.port = 0; in rpcclnt_connect()
744 sa->sin_port = htons(fxdr_unsigned(uint32_t, response.rdata.pmap.port)); in rpcclnt_connect()
804 request.sdata.pmap.prog = txdr_unsigned(NFS_PROG); in rpcclnt_connect()
805 request.sdata.pmap.vers = txdr_unsigned(NFS_VER3); in rpcclnt_connect()
806 request.sdata.pmap.proc = txdr_unsigned(NFS_PROTOTYPE); in rpcclnt_connect()
807 request.sdata.pmap.port = 0; in rpcclnt_connect()
820 sa->sin_port = htons(fxdr_unsigned(uint32_t, response.rdata.pmap.port)); in rpcclnt_connect()
[all …]
/third_party/flutter/skia/gm/
Dpath_stroke_with_zero_length.cpp45 SkAutoPixmapStorage pmap; in draw_path_cell() local
46 pmap.alloc(info); in draw_path_cell()
47 if (!img->readPixels(pmap, 0, 0)) { in draw_path_cell()
60 uint32_t v = SkGetPackedR32(*pmap.addr32(x, y)) + SkGetPackedR32(*pmap.addr32(x, y + 1)); in draw_path_cell()
/third_party/flutter/skia/src/core/
DSkBitmap.cpp512 SkPixmap pmap; in GetBitmapAlpha() local
513 if (!src.peekPixels(&pmap)) { in GetBitmapAlpha()
520 SkConvertPixels(SkImageInfo::MakeA8(pmap.width(), pmap.height()), alpha, alphaRowBytes, in GetBitmapAlpha()
521 pmap.info(), pmap.addr(), pmap.rowBytes()); in GetBitmapAlpha()
627 bool SkBitmap::peekPixels(SkPixmap* pmap) const { in peekPixels()
629 if (pmap) { in peekPixels()
630 *pmap = fPixmap; in peekPixels()
/third_party/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()
/third_party/flutter/skia/tests/
DBitmapTest.cpp27 SkPixmap pmap; in test_peekpixels() local
32 REPORTER_ASSERT(reporter, !bm.peekPixels(&pmap)); in test_peekpixels()
37 REPORTER_ASSERT(reporter, !bm.peekPixels(&pmap)); in test_peekpixels()
42 REPORTER_ASSERT(reporter, bm.peekPixels(&pmap)); in test_peekpixels()
43 REPORTER_ASSERT(reporter, pmap.info() == bm.info()); in test_peekpixels()
44 REPORTER_ASSERT(reporter, pmap.addr() == bm.getPixels()); in test_peekpixels()
45 REPORTER_ASSERT(reporter, pmap.rowBytes() == bm.rowBytes()); in test_peekpixels()
/third_party/boost/boost/graph/
Dgraph_archetypes.hpp257 typename property_map< property_graph_archetype< G, P, V >, P >::type pmap; in get() local
258 return pmap; in get()
266 pmap; in get() local
267 return pmap; in get()
284 Map pmap = get(p, g); in put() local
285 put(pmap, key, value); in put()
/third_party/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()

1234