Home
last modified time | relevance | path

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

123

/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/skia/src/image/
DSkImage_Raster.cpp260 sk_sp<SkImage> MakeRasterCopyPriv(const SkPixmap& pmap, uint32_t id) { in MakeRasterCopyPriv() argument
262 if (!SkImage_Raster::ValidArgs(pmap.info(), pmap.rowBytes(), &size) || !pmap.addr()) { in MakeRasterCopyPriv()
267 sk_sp<SkData> data(SkData::MakeWithCopy(pmap.addr(), size)); in MakeRasterCopyPriv()
268 return sk_make_sp<SkImage_Raster>(pmap.info(), std::move(data), pmap.rowBytes(), id); in MakeRasterCopyPriv()
271 sk_sp<SkImage> SkImage::MakeRasterCopy(const SkPixmap& pmap) { in MakeRasterCopy() argument
272 return MakeRasterCopyPriv(pmap, kNeedNewImageUniqueID); in MakeRasterCopy()
290 sk_sp<SkImage> SkImage::MakeFromRaster(const SkPixmap& pmap, RasterReleaseProc proc, in MakeFromRaster() argument
293 if (!SkImage_Raster::ValidArgs(pmap.info(), pmap.rowBytes(), &size) || !pmap.addr()) { in MakeFromRaster()
297 sk_sp<SkData> data(SkData::MakeWithProc(pmap.addr(), size, proc, ctx)); in MakeFromRaster()
298 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.cpp145 static bool generate_pixels(SkImageGenerator* gen, const SkPixmap& pmap, int originX, int originY) { in generate_pixels() argument
149 const SkIRect dstR = SkIRect::MakeXYWH(originX, originY, pmap.width(), pmap.height()); in generate_pixels()
158 const SkPixmap* dstPM = &pmap; in generate_pixels()
160 if (!full.tryAllocPixels(pmap.info().makeWH(genW, genH))) { in generate_pixels()
174 if (!full.readPixels(pmap, originX, originY)) { in generate_pixels()
195 SkPixmap pmap; in getROPixels() local
196 SkBitmapCache::RecPtr cacheRec = SkBitmapCache::Alloc(desc, fInfo, &pmap); in getROPixels()
198 !generate_pixels(ScopedGenerator(fSharedGenerator), pmap, in getROPixels()
DSkImage.cpp67 SkPixmap pmap; in scalePixels() local
72 return bm.peekPixels(&pmap) && pmap.scalePixels(dst, quality); in scalePixels()
211 bool SkImage::readPixels(const SkPixmap& pmap, int srcX, int srcY, CachingHint chint) const { in readPixels() argument
212 return this->readPixels(pmap.info(), pmap.writable_addr(), pmap.rowBytes(), srcX, srcY, chint); in readPixels()
DSkImage_GpuBase.cpp80 SkPixmap pmap; in getROPixels() local
82 rec = SkBitmapCache::Alloc(desc, this->onImageInfo(), &pmap); in getROPixels()
87 if (!dst->tryAllocPixels(this->onImageInfo()) || !dst->peekPixels(&pmap)) { in getROPixels()
98 if (!sContext->readPixels(pmap.info(), pmap.writable_addr(), pmap.rowBytes(), 0, 0)) { in getROPixels()
/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()
DSkImage.cpp67 SkPixmap pmap; in scalePixels() local
72 return bm.peekPixels(&pmap) && pmap.scalePixels(dst, quality); in scalePixels()
205 bool SkImage::readPixels(const SkPixmap& pmap, int srcX, int srcY, CachingHint chint) const { in readPixels() argument
206 return this->readPixels(pmap.info(), pmap.writable_addr(), pmap.rowBytes(), srcX, srcY, chint); in readPixels()
/external/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()
/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/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.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/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/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.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/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/skia/src/core/
DSkBitmap.cpp521 SkPixmap pmap; in GetBitmapAlpha() local
522 if (!src.peekPixels(&pmap)) { in GetBitmapAlpha()
529 SkConvertPixels(SkImageInfo::MakeA8(pmap.width(), pmap.height()), alpha, alphaRowBytes, in GetBitmapAlpha()
530 pmap.info(), pmap.addr(), pmap.rowBytes()); in GetBitmapAlpha()
636 bool SkBitmap::peekPixels(SkPixmap* pmap) const { in peekPixels()
638 if (pmap) { in peekPixels()
639 *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.cpp310 bool SkBaseDevice::accessPixels(SkPixmap* pmap) { in accessPixels() argument
312 if (nullptr == pmap) { in accessPixels()
313 pmap = &tempStorage; in accessPixels()
315 return this->onAccessPixels(pmap); in accessPixels()
318 bool SkBaseDevice::peekPixels(SkPixmap* pmap) { in peekPixels() argument
320 if (nullptr == pmap) { in peekPixels()
321 pmap = &tempStorage; in peekPixels()
323 return this->onPeekPixels(pmap); in peekPixels()
/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/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()

123