Home
last modified time | relevance | path

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

12

/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.cpp269 sk_sp<SkImage> SkImage::MakeRasterCopy(const SkPixmap& pmap) { in MakeRasterCopy() argument
271 if (!SkImage_Raster::ValidArgs(pmap.info(), pmap.rowBytes(), in MakeRasterCopy()
272 pmap.ctable() != nullptr, &size) || !pmap.addr()) { in MakeRasterCopy()
277 sk_sp<SkData> data(SkData::MakeWithCopy(pmap.addr(), size)); in MakeRasterCopy()
278 return sk_make_sp<SkImage_Raster>(pmap.info(), std::move(data), pmap.rowBytes(), pmap.ctable()); in MakeRasterCopy()
298 sk_sp<SkImage> SkImage::MakeFromRaster(const SkPixmap& pmap, RasterReleaseProc proc, in MakeFromRaster() argument
301 if (!SkImage_Raster::ValidArgs(pmap.info(), pmap.rowBytes(), pmap.ctable(), &size) || in MakeFromRaster()
302 !pmap.addr()) in MakeFromRaster()
307 sk_sp<SkData> data(SkData::MakeWithProc(pmap.addr(), size, proc, ctx)); in MakeFromRaster()
308 return sk_make_sp<SkImage_Raster>(pmap.info(), std::move(data), pmap.rowBytes(), pmap.ctable()); in MakeFromRaster()
[all …]
DSkImage.cpp71 SkPixmap pmap; in scalePixels() local
76 return bm.peekPixels(&pmap) && pmap.scalePixels(dst, quality); in scalePixels()
212 bool SkImage::readPixels(const SkPixmap& pmap, int srcX, int srcY, CachingHint chint) const { in readPixels() argument
213 return this->readPixels(pmap.info(), pmap.writable_addr(), pmap.rowBytes(), srcX, srcY, chint); in readPixels()
DSkSurface.cpp169 bool SkSurface::peekPixels(SkPixmap* pmap) { in peekPixels() argument
170 return this->getCanvas()->peekPixels(pmap); in peekPixels()
/external/skia/tests/
DDeviceLooperTest.cpp43 SkAutoPixmapStorage pmap; in test_simple() local
44 make_pm(&pmap, gRec[i].fDevSize.width(), gRec[i].fDevSize.height()); in test_simple()
49 SkDeviceLooper looper(pmap, rc, gRec[i].fRect, SkToBool(aa)); in test_simple()
54 REPORTER_ASSERT(reporter, looper.getPixmap().width() == pmap.width()); in test_simple()
55 REPORTER_ASSERT(reporter, looper.getPixmap().height() == pmap.height()); in test_simple()
65 SkDeviceLooper looper(pmap, rc, r, false); in test_simple()
112 SkAutoPixmapStorage pmap; in test_complex() local
113 make_pm(&pmap, w, h); in test_complex()
128 SkDeviceLooper looper(pmap, rc, rect, gRec[i].fAA); in test_complex()
DBitmapTest.cpp16 SkPixmap pmap; in test_peekpixels() local
21 REPORTER_ASSERT(reporter, !bm.peekPixels(&pmap)); in test_peekpixels()
26 REPORTER_ASSERT(reporter, !bm.peekPixels(&pmap)); in test_peekpixels()
31 REPORTER_ASSERT(reporter, bm.peekPixels(&pmap)); in test_peekpixels()
32 REPORTER_ASSERT(reporter, pmap.info() == bm.info()); in test_peekpixels()
33 REPORTER_ASSERT(reporter, pmap.addr() == bm.getPixels()); in test_peekpixels()
34 REPORTER_ASSERT(reporter, pmap.rowBytes() == bm.rowBytes()); in test_peekpixels()
35 REPORTER_ASSERT(reporter, pmap.ctable() == bm.getColorTable()); in test_peekpixels()
DImageIsOpaqueTest.cpp119 SkPixmap pmap = { in DEF_TEST() local
125 SkImage::MakeRasterCopy(pmap), in DEF_TEST()
DSurfaceTest.cpp99 SkPixmap pmap; in test_canvas_peek() local
100 bool success = surface->getCanvas()->peekPixels(&pmap); in test_canvas_peek()
107 REPORTER_ASSERT(reporter, requestInfo == pmap.info()); in test_canvas_peek()
108 REPORTER_ASSERT(reporter, requestInfo.minRowBytes() <= pmap.rowBytes()); in test_canvas_peek()
109 REPORTER_ASSERT(reporter, pmcolor == *pmap.addr32()); in test_canvas_peek()
111 REPORTER_ASSERT(reporter, pmap.addr() == pmap2.addr()); in test_canvas_peek()
112 REPORTER_ASSERT(reporter, pmap.info() == pmap2.info()); in test_canvas_peek()
113 REPORTER_ASSERT(reporter, pmap.rowBytes() == pmap2.rowBytes()); in test_canvas_peek()
DCanvasTest.cpp639 SkPixmap pmap; in test_newraster() local
640 const SkPMColor* addr = canvas->peekPixels(&pmap) ? pmap.addr32() : nullptr; in test_newraster()
642 REPORTER_ASSERT(reporter, info == pmap.info()); in test_newraster()
643 REPORTER_ASSERT(reporter, minRowBytes == pmap.rowBytes()); in test_newraster()
648 addr = (const SkPMColor*)((const char*)addr + pmap.rowBytes()); in test_newraster()
DImageTest.cpp384 SkPixmap pmap; in DEF_TEST() local
389 const bool peekSuccess = image->peekPixels(&pmap); in DEF_TEST()
587 SkPixmap pmap(info, nullptr, 0); in DEF_TEST() local
588 REPORTER_ASSERT(reporter, nullptr == SkImage::MakeRasterCopy(pmap)); in DEF_TEST()
590 REPORTER_ASSERT(reporter, nullptr == SkImage::MakeFromRaster(pmap, nullptr, nullptr)); in DEF_TEST()
/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/skia/src/utils/
DSkCanvasStateUtils.cpp199 SkPixmap pmap; in CaptureCanvasState() local
200 if (!layer.device()->accessPixels(&pmap) || 0 == pmap.width() || 0 == pmap.height()) { in CaptureCanvasState()
209 layerState->width = pmap.width(); in CaptureCanvasState()
210 layerState->height = pmap.height(); in CaptureCanvasState()
212 switch (pmap.colorType()) { in CaptureCanvasState()
222 layerState->raster.rowBytes = pmap.rowBytes(); in CaptureCanvasState()
223 layerState->raster.pixels = pmap.writable_addr(); in CaptureCanvasState()
/external/skia/src/core/
DSkBitmap.cpp855 const SkPixmap& pmap = apl.pixmap(); in GetBitmapAlpha() local
856 SkConvertPixels(SkImageInfo::MakeA8(pmap.width(), pmap.height()), alpha, alphaRowBytes, in GetBitmapAlpha()
857 pmap.info(), pmap.addr(), pmap.rowBytes(), pmap.ctable(), in GetBitmapAlpha()
932 static void write_raw_pixels(SkWriteBuffer* buffer, const SkPixmap& pmap) { in write_raw_pixels() argument
933 const SkImageInfo& info = pmap.info(); in write_raw_pixels()
935 const char* src = (const char*)pmap.addr(); in write_raw_pixels()
936 const size_t ramRB = pmap.rowBytes(); in write_raw_pixels()
951 const SkColorTable* ct = pmap.ctable(); in write_raw_pixels()
1169 bool SkBitmap::peekPixels(SkPixmap* pmap) const { in peekPixels()
1171 if (pmap) { in peekPixels()
[all …]
DSkDevice.cpp301 bool SkBaseDevice::accessPixels(SkPixmap* pmap) { in accessPixels() argument
303 if (nullptr == pmap) { in accessPixels()
304 pmap = &tempStorage; in accessPixels()
306 return this->onAccessPixels(pmap); in accessPixels()
309 bool SkBaseDevice::peekPixels(SkPixmap* pmap) { in peekPixels() argument
311 if (nullptr == pmap) { in peekPixels()
312 pmap = &tempStorage; in peekPixels()
314 return this->onPeekPixels(pmap); in peekPixels()
DSkDraw.cpp1177 const SkPixmap& pmap = result.pixmap(); in drawBitmapAsMask() local
1179 mask.fBounds.set(ix, iy, ix + pmap.width(), iy + pmap.height()); in drawBitmapAsMask()
1181 mask.fRowBytes = SkToU32(pmap.rowBytes()); in drawBitmapAsMask()
1183 mask.fImage = (uint8_t*)pmap.addr8(0, 0); in drawBitmapAsMask()
1260 static bool clipHandlesSprite(const SkRasterClip& clip, int x, int y, const SkPixmap& pmap) { in clipHandlesSprite() argument
1261 return clip.isBW() || clip.quickContains(x, y, x + pmap.width(), y + pmap.height()); in clipHandlesSprite()
1297 const SkPixmap& pmap = unlocker.pixmap(); in drawBitmap() local
1300 if (clipHandlesSprite(*fRC, ix, iy, pmap)) { in drawBitmap()
1304 SkBlitter* blitter = SkBlitter::ChooseSprite(fDst, *paint, pmap, ix, iy, &allocator); in drawBitmap()
1306 SkScan::FillIRect(SkIRect::MakeXYWH(ix, iy, pmap.width(), pmap.height()), in drawBitmap()
[all …]
DSkBitmapDevice.cpp147 bool SkBitmapDevice::onAccessPixels(SkPixmap* pmap) { in onAccessPixels() argument
148 if (this->onPeekPixels(pmap)) { in onAccessPixels()
155 bool SkBitmapDevice::onPeekPixels(SkPixmap* pmap) { in onPeekPixels() argument
159 pmap->reset(fBitmap.info(), fBitmap.getPixels(), fBitmap.rowBytes(), ctable); in onPeekPixels()
DSkCanvas.cpp1315 bool SkCanvas::peekPixels(SkPixmap* pmap) { in peekPixels() argument
1316 return this->onPeekPixels(pmap); in peekPixels()
1319 bool SkCanvas::onPeekPixels(SkPixmap* pmap) { in onPeekPixels() argument
1321 return dev && dev->peekPixels(pmap); in onPeekPixels()
1325 SkPixmap pmap; in accessTopLayerPixels() local
1326 if (!this->onAccessTopLayerPixels(&pmap)) { in accessTopLayerPixels()
1330 *info = pmap.info(); in accessTopLayerPixels()
1333 *rowBytes = pmap.rowBytes(); in accessTopLayerPixels()
1338 return pmap.writable_addr(); in accessTopLayerPixels()
1341 bool SkCanvas::onAccessTopLayerPixels(SkPixmap* pmap) { in onAccessTopLayerPixels() argument
[all …]
/external/skia/src/gpu/
DSkGr.cpp110 const SkPixmap* pmap = &pixmap; in compute_desc() local
141 pmap = tmpPixmap; in compute_desc()
143 *desc = GrImageInfoToSurfaceDesc(pmap->info(), caps); in compute_desc()
153 pmap = tmpPixmap; in compute_desc()
155 *desc = GrImageInfoToSurfaceDesc(pmap->info(), caps); in compute_desc()
158 return pmap; in compute_desc()
172 if (const SkPixmap* pmap = compute_desc(*resourceProvider->caps(), pixmap, &desc, in GrUploadPixmapToTextureProxy() local
175 budgeted, pmap->addr(), pmap->rowBytes()); in GrUploadPixmapToTextureProxy()
/external/skia/src/pipe/
DSkPipeCanvas.cpp798 SkData* onEncode(const SkPixmap& pmap) { in onEncode() argument
799 if (kAlpha_8_SkColorType == pmap.colorType()) { in onEncode()
802 stream.write32(pmap.width()); in onEncode()
803 stream.write32(pmap.height()); in onEncode()
804 stream.write16(pmap.colorType()); in onEncode()
805 stream.write16(pmap.alphaType()); in onEncode()
807 for (int y = 0; y < pmap.height(); ++y) { in onEncode()
808 stream.write(pmap.addr8(0, y), pmap.width()); in onEncode()
DSkPipeReader.cpp636 stream.write32(pmap.width());
637 stream.write32(pmap.height());
638 stream.write16(pmap.colorType());
639 stream.write16(pmap.alphaType());
641 for (int y = 0; y < pmap.height(); ++y) {
642 stream.write(pmap.addr8(0, y), pmap.width());
/external/skia/tools/
Dsk_tool_utils.h249 SkData* onEncode(const SkPixmap& pmap) override { in MakePixelSerializer()
250 return EncodeImageToData(pmap, SkEncodedImageFormat::kPNG, 100).release(); in MakePixelSerializer()
/external/pdfium/core/fpdfapi/font/
Dcpdf_cidfont.cpp397 CPDF_Object* pmap = pCIDFontDict->GetDirectObjectFor("CIDToGIDMap"); in Load() local
398 if (pmap) { in Load()
399 if (CPDF_Stream* pStream = pmap->AsStream()) { in Load()
402 } else if (pmap->GetString() == "Identity") { in Load()
/external/clang/lib/StaticAnalyzer/Checkers/
DDeadStoresChecker.cpp469 ParentMap &pmap = mgr.getParentMap(D); in checkASTCodeBody() local
472 DeadStoreObs A(cfg, BR.getContext(), BR, this, AC, pmap, FS.Escaped); in checkASTCodeBody()
/external/skia/gm/
Dimage.cpp197 static void draw_pixmap(SkCanvas* canvas, const SkPixmap& pmap) {
199 bitmap.installPixels(pmap);
/external/toybox/
DAndroid.mk115 toys/other/pmap.c \
334 pmap \

12