/external/skia/tests/ |
D | CodecPartialTest.cpp | 41 return SkCodec::kSuccess == codec->getPixels(info, dst->getPixels(), dst->rowBytes()); in create_truth() 87 incremental.getPixels(), incremental.rowBytes()); in test_partial() 248 const SkCodec::Result result = fullCodec->getPixels(info, frame.getPixels(), in DEF_TEST() 298 frame.getPixels(), frame.rowBytes(), &opts); in DEF_TEST() 347 incremental.getPixels(), incremental.rowBytes()); in test_interleaved() 358 result = partialCodec->getPixels(info, full.getPixels(), full.rowBytes()); in test_interleaved() 409 auto result = codec->getPixels(info, truth.getPixels(), truth.rowBytes()); in DEF_TEST() 420 result = codec->getPixels(info, bm.getPixels(), bm.rowBytes()); in DEF_TEST() 439 result = codec->startIncrementalDecode(info, bm.getPixels(), bm.rowBytes()); in DEF_TEST() 455 result = codec->startIncrementalDecode(info, bm.getPixels(), bm.rowBytes()); in DEF_TEST() [all …]
|
D | CodecTest.cpp | 61 SkASSERT(bm.getPixels()); in md5() 95 SkCodec::Result result = codec->getPixels(info, bm.getPixels(), bm.rowBytes()); in test_info() 120 REPORTER_ASSERT(r, SkCodec::kSuccess == codec->startIncrementalDecode(info, bm.getPixels(), in test_incremental_decode() 178 SkCodec::Result result = codec->getPixels(info, bm.getPixels(), bm.rowBytes()); in test_codec() 197 auto actualResult = codec->getPixels(info565, bm565.getPixels(), bm565.rowBytes()); in test_codec() 225 REPORTER_ASSERT(r, expectedResult == codec->getPixels(grayInfo, in test_codec() 226 grayBm.getPixels(), grayBm.rowBytes())); in test_codec() 362 REPORTER_ASSERT(r, codec->getPixels(bm.info(), bm.getPixels(), bm.rowBytes()) in check() 412 const auto result = codec->getPixels(bm.info(), bm.getPixels(), bm.rowBytes(), &opts); in check() 455 REPORTER_ASSERT(r, gen->getPixels(info, bm.getPixels(), bm.rowBytes())); in check() [all …]
|
D | EncodedInfoTest.cpp | 25 auto result = codec->getPixels(codec->getInfo(), bm.getPixels(), bm.rowBytes()); in DEF_TEST() 38 result = codec->getPixels(bm2.pixmap()); in DEF_TEST()
|
D | RecordingXfermodeTest.cpp | 161 0 == memcmp(goldenBM.getPixels(), pictureBM.getPixels(), pixelsSize)); in DEF_TEST() 163 if (memcmp(goldenBM.getPixels(), pictureBM.getPixels(), pixelsSize)) { in DEF_TEST()
|
D | CodecAnimTest.cpp | 58 const auto result = codec->getPixels(info, bm.getPixels(), bm.rowBytes(), in DEF_TEST() 327 const auto result = codec->getPixels(decodeInfo, bm->getPixels(), bm->rowBytes(), in DEF_TEST() 430 auto result = codec->codec()->getPixels(info, bm.getPixels(), bm.rowBytes(), in DEF_TEST() 439 result = codec->codec()->getPixels(info, bm2.getPixels(), bm2.rowBytes(), in DEF_TEST()
|
D | AndroidCodecTest.cpp | 245 REPORTER_ASSERT(r, gen->getPixels(info, fromGenerator.getPixels(), in DEF_TEST() 250 auto result = androidCodec->getPixels(info, fromAndroidCodec.getPixels(), in DEF_TEST() 293 auto result = androidCodec->getAndroidPixels(info, bm.getPixels(), bm.rowBytes(), &options); in DEF_TEST()
|
D | BadIcoTest.cpp | 45 codec->getPixels(codec->getInfo(), bm.getPixels(), in DEF_TEST()
|
/external/skqp/tests/ |
D | CodecPartialTest.cpp | 41 return SkCodec::kSuccess == codec->getPixels(info, dst->getPixels(), dst->rowBytes()); in create_truth() 87 incremental.getPixels(), incremental.rowBytes()); in test_partial() 248 const SkCodec::Result result = fullCodec->getPixels(info, frame.getPixels(), in DEF_TEST() 298 frame.getPixels(), frame.rowBytes(), &opts); in DEF_TEST() 347 incremental.getPixels(), incremental.rowBytes()); in test_interleaved() 358 result = partialCodec->getPixels(info, full.getPixels(), full.rowBytes()); in test_interleaved() 409 auto result = codec->getPixels(info, truth.getPixels(), truth.rowBytes()); in DEF_TEST() 420 result = codec->getPixels(info, bm.getPixels(), bm.rowBytes()); in DEF_TEST() 439 result = codec->startIncrementalDecode(info, bm.getPixels(), bm.rowBytes()); in DEF_TEST() 455 result = codec->startIncrementalDecode(info, bm.getPixels(), bm.rowBytes()); in DEF_TEST() [all …]
|
D | CodecTest.cpp | 61 SkASSERT(bm.getPixels()); in md5() 95 SkCodec::Result result = codec->getPixels(info, bm.getPixels(), bm.rowBytes()); in test_info() 120 REPORTER_ASSERT(r, SkCodec::kSuccess == codec->startIncrementalDecode(info, bm.getPixels(), in test_incremental_decode() 178 SkCodec::Result result = codec->getPixels(info, bm.getPixels(), bm.rowBytes()); in test_codec() 197 auto actualResult = codec->getPixels(info565, bm565.getPixels(), bm565.rowBytes()); in test_codec() 225 REPORTER_ASSERT(r, expectedResult == codec->getPixels(grayInfo, in test_codec() 226 grayBm.getPixels(), grayBm.rowBytes())); in test_codec() 362 REPORTER_ASSERT(r, codec->getPixels(bm.info(), bm.getPixels(), bm.rowBytes()) in check() 412 const auto result = codec->getPixels(bm.info(), bm.getPixels(), bm.rowBytes(), &opts); in check() 455 REPORTER_ASSERT(r, gen->getPixels(info, bm.getPixels(), bm.rowBytes())); in check() [all …]
|
D | EncodedInfoTest.cpp | 25 auto result = codec->getPixels(codec->getInfo(), bm.getPixels(), bm.rowBytes()); in DEF_TEST() 38 result = codec->getPixels(bm2.pixmap()); in DEF_TEST()
|
D | RecordingXfermodeTest.cpp | 161 0 == memcmp(goldenBM.getPixels(), pictureBM.getPixels(), pixelsSize)); in DEF_TEST() 163 if (memcmp(goldenBM.getPixels(), pictureBM.getPixels(), pixelsSize)) { in DEF_TEST()
|
D | CodecAnimTest.cpp | 58 const auto result = codec->getPixels(info, bm.getPixels(), bm.rowBytes(), in DEF_TEST() 327 const auto result = codec->getPixels(decodeInfo, bm->getPixels(), bm->rowBytes(), in DEF_TEST() 430 auto result = codec->codec()->getPixels(info, bm.getPixels(), bm.rowBytes(), in DEF_TEST() 439 result = codec->codec()->getPixels(info, bm2.getPixels(), bm2.rowBytes(), in DEF_TEST()
|
D | AndroidCodecTest.cpp | 245 REPORTER_ASSERT(r, gen->getPixels(info, fromGenerator.getPixels(), in DEF_TEST() 250 auto result = androidCodec->getPixels(info, fromAndroidCodec.getPixels(), in DEF_TEST() 293 auto result = androidCodec->getAndroidPixels(info, bm.getPixels(), bm.rowBytes(), &options); in DEF_TEST()
|
D | BadIcoTest.cpp | 45 codec->getPixels(codec->getInfo(), bm.getPixels(), in DEF_TEST()
|
/external/skqp/src/android/ |
D | SkAnimatedImage.cpp | 37 if (!image->fDisplayFrame.fBitmap.getPixels()) { in Make() 56 if (!image->fDisplayFrame.fBitmap.getPixels()) { in Make() 103 if (fBitmap.getPixels()) { in init() 118 memcpy(tmp.getPixels(), fBitmap.getPixels(), fBitmap.computeByteSize()); in init() 133 memcpy(dst->fBitmap.getPixels(), fBitmap.getPixels(), fBitmap.computeByteSize()); in copyTo() 289 auto result = fCodec->codec()->getPixels(dst->info(), dst->getPixels(), dst->rowBytes(), in decodeNextFrame()
|
/external/skia/src/android/ |
D | SkAnimatedImage.cpp | 47 if (!image->fDisplayFrame.fBitmap.getPixels()) { in Make() 66 if (!image->fDisplayFrame.fBitmap.getPixels()) { in Make() 113 if (fBitmap.getPixels()) { in init() 128 memcpy(tmp.getPixels(), fBitmap.getPixels(), fBitmap.computeByteSize()); in init() 143 memcpy(dst->fBitmap.getPixels(), fBitmap.getPixels(), fBitmap.computeByteSize()); in copyTo() 299 auto result = fCodec->codec()->getPixels(dst->info(), dst->getPixels(), dst->rowBytes(), in decodeNextFrame()
|
/external/skia/gm/ |
D | imagefromyuvtextures.cpp | 61 SkPMColor* rgbColors = static_cast<SkPMColor*>(rgbBmp.getPixels()); in onOnceBeforeDraw() 71 yPixels = static_cast<unsigned char*>(fYUVBmps[0].getPixels()); in onOnceBeforeDraw() 72 uvPixels[0] = static_cast<signed char*>(fYUVBmps[1].getPixels()); in onOnceBeforeDraw() 73 uvPixels[1] = static_cast<signed char*>(fYUVBmps[2].getPixels()); in onOnceBeforeDraw() 115 yuvTextures[i] = gpu->createTestingOnlyBackendTexture(fYUVBmps[i].getPixels(), in createYUVTextures()
|
D | animatedGif.cpp | 39 if (!bm.getPixels()) { in drawFrame() 51 if (requiredBitmap.getPixels() && in drawFrame() 57 if (SkCodec::kSuccess != fCodec->getPixels(info, bm.getPixels(), in drawFrame()
|
/external/skqp/gm/ |
D | imagefromyuvtextures.cpp | 50 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() 108 yuvTextures[i] = gpu->createTestingOnlyBackendTexture(fYUVBmps[i].getPixels(), in createYUVTextures()
|
D | animatedGif.cpp | 51 if (!bm.getPixels()) { in drawFrame() 63 if (requiredBitmap.getPixels() && in drawFrame() 69 if (SkCodec::kSuccess != fCodec->getPixels(info, bm.getPixels(), in drawFrame()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowBitmapTest.java | 39 scaledBitmap.getPixels(new int[20000], 0, 0, 0, 0, 100, 200); in shouldCreateScaledBitmap() 267 bmp.getPixels(pixels, 0, bmp.getWidth(), 0, 0, bmp.getWidth(), bmp.getHeight()); in testGetPixels() 327 bitmap.getPixels(pixels, 0, width, 0, 0, width, height); in shouldGetPixelsFromAnyNonNullableCreatedBitmap() 330 bitmap.getPixels(pixels, 0, width, 0, 0, width, height); in shouldGetPixelsFromAnyNonNullableCreatedBitmap() 333 bitmap.getPixels(pixels, 0, width, 0, 0, width, height); in shouldGetPixelsFromAnyNonNullableCreatedBitmap() 336 bitmap.getPixels(pixels, 0, width, 0, 0, width, height); in shouldGetPixelsFromAnyNonNullableCreatedBitmap() 339 bitmap.getPixels(pixels, 0, width, 0, 0, width, height); in shouldGetPixelsFromAnyNonNullableCreatedBitmap() 342 bitmap.getPixels(pixels, 0, width, 0, 0, width, height); in shouldGetPixelsFromAnyNonNullableCreatedBitmap() 366 bitmap.getPixels(pixels, offset, subWidth, x, y, subWidth, subHeight); in shouldGetPixelsFromSubsetOfBitmap() 432 bitmapOriginal.getPixels(pixelsOriginal, 0, originalWidth, 0, 0, originalWidth, originalHeight); in shouldWriteToParcelAndReconstruct() [all …]
|
/external/skqp/include/codec/ |
D | SkCodec.h | 336 Result getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, const Options*); 341 Result getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes) { in getPixels() function 342 return this->getPixels(info, pixels, rowBytes, nullptr); in getPixels() 345 Result getPixels(const SkPixmap& pm, const Options* opts = nullptr) { 346 return this->getPixels(pm.info(), pm.writable_addr(), pm.rowBytes(), opts);
|
/external/skia/include/codec/ |
D | SkCodec.h | 336 Result getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, const Options*); 341 Result getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes) { in getPixels() function 342 return this->getPixels(info, pixels, rowBytes, nullptr); in getPixels() 345 Result getPixels(const SkPixmap& pm, const Options* opts = nullptr) { 346 return this->getPixels(pm.info(), pm.writable_addr(), pm.rowBytes(), opts);
|
/external/skqp/src/core/ |
D | SkBitmap.cpp | 242 if (nullptr == this->getPixels()) { in tryAllocPixels() 264 if (nullptr == this->getPixels()) { in tryAllocPixelsFlags() 382 char* base = (char*)this->getPixels(); in getAddr() 563 memcpy(tmpBitmap.getPixels(), dstM.fImage, dstM.computeImageSize()); in extractAlpha() 584 SkASSERT(this->getPixels()); in validate() 586 SkASSERT(!this->getPixels()); in validate() 589 if (this->getPixels()) { in validate() 605 if (this->getPixels()) { in peekPixels()
|
/external/skia/src/core/ |
D | SkBitmap.cpp | 274 if (nullptr == this->getPixels()) { in tryAllocPixels() 296 if (nullptr == this->getPixels()) { in tryAllocPixelsFlags() 414 char* base = (char*)this->getPixels(); in getAddr() 595 memcpy(tmpBitmap.getPixels(), dstM.fImage, dstM.computeImageSize()); in extractAlpha() 616 SkASSERT(this->getPixels()); in validate() 618 SkASSERT(!this->getPixels()); in validate() 621 if (this->getPixels()) { in validate() 637 if (this->getPixels()) { in peekPixels()
|