Home
last modified time | relevance | path

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

1234567891011

/external/skqp/tests/
DCodecPartialTest.cpp35 return SkCodec::kSuccess == codec->getPixels(info, dst->getPixels(), dst->rowBytes()); in create_truth()
86 incremental.getPixels(), incremental.rowBytes()); in test_partial()
214 const SkCodec::Result result = fullCodec->getPixels(info, frame.getPixels(), in DEF_TEST()
264 frame.getPixels(), frame.rowBytes(), &opts); in DEF_TEST()
306 incremental.getPixels(), incremental.rowBytes()); in test_interleaved()
317 result = partialCodec->getPixels(info, full.getPixels(), full.rowBytes()); in test_interleaved()
368 auto result = codec->getPixels(info, truth.getPixels(), truth.rowBytes()); in DEF_TEST()
377 result = codec->getPixels(info, bm.getPixels(), bm.rowBytes()); in DEF_TEST()
390 result = codec->startIncrementalDecode(info, bm.getPixels(), bm.rowBytes()); in DEF_TEST()
394 result = codec->startIncrementalDecode(info, bm.getPixels(), bm.rowBytes()); in DEF_TEST()
[all …]
DCodecTest.cpp45 SkASSERT(bm.getPixels()); in md5()
79 SkCodec::Result result = codec->getPixels(info, bm.getPixels(), bm.rowBytes()); in test_info()
104 REPORTER_ASSERT(r, SkCodec::kSuccess == codec->startIncrementalDecode(info, bm.getPixels(), in test_incremental_decode()
162 SkCodec::Result result = codec->getPixels(info, bm.getPixels(), bm.rowBytes()); in test_codec()
181 REPORTER_ASSERT(r, expectedResult == codec->getPixels(info565, in test_codec()
182 bm565.getPixels(), bm565.rowBytes())); in test_codec()
204 REPORTER_ASSERT(r, expectedResult == codec->getPixels(grayInfo, in test_codec()
205 grayBm.getPixels(), grayBm.rowBytes())); in test_codec()
336 REPORTER_ASSERT(r, codec->getPixels(bm.info(), bm.getPixels(), bm.rowBytes()) in check()
386 const auto result = codec->getPixels(bm.info(), bm.getPixels(), bm.rowBytes(), &opts); in check()
[all …]
DRecordingXfermodeTest.cpp160 0 == memcmp(goldenBM.getPixels(), pictureBM.getPixels(), pixelsSize)); in DEF_TEST()
162 if (memcmp(goldenBM.getPixels(), pictureBM.getPixels(), pixelsSize)) { in DEF_TEST()
DAndroidCodecTest.cpp166 REPORTER_ASSERT(r, gen->getPixels(info, fromGenerator.getPixels(), in DEF_TEST()
171 auto result = androidCodec->getPixels(info, fromAndroidCodec.getPixels(), in DEF_TEST()
DDeferredDisplayListTest.cpp124 s->readPixels(imageInfo, bitmap.getPixels(), bitmap.rowBytes(), 0, 0); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
174 s->readPixels(imageInfo, bitmap.getPixels(), bitmap.rowBytes(), 0, 0); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
178 s->readPixels(imageInfo, bitmap.getPixels(), bitmap.rowBytes(), 0, 0); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
182 s->readPixels(imageInfo, bitmap.getPixels(), bitmap.rowBytes(), 0, 0); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
336 s->readPixels(imageInfo, bitmap.getPixels(), bitmap.rowBytes(), 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DBadIcoTest.cpp42 codec->getPixels(codec->getInfo(), bm.getPixels(), in DEF_TEST()
DCodecAnimTest.cpp46 const auto result = codec->getPixels(info, bm.getPixels(), bm.rowBytes(), in DEF_TEST()
316 const auto result = codec->getPixels(decodeInfo, bm->getPixels(), bm->rowBytes(), in DEF_TEST()
418 const auto result = codec->codec()->getPixels(info, bm.getPixels(), bm.rowBytes(), in DEF_TEST()
/external/skia/tests/
DCodecPartialTest.cpp35 return SkCodec::kSuccess == codec->getPixels(info, dst->getPixels(), dst->rowBytes()); in create_truth()
86 incremental.getPixels(), incremental.rowBytes()); in test_partial()
214 const SkCodec::Result result = fullCodec->getPixels(info, frame.getPixels(), in DEF_TEST()
264 frame.getPixels(), frame.rowBytes(), &opts); in DEF_TEST()
306 incremental.getPixels(), incremental.rowBytes()); in test_interleaved()
317 result = partialCodec->getPixels(info, full.getPixels(), full.rowBytes()); in test_interleaved()
368 auto result = codec->getPixels(info, truth.getPixels(), truth.rowBytes()); in DEF_TEST()
377 result = codec->getPixels(info, bm.getPixels(), bm.rowBytes()); in DEF_TEST()
390 result = codec->startIncrementalDecode(info, bm.getPixels(), bm.rowBytes()); in DEF_TEST()
394 result = codec->startIncrementalDecode(info, bm.getPixels(), bm.rowBytes()); in DEF_TEST()
[all …]
DCodecTest.cpp47 SkASSERT(bm.getPixels()); in md5()
81 SkCodec::Result result = codec->getPixels(info, bm.getPixels(), bm.rowBytes()); in test_info()
106 REPORTER_ASSERT(r, SkCodec::kSuccess == codec->startIncrementalDecode(info, bm.getPixels(), in test_incremental_decode()
164 SkCodec::Result result = codec->getPixels(info, bm.getPixels(), bm.rowBytes()); in test_codec()
183 REPORTER_ASSERT(r, expectedResult == codec->getPixels(info565, in test_codec()
184 bm565.getPixels(), bm565.rowBytes())); in test_codec()
206 REPORTER_ASSERT(r, expectedResult == codec->getPixels(grayInfo, in test_codec()
207 grayBm.getPixels(), grayBm.rowBytes())); in test_codec()
338 REPORTER_ASSERT(r, codec->getPixels(bm.info(), bm.getPixels(), bm.rowBytes()) in check()
388 const auto result = codec->getPixels(bm.info(), bm.getPixels(), bm.rowBytes(), &opts); in check()
[all …]
DRecordingXfermodeTest.cpp160 0 == memcmp(goldenBM.getPixels(), pictureBM.getPixels(), pixelsSize)); in DEF_TEST()
162 if (memcmp(goldenBM.getPixels(), pictureBM.getPixels(), pixelsSize)) { in DEF_TEST()
DAndroidCodecTest.cpp177 REPORTER_ASSERT(r, gen->getPixels(info, fromGenerator.getPixels(), in DEF_TEST()
182 auto result = androidCodec->getPixels(info, fromAndroidCodec.getPixels(), in DEF_TEST()
DBadIcoTest.cpp42 codec->getPixels(codec->getInfo(), bm.getPixels(), in DEF_TEST()
/external/skia/src/android/
DSkAnimatedImage.cpp35 if (!image->fDisplayFrame.fBitmap.getPixels()) { in Make()
54 if (!image->fDisplayFrame.fBitmap.getPixels()) { in Make()
101 if (fBitmap.getPixels()) { in init()
116 memcpy(tmp.getPixels(), fBitmap.getPixels(), fBitmap.computeByteSize()); in init()
130 memcpy(dst->fBitmap.getPixels(), fBitmap.getPixels(), fBitmap.computeByteSize()); in copyTo()
282 auto result = fCodec->codec()->getPixels(dst->info(), dst->getPixels(), dst->rowBytes(), in decodeNextFrame()
/external/skqp/src/android/
DSkAnimatedImage.cpp33 if (!image->fActiveFrame.fBitmap.getPixels()) { in Make()
52 if (!image->fActiveFrame.fBitmap.getPixels()) { in Make()
99 if (dst->fBitmap.getPixels()) { in copyTo()
105 memcpy(dst->fBitmap.getPixels(), fBitmap.getPixels(), fBitmap.computeByteSize()); in copyTo()
252 if (dst->getPixels()) { in decodeNextFrame()
261 auto result = fCodec->codec()->getPixels(dst->info(), dst->getPixels(), dst->rowBytes(), in decodeNextFrame()
/external/skqp/gm/
Dimagefromyuvtextures.cpp51 SkPMColor* rgbColors = static_cast<SkPMColor*>(rgbBmp.getPixels()); in onOnceBeforeDraw()
61 yPixels = static_cast<unsigned char*>(fYUVBmps[0].getPixels()); in onOnceBeforeDraw()
62 uvPixels[0] = static_cast<signed char*>(fYUVBmps[1].getPixels()); in onOnceBeforeDraw()
63 uvPixels[1] = static_cast<signed char*>(fYUVBmps[2].getPixels()); in onOnceBeforeDraw()
105 yuvTextures[i] = gpu->createTestingOnlyBackendTexture(fYUVBmps[i].getPixels(), in createYUVTextures()
DanimatedGif.cpp50 if (!bm.getPixels()) { in drawFrame()
62 if (requiredBitmap.getPixels() && in drawFrame()
68 if (SkCodec::kSuccess != fCodec->getPixels(info, bm.getPixels(), in drawFrame()
/external/skia/gm/
Dimagefromyuvtextures.cpp51 SkPMColor* rgbColors = static_cast<SkPMColor*>(rgbBmp.getPixels()); in onOnceBeforeDraw()
61 yPixels = static_cast<unsigned char*>(fYUVBmps[0].getPixels()); in onOnceBeforeDraw()
62 uvPixels[0] = static_cast<signed char*>(fYUVBmps[1].getPixels()); in onOnceBeforeDraw()
63 uvPixels[1] = static_cast<signed char*>(fYUVBmps[2].getPixels()); in onOnceBeforeDraw()
105 yuvTextures[i] = gpu->createTestingOnlyBackendTexture(fYUVBmps[i].getPixels(), in createYUVTextures()
DanimatedGif.cpp50 if (!bm.getPixels()) { in drawFrame()
62 if (requiredBitmap.getPixels() && in drawFrame()
68 if (SkCodec::kSuccess != fCodec->getPixels(info, bm.getPixels(), in drawFrame()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowBitmapTest.java37 scaledBitmap.getPixels(new int[20000], 0, 0, 0, 0, 100, 200); in shouldCreateScaledBitmap()
247 bmp.getPixels(pixels, 0, bmp.getWidth(), 0, 0, bmp.getWidth(), bmp.getHeight()); in testGetPixels()
307 bitmap.getPixels(pixels, 0, width, 0, 0, width, height); in shouldGetPixelsFromAnyNonNullableCreatedBitmap()
310 bitmap.getPixels(pixels, 0, width, 0, 0, width, height); in shouldGetPixelsFromAnyNonNullableCreatedBitmap()
313 bitmap.getPixels(pixels, 0, width, 0, 0, width, height); in shouldGetPixelsFromAnyNonNullableCreatedBitmap()
316 bitmap.getPixels(pixels, 0, width, 0, 0, width, height); in shouldGetPixelsFromAnyNonNullableCreatedBitmap()
319 bitmap.getPixels(pixels, 0, width, 0, 0, width, height); in shouldGetPixelsFromAnyNonNullableCreatedBitmap()
322 bitmap.getPixels(pixels, 0, width, 0, 0, width, height); in shouldGetPixelsFromAnyNonNullableCreatedBitmap()
326 bitmap.getPixels(pixels, 0, width, 2, 2, 3, 3); in shouldGetPixelsFromAnyNonNullableCreatedBitmap()
383 bitmapOriginal.getPixels(pixelsOriginal, 0, originalWidth, 0, 0, originalWidth, originalHeight); in shouldWriteToParcelAndReconstruct()
[all …]
/external/skia/include/codec/
DSkCodec.h341 Result getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, const Options*);
346 Result getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes) { in getPixels() function
347 return this->getPixels(info, pixels, rowBytes, nullptr); in getPixels()
350 Result getPixels(const SkPixmap& pm, const Options* opts = nullptr) {
351 return this->getPixels(pm.info(), pm.writable_addr(), pm.rowBytes(), opts);
/external/skqp/include/codec/
DSkCodec.h341 Result getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, const Options*);
346 Result getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes) { in getPixels() function
347 return this->getPixels(info, pixels, rowBytes, nullptr); in getPixels()
350 Result getPixels(const SkPixmap& pm, const Options* opts = nullptr) {
351 return this->getPixels(pm.info(), pm.writable_addr(), pm.rowBytes(), opts);
/external/skia/src/core/
DSkBitmap.cpp240 if (nullptr == this->getPixels()) { in tryAllocPixels()
262 if (nullptr == this->getPixels()) { in tryAllocPixelsFlags()
380 char* base = (char*)this->getPixels(); in getAddr()
585 memcpy(tmpBitmap.getPixels(), dstM.fImage, dstM.computeImageSize()); in extractAlpha()
615 SkASSERT(this->getPixels()); in validate()
617 SkASSERT(!this->getPixels()); in validate()
620 if (this->getPixels()) { in validate()
665 if (this->getPixels()) { in peekPixels()
/external/skqp/src/core/
DSkBitmap.cpp240 if (nullptr == this->getPixels()) { in tryAllocPixels()
262 if (nullptr == this->getPixels()) { in tryAllocPixelsFlags()
380 char* base = (char*)this->getPixels(); in getAddr()
584 memcpy(tmpBitmap.getPixels(), dstM.fImage, dstM.computeImageSize()); in extractAlpha()
614 SkASSERT(this->getPixels()); in validate()
616 SkASSERT(!this->getPixels()); in validate()
619 if (this->getPixels()) { in validate()
664 if (this->getPixels()) { in peekPixels()
/external/skia/tools/mdbviz/
DModel.h44 void* getPixels() const { return fBM.getPixels(); } in getPixels() function
/external/skqp/tools/mdbviz/
DModel.h44 void* getPixels() const { return fBM.getPixels(); } in getPixels() function

1234567891011