• Home
  • Raw
  • Download

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());
1050 SkImageInfo imageInfo;
1053 (void) canvas->accessTopLayerPixels(&imageInfo, &rowBytes, &origin);
1056 string.printf("k%s_SkAlphaType", alphaType[(int) imageInfo.alphaType()]);
1080 SkImageInfo imageInfo = SkImageInfo::Make(5, 5, kGray_8_SkColorType, kOpaque_SkAlphaType);
1081 SkPixmap pixmap(imageInfo, storage[0], sizeof(storage) / 5);
1307 SkImageInfo imageInfo = source.info();
1308 canvas->translate(0, imageInfo.height());
1310 canvas->drawLine(0, 10, imageInfo.width(), 10, paint);
1311 canvas->drawString("width", imageInfo.width() / 2 - 15, 25, paint);
1330 SkImageInfo imageInfo = source.info();
1332 canvas->drawLine(imageInfo.width() + 10, 0, imageInfo.width() + 10, imageInfo.height(), paint);
1333 canvas->drawString("height", imageInfo.width() + 15, imageInfo.height() / 2, paint);
1446 SkImageInfo imageInfo= SkImageInfo::MakeA8(width, height);
1448 imageInfo.isEmpty() ? "true" : "false");
1474 SkImageInfo imageInfo = SkImageInfo::Make(width, height, kN32_SkColorType, kPremul_SkAlphaType);
1475 bitmap.setInfo(imageInfo);
1479 SkDebugf("isOpaque: %s\n", imageInfo.isOpaque() ? "true" : "false");
1481 SkDebugf("isOpaque: %s\n", imageInfo.isOpaque() ? "true" : "false");
1482 imageInfo = imageInfo.makeAlphaType(kOpaque_SkAlphaType);
1483 bitmap.setInfo(imageInfo);
1507 SkImageInfo imageInfo = SkImageInfo::Make(width, height, kN32_SkColorType, kPremul_SkAlphaType);
1508 SkISize dimensions = imageInfo.dimensions();
1509 SkIRect bounds = imageInfo.bounds();
1532 SkImageInfo imageInfo = source.info();
1533 SkIRect bounds = imageInfo.bounds();
1578 drawLabel("canvas", canvas->imageInfo().gammaCloseToSRGB());
1603 SkImageInfo canvasImageInfo = canvas->imageInfo();
1714 drawLabel("canvas", canvas->imageInfo().gammaCloseToSRGB());
1819 SkImageInfo imageInfo =
1821 uint64_t minRowBytes = imageInfo.minRowBytes64();
1852 SkImageInfo imageInfo =
1854 size_t minRowBytes = imageInfo.minRowBytes();
1892 SkImageInfo imageInfo = SkImageInfo::MakeA8(8, 8);
1894 bitmap.installPixels(imageInfo, (void*) pixels, sizeof(pixels[0]));
1898 size_t offset = imageInfo.computeOffset(2, 3, sizeof(pixels[0]));
1900 offset = imageInfo.computeOffset(5, 3, sizeof(pixels[0]));
1902 bitmap.installPixels(imageInfo, (void*) pixels, sizeof(pixels[0]));