Home
last modified time | relevance | path

Searched refs:getPixels (Results 1 – 25 of 102) sorted by relevance

12345

/external/skia/tests/
DCachedDecodingPixelRefTest.cpp65 REPORTER_ASSERT(reporter, b1.getPixels()); in compare_bitmaps()
66 REPORTER_ASSERT(reporter, b2.getPixels()); in compare_bitmaps()
67 if ((!(b1.getPixels())) || (!(b2.getPixels()))) { in compare_bitmaps()
121 REPORTER_ASSERT(reporter, nullptr == lazy.getPixels()); in test_three_encodings()
124 REPORTER_ASSERT(reporter, lazy.getPixels()); in test_three_encodings()
125 if (nullptr == lazy.getPixels()) { in test_three_encodings()
130 REPORTER_ASSERT(reporter, nullptr == lazy.getPixels()); in test_three_encodings()
133 REPORTER_ASSERT(reporter, lazy.getPixels()); in test_three_encodings()
134 if (nullptr == lazy.getPixels()) { in test_three_encodings()
236 REPORTER_ASSERT(reporter, bm.getPixels()); in check_test_image_generator_bitmap()
[all …]
DCodexTest.cpp31 SkASSERT(bm.getPixels()); in md5()
66 SkCodec::Result result = codec->getPixels(info, bm.getPixels(), bm.rowBytes()); in test_info()
95 SkCodec::Result result = codec->getPixels(info, bm.getPixels(), bm.rowBytes()); in test_codec()
223 REPORTER_ASSERT(r, codec->getPixels(bm.info(), bm.getPixels(), bm.rowBytes()) in check()
274 const SkCodec::Result result = codec->getPixels(bm.info(), bm.getPixels(), bm.rowBytes(), in check()
324 REPORTER_ASSERT(r, gen->getPixels(info, bm.getPixels(), bm.rowBytes())); in check()
437 SkCodec::Result result = codec->getPixels(info, bm.getPixels(), bm.rowBytes()); in DEF_TEST()
796 SkCodec::Result result = codec->getPixels(codec->getInfo(), decodedBm.getPixels(), in DEF_TEST()
817 result = codec->getPixels(codec->getInfo(), decodedBm.getPixels(), decodedBm.rowBytes()); in DEF_TEST()
DRecordingXfermodeTest.cpp160 0 == memcmp(goldenBM.getPixels(), pictureBM.getPixels(), pixelsSize)); in DEF_TEST()
162 if (memcmp(goldenBM.getPixels(), pictureBM.getPixels(), pixelsSize)) { in DEF_TEST()
DBadIcoTest.cpp41 codec->getPixels(codec->getInfo(), bm.getPixels(), in DEF_TEST()
DCodecPriv.h33 const SkCodec::Result result = codec->getPixels(codec->getInfo(), bm->getPixels(), in decode_memory()
DCanvasStateTest.cpp145 REPORTER_ASSERT(reporter, !memcmp(bitmaps[0].getPixels(), in DEF_TEST()
146 bitmaps[1].getPixels(), in DEF_TEST()
257 REPORTER_ASSERT(reporter, !memcmp(bitmaps[0].getPixels(), in DEF_TEST()
258 bitmaps[1].getPixels(), in DEF_TEST()
DSpecialImageTest.cpp96 bool result = canvas->readPixels(bm.info(), bm.getPixels(), bm.rowBytes(), 0, 0); in test_image()
139 bm.getPixels(), 0)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DImageNewShaderTest.cpp24 REPORTER_ASSERT(reporter, 0 == memcmp(bm1.getPixels(), bm2.getPixels(), bm1.getSize())); in testBitmapEquality()
/external/skia/src/core/
DSkImageGenerator.cpp16 bool SkImageGenerator::getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, in getPixels() function in SkImageGenerator
47 bool SkImageGenerator::getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes) { in getPixels() function in SkImageGenerator
52 return this->getPixels(info, pixels, rowBytes, nullptr, nullptr); in getPixels()
197 if (!bitmap->getPixels()) { in tryGenerateBitmap()
202 if (!this->getPixels(bitmap->info(), bitmap->getPixels(), bitmap->rowBytes(), in tryGenerateBitmap()
DSkBitmapController.cpp130 SkASSERT(fResultBitmap.getPixels()); in processHQRequest()
139 SkASSERT(fResultBitmap.getPixels()); in processHQRequest()
208 SkASSERT(fResultBitmap.getPixels()); in SkDefaultBitmapControllerState()
218 fPixmap.reset(fResultBitmap.info(), fResultBitmap.getPixels(), fResultBitmap.rowBytes(), in SkDefaultBitmapControllerState()
DSkImageCacherator.cpp80 SkASSERT(bitmap.getPixels()); in check_output_bitmap()
107 return full.readPixels(bitmap->info(), bitmap->getPixels(), bitmap->rowBytes(), in generateBitmap()
120 return generator->getPixels(info, pixels, rb); in directGeneratePixels()
175 bitmap->getPixels(), bitmap->rowBytes(), pixelOpsFlags)) { in lockAsBitmap()
/external/skia/gm/
Dimagefromyuvtextures.cpp50 SkPMColor* rgbColors = static_cast<SkPMColor*>(rgbBmp.getPixels()); in onOnceBeforeDraw()
60 yPixels = static_cast<unsigned char*>(fYUVBmps[0].getPixels()); in onOnceBeforeDraw()
61 uvPixels[0] = static_cast<signed char*>(fYUVBmps[1].getPixels()); in onOnceBeforeDraw()
62 uvPixels[1] = static_cast<signed char*>(fYUVBmps[2].getPixels()); in onOnceBeforeDraw()
104 yuvHandles[i] = gpu->createTestingOnlyBackendTexture(fYUVBmps[i].getPixels(), in createYUVTextures()
Dxfermodes2.cpp98 memcpy(bg.getPixels(), kCheckData, sizeof(kCheckData)); in onOnceBeforeDraw()
109 SkPMColor* pixels = reinterpret_cast<SkPMColor*>(srcBmp.getPixels()); in onOnceBeforeDraw()
123 pixels = reinterpret_cast<SkPMColor*>(dstBmp.getPixels()); in onOnceBeforeDraw()
/external/skia/bench/
DPremulAndUnpremulAlphaOpsBench.cpp51 canvas->writePixels(fBmp1.info(), fBmp1.getPixels(), fBmp1.rowBytes(), 0, 0); in onDraw()
53 canvas->readPixels(fBmp2.info(), fBmp2.getPixels(), fBmp2.rowBytes(), 0, 0); in onDraw()
/external/skia/src/gpu/
DSkGrPixelRef.cpp33 if (nullptr == fBitmap.getPixels()) { in onNewLockPixels()
37 rec->fPixels = fBitmap.getPixels(); in onNewLockPixels()
195 void* buffer = cachedBitmap.getPixels(); in onReadPixels()
/external/skia/src/images/
DSkImageDecoder_libgif.cpp158 msg, bm.width(), bm.height(), bm.getPixels(), in error_return()
167 msg, bm.width(), bm.height(), bm.getPixels(), in gif_warning()
198 if (bm->getPixels()) { in sanitize_indexed_bitmap()
208 uint8_t* addr = static_cast<uint8_t*>(bm->getPixels()); in sanitize_indexed_bitmap()
393 memset(bm->getPixels(), fillIndex, bm->getSize());
DSkImageEncoder_argb.cpp96 const uint8_t* src = (uint8_t*)bitmap.getPixels(); in onEncode()
97 if (nullptr == bitmap.getPixels()) { in onEncode()
/external/skia/src/image/
DSkImage_Raster.cpp145 if ((kUnknown_SkColorType == info.colorType()) || !fBitmap.getPixels()) { in onPeekPixels()
150 return fBitmap.getPixels(); in onPeekPixels()
263 if (tmp.getPixels()) { in SkNewImageFromRasterBitmap()
264 image = SkImage::NewRasterCopy(tmp.info(), tmp.getPixels(), tmp.rowBytes(), in SkNewImageFromRasterBitmap()
/external/skia/fuzz/
Dfuzz.cpp163 switch (codec->getPixels(decodeInfo, bitmap.getPixels(), bitmap.rowBytes(), &options, in fuzz_img()
287 void* pixels = bitmap.getPixels(); in fuzz_img()
311 const SkCodec::Result result = codec->getPixels(decodeInfo, pixels, rowBytes, in fuzz_img()
/external/skia/src/utils/mac/
DSkCreateCGImageRef.cpp141 CGDataProviderRef dataRef = CGDataProviderCreateWithData(bitmap, bitmap->getPixels(), s, in SkCreateCGImageRefWithColorspace()
231 CGContextRef ctx = CGBitmapContextCreate(bitmap.getPixels(), w, h, in SkPDFDocumentToBitmap()
291 if (!SkCopyPixelsFromCGImage(tmp.info(), tmp.rowBytes(), tmp.getPixels(), image)) { in SkCreateBitmapFromCGImage()
/external/skia/include/core/
DSkImageGenerator.h122 bool getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes,
129 bool getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes);
/external/skia/src/codec/
DSkCodec.cpp152 SkCodec::Result SkCodec::getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, in getPixels() function in SkCodec
222 SkCodec::Result SkCodec::getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes) { in getPixels() function in SkCodec
223 return this->getPixels(info, pixels, rowBytes, nullptr, nullptr, nullptr); in getPixels()
/external/skia/src/ports/
DSkImageDecoder_CG.cpp84 if (!bm->getPixels()) { in force_opaque()
104 char* row = (char*)bm->getPixels(); in force_opaque()
188 if (!SkCopyPixelsFromCGImage(bm->info(), bm->rowBytes(), bm->getPixels(), image)) { in onDecode()
DSkImageDecoder_WIC.cpp241 reinterpret_cast<BYTE *>(bm->getPixels()) in decodeStream()
324 uint8_t* pixels = reinterpret_cast<uint8_t*>(bitmap->getPixels()); in onEncode()
426 , reinterpret_cast<BYTE*>(bitmap->getPixels())); in onEncode()
/external/skia/include/codec/
DSkCodec.h271 Result getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, const Options*,
278 Result getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes);

12345