Home
last modified time | relevance | path

Searched refs:imageInfo (Results 1 – 25 of 289) sorted by relevance

12345678910>>...12

/third_party/skia/third_party/externals/swiftshader/src/WSI/
DVkSwapchainKHR.cpp92 VkImageCreateInfo imageInfo = {}; in createImages() local
93 imageInfo.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO; in createImages()
97 imageInfo.flags |= VK_IMAGE_CREATE_SPLIT_INSTANCE_BIND_REGIONS_BIT; in createImages()
102 imageInfo.flags |= VK_IMAGE_CREATE_PROTECTED_BIT; in createImages()
107 imageInfo.flags |= VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT; in createImages()
110 imageInfo.imageType = VK_IMAGE_TYPE_2D; in createImages()
111 imageInfo.format = pCreateInfo->imageFormat; in createImages()
112 imageInfo.extent.height = pCreateInfo->imageExtent.height; in createImages()
113 imageInfo.extent.width = pCreateInfo->imageExtent.width; in createImages()
114 imageInfo.extent.depth = 1; in createImages()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/pipeline/
DvktPipelineMultisampleBase.cpp114 const VkImageCreateInfo& imageInfo) const in validateImageInfo()
117 …geFormatProperties(physicalDevice, imageInfo.format, imageInfo.imageType, imageInfo.tiling, imageI… in validateImageInfo()
119 if (imageFormatProps.maxExtent.width < imageInfo.extent.width || in validateImageInfo()
120 imageFormatProps.maxExtent.height < imageInfo.extent.height || in validateImageInfo()
121 imageFormatProps.maxExtent.depth < imageInfo.extent.depth) in validateImageInfo()
126 << imageInfo.extent.width << ", " in validateImageInfo()
127 << imageInfo.extent.height << ", " in validateImageInfo()
128 << imageInfo.extent.depth in validateImageInfo()
140 if (imageFormatProps.maxArrayLayers < imageInfo.arrayLayers) in validateImageInfo()
144 …notSupportedStream << "Image layers count of " << imageInfo.arrayLayers << " exceeds allowed maxim… in validateImageInfo()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineMultisampleBase.cpp114 const VkImageCreateInfo& imageInfo) const in validateImageInfo()
117 …geFormatProperties(physicalDevice, imageInfo.format, imageInfo.imageType, imageInfo.tiling, imageI… in validateImageInfo()
119 if (imageFormatProps.maxExtent.width < imageInfo.extent.width || in validateImageInfo()
120 imageFormatProps.maxExtent.height < imageInfo.extent.height || in validateImageInfo()
121 imageFormatProps.maxExtent.depth < imageInfo.extent.depth) in validateImageInfo()
126 << imageInfo.extent.width << ", " in validateImageInfo()
127 << imageInfo.extent.height << ", " in validateImageInfo()
128 << imageInfo.extent.depth in validateImageInfo()
140 if (imageFormatProps.maxArrayLayers < imageInfo.arrayLayers) in validateImageInfo()
144 …notSupportedStream << "Image layers count of " << imageInfo.arrayLayers << " exceeds allowed maxim… in validateImageInfo()
[all …]
/third_party/skia/third_party/externals/swiftshader/tests/VulkanWrapper/
DImage.cpp21 vk::ImageCreateInfo imageInfo; in Image() local
22 imageInfo.imageType = vk::ImageType::e2D; in Image()
23 imageInfo.format = format; in Image()
24 imageInfo.tiling = vk::ImageTiling::eOptimal; in Image()
25 imageInfo.initialLayout = vk::ImageLayout::eGeneral; in Image()
26 imageInfo.usage = vk::ImageUsageFlagBits::eColorAttachment; in Image()
27 imageInfo.samples = sampleCount; in Image()
28 imageInfo.extent = vk::Extent3D(width, height, 1); in Image()
29 imageInfo.mipLevels = 1; in Image()
30 imageInfo.arrayLayers = 1; in Image()
[all …]
/third_party/skia/src/utils/
DSkAnimCodecPlayer.cpp74 auto imageInfo = fImageInfo; in getFrameAt() local
75 if (fFrameInfos[index].fAlphaType != kOpaque_SkAlphaType && imageInfo.isOpaque()) { in getFrameAt()
76 imageInfo = imageInfo.makeAlphaType(kPremul_SkAlphaType); in getFrameAt()
81 auto canvas = SkCanvas::MakeRasterDirect(imageInfo, data->writable_data(), rb); in getFrameAt()
98 if (SkCodec::kSuccess != fCodec->getPixels(imageInfo, data->writable_data(), rb, &opts)) { in getFrameAt()
102 auto image = SkImage::MakeRasterData(imageInfo, std::move(data), rb); in getFrameAt()
104 imageInfo = imageInfo.makeDimensions(orientedDims); in getFrameAt()
105 rb = imageInfo.minRowBytes(); in getFrameAt()
106 size = imageInfo.computeByteSize(rb); in getFrameAt()
108 auto canvas = SkCanvas::MakeRasterDirect(imageInfo, data->writable_data(), rb); in getFrameAt()
[all …]
/third_party/skia/docs/examples/
DColor_Type_RGB_101010.cpp9 SkImageInfo imageInfo = SkImageInfo::Make(2, 2, kRGB_101010x_SkColorType, kOpaque_SkAlphaType); in draw() local
10 bitmap.allocPixels(imageInfo); in draw()
21 if (bitmap.installPixels(imageInfo, (void*) redBits, imageInfo.minRowBytes())) { in draw()
24 SkPixmap bluePixmap(imageInfo, &blueBits, imageInfo.minRowBytes()); in draw()
25 if (bitmap.installPixels(imageInfo, (void*) blueBits, imageInfo.minRowBytes())) { in draw()
DColor_Type_RGBA_1010102.cpp9 SkImageInfo imageInfo = SkImageInfo::Make(2, 2, kRGBA_1010102_SkColorType, kOpaque_SkAlphaType); in draw() local
10 bitmap.allocPixels(imageInfo); in draw()
25 if (bitmap.installPixels(imageInfo, (void*) redBits, imageInfo.minRowBytes())) { in draw()
28 SkPixmap bluePixmap(imageInfo, &blueBits, imageInfo.minRowBytes()); in draw()
29 if (bitmap.installPixels(imageInfo, (void*) blueBits, imageInfo.minRowBytes())) { in draw()
DImageInfo_isOpaque.cpp10 SkImageInfo imageInfo = SkImageInfo::Make(width, height, kN32_SkColorType, kPremul_SkAlphaType); in draw() local
11 bitmap.setInfo(imageInfo); in draw()
15 SkDebugf("isOpaque: %s\n", imageInfo.isOpaque() ? "true" : "false"); in draw()
17 SkDebugf("isOpaque: %s\n", imageInfo.isOpaque() ? "true" : "false"); in draw()
18 imageInfo = imageInfo.makeAlphaType(kOpaque_SkAlphaType); in draw()
19 bitmap.setInfo(imageInfo); in draw()
DImageInfo_height.cpp10 SkImageInfo imageInfo = source.info();
12 canvas->drawLine(imageInfo.width() + 10, 0, imageInfo.width() + 10, imageInfo.height(), paint);
13 canvas->drawString("height", imageInfo.width() + 15, imageInfo.height() / 2, paint);
DColor_Type_RGB_888.cpp9 SkImageInfo imageInfo = SkImageInfo::Make(2, 2, kRGB_888x_SkColorType, kOpaque_SkAlphaType); in draw() local
10 bitmap.allocPixels(imageInfo); in draw()
21 if (bitmap.installPixels(imageInfo, (void*) red888, imageInfo.minRowBytes())) { in draw()
24 if (bitmap.installPixels(imageInfo, (void*) blue888, imageInfo.minRowBytes())) { in draw()
DColor_Type_RGB_565.cpp9 SkImageInfo imageInfo = SkImageInfo::Make(2, 2, kRGB_565_SkColorType, kOpaque_SkAlphaType); in draw() local
10 bitmap.allocPixels(imageInfo); in draw()
21 SkPixmap redPixmap(imageInfo, &red565, imageInfo.minRowBytes()); in draw()
25 SkPixmap bluePixmap(imageInfo, &blue565, imageInfo.minRowBytes()); in draw()
DColor_Type_RGBA_8888.cpp9 SkImageInfo imageInfo = SkImageInfo::Make(2, 2, kRGBA_8888_SkColorType, kPremul_SkAlphaType); in draw() local
10 bitmap.allocPixels(imageInfo); in draw()
21 SkPixmap redPixmap(imageInfo, &red8888, imageInfo.minRowBytes()); in draw()
25 SkPixmap bluePixmap(imageInfo, &blue8888, imageInfo.minRowBytes()); in draw()
DColor_Type_BGRA_8888.cpp9 SkImageInfo imageInfo = SkImageInfo::Make(2, 2, kBGRA_8888_SkColorType, kPremul_SkAlphaType); in draw() local
10 bitmap.allocPixels(imageInfo); in draw()
21 SkPixmap redPixmap(imageInfo, &red8888, imageInfo.minRowBytes()); in draw()
25 SkPixmap bluePixmap(imageInfo, &blue8888, imageInfo.minRowBytes()); in draw()
DColor_Type_ARGB_4444.cpp9 SkImageInfo imageInfo = SkImageInfo::Make(2, 2, kARGB_4444_SkColorType, kPremul_SkAlphaType); in draw() local
10 bitmap.allocPixels(imageInfo); in draw()
21 SkPixmap redPixmap(imageInfo, &red4444, imageInfo.minRowBytes()); in draw()
25 SkPixmap bluePixmap(imageInfo, &blue4444, imageInfo.minRowBytes()); in draw()
DColor_Type_RGBA_F16.cpp26 SkImageInfo imageInfo = SkImageInfo::Make(2, 2, kRGBA_F16_SkColorType, kPremul_SkAlphaType); in draw() local
27 bitmap.allocPixels(imageInfo); in draw()
43 SkPixmap redPixmap(imageInfo, red_f16, imageInfo.minRowBytes()); in draw()
47 SkPixmap bluePixmap(imageInfo, blue_f16, imageInfo.minRowBytes()); in draw()
DImageInfo_computeOffset.cpp15 SkImageInfo imageInfo = SkImageInfo::MakeA8(8, 8); in draw() local
17 bitmap.installPixels(imageInfo, (void*) pixels, sizeof(pixels[0])); in draw()
22 size_t offset = imageInfo.computeOffset(2, 3, sizeof(pixels[0])); in draw()
24 offset = imageInfo.computeOffset(5, 3, sizeof(pixels[0])); in draw()
26 bitmap.installPixels(imageInfo, (void*) pixels, sizeof(pixels[0])); in draw()
DImageInfo_width.cpp10 SkImageInfo imageInfo = source.info();
11 canvas->translate(0, imageInfo.height());
13 canvas->drawLine(0, 10, imageInfo.width(), 10, paint);
14 canvas->drawString("width", imageInfo.width() / 2 - 15, 25, paint);
DColor_Type_Gray_8.cpp9 SkImageInfo imageInfo = SkImageInfo::Make(2, 2, kGray_8_SkColorType, kOpaque_SkAlphaType); in draw() local
10 bitmap.allocPixels(imageInfo); in draw()
15 SkPixmap grayPixmap(imageInfo, &gray8, imageInfo.minRowBytes()); in draw()
/third_party/skia/gm/
Dexoticformats.cpp44 static sk_sp<SkData> load_ktx(const char* filename, ImageInfo* imageInfo) { in load_ktx() argument
95 imageInfo->fCompressionType = SkImage::CompressionType::kETC2_RGB8_UNORM; in load_ktx()
98 imageInfo->fCompressionType = SkImage::CompressionType::kBC1_RGB8_UNORM; in load_ktx()
101 imageInfo->fCompressionType = SkImage::CompressionType::kBC1_RGBA8_UNORM; in load_ktx()
107 imageInfo->fDim.fWidth = pixelWidth; in load_ktx()
108 imageInfo->fDim.fHeight = pixelHeight; in load_ktx()
119 imageInfo->fMipmapped = GrMipmapped::kNo; in load_ktx()
125 imageInfo->fMipmapped = GrMipmapped::kYes; in load_ktx()
134 size_t dataSize = SkCompressedDataSize(imageInfo->fCompressionType, in load_ktx()
137 imageInfo->fMipmapped == GrMipmapped::kYes); in load_ktx()
[all …]
Ddstreadshuffle.cpp119 if (canvas->imageInfo().alphaType() == kOpaque_SkAlphaType) { in DrawHairlines()
166 if (SkColorType::kUnknown_SkColorType == canvas->imageInfo().colorType()) { in onDraw()
170 canvas->imageInfo().colorType(), in onDraw()
171 canvas->imageInfo().alphaType(), in onDraw()
172 canvas->imageInfo().refColorSpace()); in onDraw()
183 canvas->imageInfo().alphaType(), in onDraw()
184 canvas->imageInfo().refColorSpace()); in onDraw()
/third_party/skia/tests/
DVkWrapTests.cpp46 GrVkImageInfo imageInfo; in wrap_tex_test() local
47 SkAssertResult(origBackendTex.getVkImageInfo(&imageInfo)); in wrap_tex_test()
57 GrVkImageInfo backendCopy = imageInfo; in wrap_tex_test()
70 GrVkImageInfo backendCopy = imageInfo; in wrap_tex_test()
83 GrVkImageInfo backendCopy = imageInfo; in wrap_tex_test()
111 GrVkImageInfo imageInfo; in wrap_rt_test() local
112 REPORTER_ASSERT(reporter, origBackendRT.getVkImageInfo(&imageInfo)); in wrap_rt_test()
119 GrVkImageInfo backendCopy = imageInfo; in wrap_rt_test()
128 GrVkImageInfo backendCopy = imageInfo; in wrap_rt_test()
151 GrVkImageInfo imageInfo; in wrap_trt_test() local
[all …]
DRecordingXfermodeTest.cpp39 const SkImageInfo& imageInfo() const { return fImageInfo; } in imageInfo() function in __anone4665f300111::Drawer
82 BitmapBackedCanvasStrategy(const SkImageInfo& imageInfo) { in BitmapBackedCanvasStrategy() argument
83 fBitmap.allocPixels(imageInfo); in BitmapBackedCanvasStrategy()
105 PictureStrategy(const SkImageInfo& imageInfo) { in PictureStrategy() argument
106 fBitmap.allocPixels(imageInfo); in PictureStrategy()
107 fWidth = imageInfo.width(); in PictureStrategy()
108 fHeight = imageInfo.height(); in PictureStrategy()
142 BitmapBackedCanvasStrategy golden(drawer.imageInfo()); in DEF_TEST()
143 PictureStrategy picture(drawer.imageInfo()); in DEF_TEST()
/third_party/skia/third_party/externals/swiftshader/tests/VulkanBenchmarks/
DClearImageBenchmarks.cpp29 vk::ImageCreateInfo imageInfo; in initialize() local
30 imageInfo.imageType = vk::ImageType::e2D; in initialize()
31 imageInfo.format = clearFormat; in initialize()
32 imageInfo.tiling = vk::ImageTiling::eOptimal; in initialize()
33 imageInfo.initialLayout = vk::ImageLayout::eGeneral; in initialize()
34 imageInfo.usage = vk::ImageUsageFlagBits::eTransferDst; in initialize()
35 imageInfo.samples = vk::SampleCountFlagBits::e4; in initialize()
36 imageInfo.extent = vk::Extent3D(1024, 1024, 1); in initialize()
37 imageInfo.mipLevels = 1; in initialize()
38 imageInfo.arrayLayers = 1; in initialize()
[all …]
/third_party/skia/include/core/
DSkSurface.h73 static sk_sp<SkSurface> MakeRasterDirect(const SkImageInfo& imageInfo, void* pixels,
106 static sk_sp<SkSurface> MakeRasterDirectReleaseProc(const SkImageInfo& imageInfo, void* pixels,
131 static sk_sp<SkSurface> MakeRaster(const SkImageInfo& imageInfo, size_t rowBytes,
150 static sk_sp<SkSurface> MakeRaster(const SkImageInfo& imageInfo,
152 return MakeRaster(imageInfo, 0, props);
282 const SkImageInfo& imageInfo,
309 const SkImageInfo& imageInfo, int sampleCount, in MakeRenderTarget() argument
312 return MakeRenderTarget(context, budgeted, imageInfo, sampleCount, in MakeRenderTarget()
334 const SkImageInfo& imageInfo) { in MakeRenderTarget() argument
336 if (!imageInfo.width() || !imageInfo.height()) { in MakeRenderTarget()
[all …]
/third_party/skia/specs/web-img-decode/proposed/impl/
Dimpl.js19 const imageInfo = { variable
26 imageInfo.colorType = CanvasKit.ColorType.RGBA_F32;
31 imageInfo.colorType = CanvasKit.ColorType.RGBA_8888;
35 const pixels = skImg.readPixels(imageInfo, 0, 0);
53 const ret = new ImageData(output, imageInfo.width, imageInfo.height);

12345678910>>...12