Home
last modified time | relevance | path

Searched refs:allocPixels (Results 1 – 25 of 198) sorted by relevance

12345678

/external/skia/tests/
DNdkDecodeTest.cpp61 bm.allocPixels(info); in DEF_TEST()
66 bm.allocPixels(unpremulInfo); in DEF_TEST()
96 bm.allocPixels(SkImageInfo::Make(10, 10, kRGBA_F16_SkColorType, kOpaque_SkAlphaType, cs)); in DEF_TEST()
154 bm.allocPixels(info); in DEF_TEST()
195 bm.allocPixels(info); in DEF_TEST()
228 orig.allocPixels(noColorCorrection); in DEF_TEST()
232 corrected.allocPixels(noColorCorrection.makeColorSpace(rec.fCorrectedColorSpace)); in DEF_TEST()
238 reuse.allocPixels(noColorCorrection); in DEF_TEST()
270 bm.allocPixels(info); in DEF_TEST()
299 bm.allocPixels(info); in DEF_TEST()
[all …]
DBitmapTest.cpp47 bm.allocPixels(info); in test_peekpixels()
77 bm.allocPixels(); in test_allocpixels()
80 bm.allocPixels(info); in test_allocpixels()
85 bm.allocPixels(); in test_allocpixels()
88 bm.allocPixels(info, explicitRowBytes); in test_allocpixels()
95 bm.allocPixels(info, 0); in test_allocpixels()
165 bm.allocPixels(); in DEF_TEST()
246 bm.allocPixels(SkImageInfo::Make(1, 1, ct, kPremul_SkAlphaType)); in test_erasecolor_premul()
271 bm.allocPixels(SkImageInfo::Make(13, 17, ct, at)); in DEF_TEST()
287 bm.allocPixels(SkImageInfo::Make(1, 1, kRGBA_F16_SkColorType, kPremul_SkAlphaType)); in DEF_TEST()
[all …]
DCodecPartialTest.cpp43 dst->allocPixels(info); in create_truth()
86 incremental.allocPixels(info); in test_partial()
246 frame.allocPixels(info); in DEF_TEST()
295 frame.allocPixels(info); in DEF_TEST()
346 incremental.allocPixels(info); in test_interleaved()
359 full.allocPixels(info); in test_interleaved()
409 truth.allocPixels(info); in DEF_TEST()
421 bm.allocPixels(info); in DEF_TEST()
435 bm.allocPixels(info); in DEF_TEST()
470 bm.allocPixels(info); in DEF_TEST()
DPremulAlphaRoundTripTest.cpp85 readBmp1.allocPixels(info); in test_premul_alpha_roundtrip()
87 readBmp2.allocPixels(info); in test_premul_alpha_roundtrip()
194 SkBitmap src; src.allocPixels(upmInfo); in DEF_TEST()
207 SkBitmap surf; surf.allocPixels(pmInfo); in DEF_TEST()
210 SkBitmap read1; read1.allocPixels(upmInfo); in DEF_TEST()
213 SkBitmap surf2; surf2.allocPixels(pmInfo); in DEF_TEST()
216 SkBitmap read2; read2.allocPixels(upmInfo); in DEF_TEST()
DPinnedImageTest.cpp44 bm.allocPixels(ii); in surface_is_expected_color()
64 bm.allocPixels(ii); in basic_test()
116 bm.allocPixels(ii); in cleanup_test()
173 bm.allocPixels(ii); in DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS()
204 bm.allocPixels(ii); in DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS()
DNdkEncodeTest.cpp76 bm.allocPixels(SkImageInfo::Make(10, 10, ct, kOpaque_SkAlphaType)); in DEF_TEST()
98 bm2.allocPixels(bm.info()); in DEF_TEST()
127 bm.allocPixels(SkImageInfo::Make(10, 10, ct, kOpaque_SkAlphaType)); in DEF_TEST()
148 bm.allocPixels(SkImageInfo::Make(10, 10, ct, kOpaque_SkAlphaType)); in DEF_TEST()
219 bm.allocPixels(info); in DEF_TEST()
227 bm.allocPixels(info); in DEF_TEST()
310 bm.allocPixels(SkImageInfo::Make(10, 10, ct, kOpaque_SkAlphaType, colorSpace.cs)); in DEF_TEST()
374 bm.allocPixels(SkImageInfo::Make(10, 10, ct, kOpaque_SkAlphaType, unsupported)); in DEF_TEST()
DCodecTest.cpp111 bm.allocPixels(info); in test_info()
136 bm.allocPixels(info); in test_incremental_decode()
150 bm.allocPixels(info); in test_in_stripes()
194 bm.allocPixels(info); in test_codec()
210 bm565.allocPixels(info565); in test_codec()
238 grayBm.allocPixels(grayInfo); in test_codec()
411 bm.allocPixels(subsetInfo); in check_subset_decode()
466 bm.allocPixels(info); in check_codec_image_generator()
894 bm.allocPixels(); in DEF_TEST()
1006 decodedBm.allocPixels(); in DEF_TEST()
[all …]
DEncodeTest.cpp186 originalBitmapRgba8.allocPixels(dstInfo); in test_png_encoding_roundtrip_from_specific_source_format()
207 originalBitmap.allocPixels(dstInfo); in test_png_encoding_roundtrip_from_specific_source_format()
289 roundtripBitmap.allocPixels(dstInfo); in test_png_encoding_roundtrip_from_specific_source_format()
372 bm.allocPixels(info); in DEF_TEST()
667 bitmaps[i].allocPixels(info); in DEF_TEST()
688 bitmap.allocPixels(info); in DEF_TEST()
708 bm1.allocPixels(SkImageInfo::MakeN32Premul(8, 8)); in DEF_TEST()
715 bm2.allocPixels(SkImageInfo::MakeN32Premul(16, 16)); in DEF_TEST()
739 bm.allocPixels(SkImageInfo::Make(10, 10, ct, kPremul_SkAlphaType)); in DEF_TEST()
805 originalBitmap.allocPixels(dstInfo); in DEF_TEST()
[all …]
DEncodedInfoTest.cpp27 bm.allocPixels(codec->getInfo().makeColorType(kAlpha_8_SkColorType).makeColorSpace(nullptr)); in DEF_TEST()
41 bm2.allocPixels(codec->getInfo().makeColorSpace(nullptr)); in DEF_TEST()
DWebpTest.cpp32 premulBm.allocPixels(premulInfo); in DEF_TEST()
33 changeBm.allocPixels(premulInfo); // The SkBitmap's SkAlphaType is unrelated to the bug. in DEF_TEST()
DPngGainmapTest.cpp106 baseBitmap.allocPixels(baseCodec->getInfo()); in decode_all()
122 gainmapBitmap.allocPixels(gainmapCodec->getInfo()); in decode_all()
218 sourceBase.allocPixels( in DEF_TEST()
222 sourceGainmap.allocPixels(SkImageInfo::Make(4, 4, colorType, kOpaque_SkAlphaType)); in DEF_TEST()
DAnimatedImageTest.cpp180 bm.allocPixels(SkImageInfo::MakeN32Premul(info.width(), info.height())); in DEF_TEST()
258 bm.allocPixels(imageInfo); in DEF_TEST()
278 test.allocPixels(imageInfo); in DEF_TEST()
336 bm.allocPixels(info); in DEF_TEST()
370 test.allocPixels(imageInfo); in DEF_TEST()
DJpegGainmapTest.cpp465 bm.allocPixels(codec->getInfo()); in DEF_TEST()
495 baseBitmap.allocPixels(baseCodec->getInfo()); in decode_all()
511 bm.allocPixels(gainmapCodec->getInfo()); in decode_all()
512 gainmapBitmap.allocPixels(gainmapCodec->getInfo()); in decode_all()
652 baseBitmap.allocPixels(baseCodec->getInfo()); in DEF_TEST()
677 baseBitmap.allocPixels(SkImageInfo::MakeN32Premul(16, 16)); in DEF_TEST()
680 gainmapBitmaps[0].allocPixels(SkImageInfo::MakeN32Premul(16, 16)); in DEF_TEST()
681 gainmapBitmaps[1].allocPixels(SkImageInfo::MakeN32Premul(8, 8)); in DEF_TEST()
682 gainmapBitmaps[2].allocPixels( in DEF_TEST()
684 gainmapBitmaps[3].allocPixels( in DEF_TEST()
[all …]
DGainmapShaderTest.cpp42 bm.allocPixels(bmInfo); in make_1x1_image()
74 canvasBitmap.allocPixels(canvasInfo); in draw_1x1_gainmap()
131 canvasBitmap.allocPixels(canvasInfo); in DEF_TEST()
221 canvasBitmap.allocPixels(canvasInfo); in DEF_TEST()
/external/skia/gm/
Dskbug_9819.cpp20 rgba.allocPixels(info.makeColorType(kRGBA_8888_SkColorType));
21 bgra.allocPixels(info.makeColorType(kBGRA_8888_SkColorType));
35 bm.allocPixels(SkImageInfo::Make(1,1, in __anonaf83e9e80102()
Dalpha_image.cpp25 bm.allocPixels(SkImageInfo::MakeA8(w, h)); in make_alpha_image()
70 bm.allocPixels(SkImageInfo::MakeA8(64, 64));
97 maskBitmap.allocPixels(SkImageInfo::MakeA8(128, 128));
Dunpremul.cpp25 bm.allocPixels(SkImageInfo::Make(1,1, in __anon132a2f2a0102()
70 bm.allocPixels(SkImageInfo::Make(100,100, kRGBA_8888_SkColorType, kUnpremul_SkAlphaType));
Dbitmapimage.cpp53 legacyBMCanvas.allocPixels(linearInfo); in onDraw()
64 srgbBMCanvas.allocPixels(srgbInfo); in onDraw()
Dwacky_yuv_formats.cpp342 bm.allocPixels(ii); in make_bitmap()
398 orientedBM.allocPixels(ii); in extract_planes()
412 planes->fYFull.allocPixels( in extract_planes()
414 planes->fUFull.allocPixels( in extract_planes()
416 planes->fVFull.allocPixels( in extract_planes()
418 planes->fAFull.allocPixels(SkImageInfo::MakeA8(ii.dimensions())); in extract_planes()
419 planes->fUQuarter.allocPixels(SkImageInfo::Make(ii.width()/2, ii.height()/2, in extract_planes()
421 planes->fVQuarter.allocPixels(SkImageInfo::Make(ii.width()/2, ii.height()/2, in extract_planes()
424 planes->fFull.allocPixels( in extract_planes()
426 planes->fQuarter.allocPixels(SkImageInfo::Make(ii.width()/2, ii.height()/2, in extract_planes()
[all …]
/external/skia/bench/
DReadPixBench.cpp41 bitmap.allocPixels(info); in onDraw()
74 fSrc.allocPixels(info); in onDelayedSetup()
76 fDst.allocPixels(info.makeDimensions(info.dimensions())); in onDelayedSetup()
114 fBM.allocPixels(SkImageInfo::Make(1024, 1024, fCT, kPremul_SkAlphaType)); in onDelayedSetup()
DPremulAndUnpremulAlphaOpsBench.cpp34 fBmp1.allocPixels(info); // used in writePixels in onDelayedSetup()
43 fBmp2.allocPixels(info); // used in readPixels() in onDelayedSetup()
/external/skia/docs/examples/
DUnpremulGPU.cpp9 premulBitmap.allocPixels(premulInfo); in draw()
19 unpremulBitmap.allocPixels(unpremulInfo); in draw()
DImageInfo_MakeS32.cpp15 bitmap.allocPixels(SkImageInfo::MakeN32(width, height, kPremul_SkAlphaType)); in draw()
19 bitmap.allocPixels(SkImageInfo::MakeS32(width, height, kPremul_SkAlphaType)); in draw()
/external/skia/include/core/
DSkBitmap.h511 void allocPixels(const SkImageInfo& info, size_t rowBytes);
547 void allocPixels(const SkImageInfo& info);
687 void allocPixels();
711 void allocPixels(Allocator* allocator);
/external/skia/src/core/
DSkBitmap.cpp235 this->allocPixels(info); in allocN32Pixels()
238 void SkBitmap::allocPixels() { in allocPixels() function in SkBitmap
239 this->allocPixels((Allocator*)nullptr); in allocPixels()
242 void SkBitmap::allocPixels(Allocator* allocator) { in allocPixels() function in SkBitmap
258 void SkBitmap::allocPixels(const SkImageInfo& info, size_t rowBytes) { in allocPixels() function in SkBitmap
265 void SkBitmap::allocPixels(const SkImageInfo& info) { in allocPixels() function in SkBitmap
266 this->allocPixels(info, info.minRowBytes()); in allocPixels()

12345678