Lines Matching refs:imageInfo
111 SkImageInfo imageInfo = SkImageInfo::Make(1, 1, kN32_SkColorType, kOpaque_SkAlphaType);
112 if (bitmap.installPixels(imageInfo, (void*) &color, imageInfo.minRowBytes())) {
151 SkImageInfo imageInfo = SkImageInfo::Make(1, 1, kN32_SkColorType, kPremul_SkAlphaType);
152 if (bitmap.installPixels(imageInfo, (void*) &color, imageInfo.minRowBytes())) {
184 SkImageInfo imageInfo = SkImageInfo::Make(1, 1, kN32_SkColorType, kUnpremul_SkAlphaType);
185 if (bitmap.installPixels(imageInfo, (void*) &color, imageInfo.minRowBytes())) {
353 SkImageInfo imageInfo = SkImageInfo::Make(2, 2, kAlpha_8_SkColorType, kOpaque_SkAlphaType);
354 bitmap.allocPixels(imageInfo);
361 SkPixmap alphaPixmap(imageInfo, &alpha8, imageInfo.minRowBytes());
385 SkImageInfo imageInfo = SkImageInfo::Make(2, 2, kRGB_565_SkColorType, kOpaque_SkAlphaType);
386 bitmap.allocPixels(imageInfo);
397 SkPixmap redPixmap(imageInfo, &red565, imageInfo.minRowBytes());
401 SkPixmap bluePixmap(imageInfo, &blue565, imageInfo.minRowBytes());
436 … SkImageInfo imageInfo = SkImageInfo::Make(2, 2, kARGB_4444_SkColorType, kPremul_SkAlphaType);
437 bitmap.allocPixels(imageInfo);
448 SkPixmap redPixmap(imageInfo, &red4444, imageInfo.minRowBytes());
452 SkPixmap bluePixmap(imageInfo, &blue4444, imageInfo.minRowBytes());
487 … SkImageInfo imageInfo = SkImageInfo::Make(2, 2, kRGBA_8888_SkColorType, kPremul_SkAlphaType);
488 bitmap.allocPixels(imageInfo);
499 SkPixmap redPixmap(imageInfo, &red8888, imageInfo.minRowBytes());
503 SkPixmap bluePixmap(imageInfo, &blue8888, imageInfo.minRowBytes());
527 SkImageInfo imageInfo = SkImageInfo::Make(2, 2, kRGB_888x_SkColorType, kOpaque_SkAlphaType);
528 bitmap.allocPixels(imageInfo);
539 if (bitmap.installPixels(imageInfo, (void*) red888, imageInfo.minRowBytes())) {
542 if (bitmap.installPixels(imageInfo, (void*) blue888, imageInfo.minRowBytes())) {
576 … SkImageInfo imageInfo = SkImageInfo::Make(2, 2, kBGRA_8888_SkColorType, kPremul_SkAlphaType);
577 bitmap.allocPixels(imageInfo);
588 SkPixmap redPixmap(imageInfo, &red8888, imageInfo.minRowBytes());
592 SkPixmap bluePixmap(imageInfo, &blue8888, imageInfo.minRowBytes());
631 … SkImageInfo imageInfo = SkImageInfo::Make(2, 2, kRGBA_1010102_SkColorType, kOpaque_SkAlphaType);
632 bitmap.allocPixels(imageInfo);
647 if (bitmap.installPixels(imageInfo, (void*) redBits, imageInfo.minRowBytes())) {
650 SkPixmap bluePixmap(imageInfo, &blueBits, imageInfo.minRowBytes());
651 if (bitmap.installPixels(imageInfo, (void*) blueBits, imageInfo.minRowBytes())) {
677 … SkImageInfo imageInfo = SkImageInfo::Make(2, 2, kRGB_101010x_SkColorType, kOpaque_SkAlphaType);
678 bitmap.allocPixels(imageInfo);
689 if (bitmap.installPixels(imageInfo, (void*) redBits, imageInfo.minRowBytes())) {
692 SkPixmap bluePixmap(imageInfo, &blueBits, imageInfo.minRowBytes());
693 if (bitmap.installPixels(imageInfo, (void*) blueBits, imageInfo.minRowBytes())) {
712 SkImageInfo imageInfo = SkImageInfo::Make(2, 2, kGray_8_SkColorType, kOpaque_SkAlphaType);
713 bitmap.allocPixels(imageInfo);
718 SkPixmap grayPixmap(imageInfo, &gray8, imageInfo.minRowBytes());
783 SkImageInfo imageInfo = SkImageInfo::Make(2, 2, kRGBA_F16_SkColorType, kPremul_SkAlphaType);
784 bitmap.allocPixels(imageInfo);
800 SkPixmap redPixmap(imageInfo, red_f16, imageInfo.minRowBytes());
804 SkPixmap bluePixmap(imageInfo, blue_f16, imageInfo.minRowBytes());
844 SkImageInfo imageInfo = SkImageInfo::Make(2, 2, kRGBA_F32_SkColorType, kPremul_SkAlphaType);
845 bitmap.allocPixels(imageInfo);
858 SkPixmap redPixmap(imageInfo, red_f32, imageInfo.minRowBytes());
862 SkPixmap bluePixmap(imageInfo, blue_f32, imageInfo.minRowBytes());
1044 SkImageInfo imageInfo;
1047 (void) canvas->accessTopLayerPixels(&imageInfo, &rowBytes, &origin);
1050 string.printf("k%s_SkAlphaType", alphaType[(int) imageInfo.alphaType()]);
1074 SkImageInfo imageInfo = SkImageInfo::Make(5, 5, kGray_8_SkColorType, kOpaque_SkAlphaType);
1075 SkPixmap pixmap(imageInfo, storage[0], sizeof(storage) / 5);
1299 SkImageInfo imageInfo = source.info();
1300 canvas->translate(0, imageInfo.height());
1302 canvas->drawLine(0, 10, imageInfo.width(), 10, paint);
1303 canvas->drawString("width", imageInfo.width() / 2 - 15, 25, paint);
1322 SkImageInfo imageInfo = source.info();
1324 canvas->drawLine(imageInfo.width() + 10, 0, imageInfo.width() + 10, imageInfo.height(), paint);
1325 canvas->drawString("height", imageInfo.width() + 15, imageInfo.height() / 2, paint);
1438 SkImageInfo imageInfo= SkImageInfo::MakeA8(width, height);
1440 imageInfo.isEmpty() ? "true" : "false");
1466 SkImageInfo imageInfo = SkImageInfo::Make(width, height, kN32_SkColorType, kPremul_SkAlphaType);
1467 bitmap.setInfo(imageInfo);
1471 SkDebugf("isOpaque: %s\n", imageInfo.isOpaque() ? "true" : "false");
1473 SkDebugf("isOpaque: %s\n", imageInfo.isOpaque() ? "true" : "false");
1474 imageInfo = imageInfo.makeAlphaType(kOpaque_SkAlphaType);
1475 bitmap.setInfo(imageInfo);
1499 SkImageInfo imageInfo = SkImageInfo::Make(width, height, kN32_SkColorType, kPremul_SkAlphaType);
1500 SkISize dimensions = imageInfo.dimensions();
1501 SkIRect bounds = imageInfo.bounds();
1524 SkImageInfo imageInfo = source.info();
1525 SkIRect bounds = imageInfo.bounds();
1570 drawLabel("canvas", canvas->imageInfo().gammaCloseToSRGB());
1595 SkImageInfo canvasImageInfo = canvas->imageInfo();
1706 drawLabel("canvas", canvas->imageInfo().gammaCloseToSRGB());
1811 SkImageInfo imageInfo =
1813 uint64_t minRowBytes = imageInfo.minRowBytes64();
1844 SkImageInfo imageInfo =
1846 size_t minRowBytes = imageInfo.minRowBytes();
1884 SkImageInfo imageInfo = SkImageInfo::MakeA8(8, 8);
1886 bitmap.installPixels(imageInfo, (void*) pixels, sizeof(pixels[0]));
1890 size_t offset = imageInfo.computeOffset(2, 3, sizeof(pixels[0]));
1892 offset = imageInfo.computeOffset(5, 3, sizeof(pixels[0]));
1894 bitmap.installPixels(imageInfo, (void*) pixels, sizeof(pixels[0]));