Home
last modified time | relevance | path

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

12345

/external/skia/tests/
DCodecPartialTest.cpp34 return SkCodec::kSuccess == codec->getPixels(info, dst->getPixels(), dst->rowBytes()); in create_truth()
82 incremental.getPixels(), incremental.rowBytes()); in test_partial()
215 const SkCodec::Result result = fullCodec->getPixels(info, frame.getPixels(), in DEF_TEST()
266 frame.getPixels(), frame.rowBytes(), &opts); in DEF_TEST()
312 incremental.getPixels(), incremental.rowBytes()); in test_interleaved()
323 result = partialCodec->getPixels(info, full.getPixels(), full.rowBytes()); in test_interleaved()
374 auto result = codec->getPixels(info, truth.getPixels(), truth.rowBytes()); in DEF_TEST()
383 result = codec->getPixels(info, bm.getPixels(), bm.rowBytes()); in DEF_TEST()
396 result = codec->startIncrementalDecode(info, bm.getPixels(), bm.rowBytes()); in DEF_TEST()
400 result = codec->startIncrementalDecode(info, bm.getPixels(), bm.rowBytes()); in DEF_TEST()
[all …]
DCodecTest.cpp42 SkASSERT(bm.getPixels()); in md5()
77 SkCodec::Result result = codec->getPixels(info, bm.getPixels(), bm.rowBytes()); in test_info()
103 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()
182 REPORTER_ASSERT(r, expectedResult == codec->getPixels(info565, in test_codec()
183 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()
339 REPORTER_ASSERT(r, codec->getPixels(bm.info(), bm.getPixels(), bm.rowBytes()) in check()
390 const SkCodec::Result result = codec->getPixels(bm.info(), bm.getPixels(), bm.rowBytes(), in check()
[all …]
DRecordingXfermodeTest.cpp159 0 == memcmp(goldenBM.getPixels(), pictureBM.getPixels(), pixelsSize)); in DEF_TEST()
161 if (memcmp(goldenBM.getPixels(), pictureBM.getPixels(), pixelsSize)) { in DEF_TEST()
DBadIcoTest.cpp42 codec->getPixels(codec->getInfo(), bm.getPixels(), in DEF_TEST()
DCodecPriv.h33 const SkCodec::Result result = codec->getPixels(codec->getInfo(), bm->getPixels(), in decode_memory()
DCodecExactReadTest.cpp80 auto result = codec->getPixels(bm.info(), bm.getPixels(), bm.rowBytes()); in DEF_TEST()
DCanvasStateTest.cpp146 REPORTER_ASSERT(reporter, !memcmp(bitmaps[0].getPixels(), in DEF_TEST()
147 bitmaps[1].getPixels(), in DEF_TEST()
258 REPORTER_ASSERT(reporter, !memcmp(bitmaps[0].getPixels(), in DEF_TEST()
259 bitmaps[1].getPixels(), in DEF_TEST()
DSpecialImageTest.cpp103 bool result = canvas->readPixels(bm.info(), bm.getPixels(), bm.rowBytes(), 0, 0); in test_image()
239 bm.getPixels(), bm.rowBytes())); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
272 bm.getPixels(), bm.rowBytes())); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
311 bm.getPixels(), 0)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DCodecAnimTest.cpp141 const SkCodec::Result result = codec->getPixels(info, bm->getPixels(), bm->rowBytes(), in DEF_TEST()
DImageNewShaderTest.cpp24 REPORTER_ASSERT(reporter, 0 == memcmp(bm1.getPixels(), bm2.getPixels(), bm1.getSize())); in test_bitmap_equality()
/external/skia/src/core/
DSkImageGenerator.cpp17 bool SkImageGenerator::getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, in getPixels() function in SkImageGenerator
48 bool SkImageGenerator::getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes) { in getPixels() function in SkImageGenerator
53 return this->getPixels(info, pixels, rowBytes, nullptr, nullptr); in getPixels()
156 if (!bitmap->getPixels()) { in tryGenerateBitmap()
161 if (!this->getPixels(bitmap->info(), bitmap->getPixels(), bitmap->rowBytes(), in tryGenerateBitmap()
DSkBitmapController.cpp141 SkASSERT(fResultBitmap.getPixels()); in processHQRequest()
150 SkASSERT(fResultBitmap.getPixels()); in processHQRequest()
226 SkASSERT(fResultBitmap.getPixels()); in SkDefaultBitmapControllerState()
236 fPixmap.reset(fResultBitmap.info(), fResultBitmap.getPixels(), fResultBitmap.rowBytes(), in SkDefaultBitmapControllerState()
/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()
DanimatedGif.cpp49 if (!bm.getPixels()) { in drawFrame()
61 if (requiredBitmap.getPixels() && requiredBitmap.copyTo(&bm)) { in drawFrame()
66 if (SkCodec::kSuccess != fCodec->getPixels(info, bm.getPixels(), in drawFrame()
Dxfermodes2.cpp96 memcpy(bg.getPixels(), kCheckData, sizeof(kCheckData)); in onOnceBeforeDraw()
105 SkPMColor* pixels = reinterpret_cast<SkPMColor*>(srcBmp.getPixels()); in onOnceBeforeDraw()
118 pixels = reinterpret_cast<SkPMColor*>(dstBmp.getPixels()); in onOnceBeforeDraw()
Dbitmapimage.cpp41 codec->getPixels(codec->getInfo(), bitmap.getPixels(), bitmap.rowBytes()); in onDraw()
Dyuvtorgbeffect.cpp56 pixels[i] = (unsigned char*)fBmp[i].getPixels(); in onOnceBeforeDraw()
97 fBmp[i].getPixels(), fBmp[i].rowBytes()); in onDraw()
181 unsigned char* pixels = (unsigned char*)fBmp[0].getPixels(); in onOnceBeforeDraw()
229 fBmp[index].getPixels(), in onDraw()
Dencode-srgb.cpp109 codec->getPixels(dstInfo, bitmap->getPixels(), bitmap->rowBytes()); in make()
/external/skia/samplecode/
DDecodeFile.h35 return SkCodec::kSuccess == codec->getPixels(info, bitmap->getPixels(), bitmap->rowBytes());
/external/skia/bench/
DPremulAndUnpremulAlphaOpsBench.cpp50 canvas->writePixels(fBmp1.info(), fBmp1.getPixels(), fBmp1.rowBytes(), 0, 0); in onDraw()
52 canvas->readPixels(fBmp2.info(), fBmp2.getPixels(), fBmp2.rowBytes(), 0, 0); in onDraw()
DColorCodecBench.cpp43 codec->getPixels(fDstInfo, fDst.get(), fDstInfo.minRowBytes()); in decodeAndXform()
99 codec->getPixels(fSrcInfo, fSrc.get(), fSrcInfo.minRowBytes()); in onDelayedSetup()
/external/skia/tools/
DResources.cpp40 gen->getPixels(gen->getInfo().makeColorSpace(nullptr), dst->getPixels(), dst->rowBytes(), in GetResourceAsBitmap()
Dpicture_utils.cpp91 auto px = (const uint32_t*)bitmap.getPixels(); in encode_bitmap_for_png()
109 auto px = (const uint64_t*)bitmap.getPixels(); in encode_bitmap_for_png()
/external/skia/include/core/
DSkImageGenerator.h84 bool getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes,
91 bool getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes);
/external/skia/fuzz/
Dfuzz.cpp239 switch (codec->getPixels(decodeInfo, bitmap.getPixels(), bitmap.rowBytes(), &options, in fuzz_img()
351 void* pixels = bitmap.getPixels(); in fuzz_img()
375 const SkCodec::Result result = codec->getPixels(decodeInfo, pixels, rowBytes, in fuzz_img()
423 auto result = codec->startIncrementalDecode(decodeInfo, bitmap.getPixels(), in fuzz_img()

12345