Home
last modified time | relevance | path

Searched refs:imageData (Results 1 – 25 of 47) sorted by relevance

12

/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ycbcr/
DvktYCbCrUtil.cpp132 const MultiPlaneImageData& imageData, in allocateStagingBuffers() argument
136 for (deUint32 planeNdx = 0; planeNdx < imageData.getDescription().numPlanes; ++planeNdx) in allocateStagingBuffers()
143 (VkDeviceSize)imageData.getPlaneSize(planeNdx), in allocateStagingBuffers()
163 const MultiPlaneImageData& imageData, in allocateAndWriteStagingBuffers() argument
167 allocateStagingBuffers(vkd, device, allocator, imageData, buffers, allocations); in allocateAndWriteStagingBuffers()
169 for (deUint32 planeNdx = 0; planeNdx < imageData.getDescription().numPlanes; ++planeNdx) in allocateAndWriteStagingBuffers()
171 …deMemcpy((*allocations)[planeNdx]->getHostPtr(), imageData.getPlanePtr(planeNdx), imageData.getPla… in allocateAndWriteStagingBuffers()
176 void readStagingBuffers (MultiPlaneImageData* imageData, in readStagingBuffers() argument
181 for (deUint32 planeNdx = 0; planeNdx < imageData->getDescription().numPlanes; ++planeNdx) in readStagingBuffers()
184 …deMemcpy(imageData->getPlanePtr(planeNdx), allocations[planeNdx]->getHostPtr(), imageData->getPlan… in readStagingBuffers()
[all …]
DvktYCbCrUtil.hpp87 void fillRandom (de::Random* randomGen, MultiPlaneImageData* imageData, const vk::VkFo…
88 void fillGradient (MultiPlaneImageData* imageData, const tcu::Vec4& minVal, const tcu::…
89 void fillZero (MultiPlaneImageData* imageData);
104 const MultiPlaneImageData& imageData,
114 const MultiPlaneImageData& imageData,
124 MultiPlaneImageData* imageData,
133 MultiPlaneImageData* imageData,
DvktYCbCrFormatTests.cpp431 MultiPlaneImageData imageData (format, size); in testFormat() local
436 fillZero(&imageData); in testFormat()
445 imageData, in testFormat()
457 imageData, in testFormat()
465 fillGradient(&imageData, Vec4(0.0f), Vec4(1.0f)); in testFormat()
475 imageData, in testFormat()
488 imageData, in testFormat()
518 const tcu::ConstPixelBufferAccess channelAccess = imageData.getChannelAccess(channelNdx); in testFormat()
DvktYCbCrFilteringTests.cpp333 MultiPlaneImageData imageData(m_format, imageSize); in iterate() local
334 fillGradient(&imageData, tcu::Vec4(0.0f), tcu::Vec4(1.0f)); in iterate()
340 imageData, in iterate()
373 const vk::PlanarFormatDescription planeInfo = imageData.getDescription(); in iterate()
378 …ChannelAccess rChannelAccess (planeInfo.hasChannelNdx(0) ? getChannelAccess(imageData, plan… in iterate()
379 …ChannelAccess gChannelAccess (planeInfo.hasChannelNdx(1) ? getChannelAccess(imageData, plan… in iterate()
380 …ChannelAccess bChannelAccess (planeInfo.hasChannelNdx(2) ? getChannelAccess(imageData, plan… in iterate()
381 …ChannelAccess aChannelAccess (planeInfo.hasChannelNdx(3) ? getChannelAccess(imageData, plan… in iterate()
DvktYCbCrViewTests.cpp584 MultiPlaneImageData imageData (format, size); in testPlaneView() local
587 fillRandom(&randomGen, &imageData); in testPlaneView()
620 imageData, in testPlaneView()
649 const tcu::ConstPixelBufferAccess channelAccess = imageData.getChannelAccess(channelNdx); in testPlaneView()
670 imageData.getPlanePtr(params.planeNdx)); in testPlaneView()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/image/
DvktImageCompressionTranscodingSupport.cpp509 ImageData& imageData,
515 vector<ImageData>& imageData);
522 void createImageInfos (ImageData& imageData,
526 vector<ImageData>& imageData,
547 vector<ImageData> imageData (m_parameters.imagesCount); in iterate() local
554 createImageInfos(imageData[imageNdx], mipMapSizes, isCompressed); in iterate()
555 for (deUint32 infoNdx = 0u; infoNdx < imageData[imageNdx].getImageInfoCount(); ++infoNdx) in iterate()
557imageData[imageNdx].addImage(MovePtr<Image>(new Image(vk, device, allocator, imageData[imageNdx].g… in iterate()
569imageData[imageNdx].addImageView(makeImageView(vk, device, imageData[imageNdx].getImage(infoNdx), in iterate()
577imageData[imageNdx].addImageView(makeImageView(vk, device, imageData[imageNdx].getImage(infoNdx), in iterate()
[all …]
/third_party/skia/src/codec/
DSkRawCodec.cpp556 ::piex::PreviewImageData imageData; in initFromPiex()
558 && ::piex::GetPreviewImageData(&piexStream, &imageData) == ::piex::Error::kOk) in initFromPiex()
560 dng_point cfaPatternSize(imageData.cfa_pattern_dim[1], imageData.cfa_pattern_dim[0]); in initFromPiex()
561 return this->init(static_cast<int>(imageData.full_width), in initFromPiex()
562 static_cast<int>(imageData.full_height), cfaPatternSize); in initFromPiex()
631 ::piex::PreviewImageData imageData; in MakeFromStream()
633 ::piex::Error error = ::piex::GetPreviewImageData(&piexStream, &imageData); in MakeFromStream()
640 if (imageData.color_space == ::piex::PreviewImageData::kAdobeRgb) { in MakeFromStream()
650 if (error == ::piex::Error::kOk && imageData.preview.length > 0 && in MakeFromStream()
651 imageData.preview.format == ::piex::Image::kJpegCompressed) in MakeFromStream()
[all …]
/third_party/flutter/skia/src/codec/
DSkRawCodec.cpp556 ::piex::PreviewImageData imageData; in initFromPiex()
558 && ::piex::GetPreviewImageData(&piexStream, &imageData) == ::piex::Error::kOk) in initFromPiex()
560 dng_point cfaPatternSize(imageData.cfa_pattern_dim[1], imageData.cfa_pattern_dim[0]); in initFromPiex()
561 return this->init(static_cast<int>(imageData.full_width), in initFromPiex()
562 static_cast<int>(imageData.full_height), cfaPatternSize); in initFromPiex()
631 ::piex::PreviewImageData imageData; in MakeFromStream()
633 ::piex::Error error = ::piex::GetPreviewImageData(&piexStream, &imageData); in MakeFromStream()
640 if (imageData.color_space == ::piex::PreviewImageData::kAdobeRgb) { in MakeFromStream()
650 if (error == ::piex::Error::kOk && imageData.preview.length > 0 && in MakeFromStream()
651 imageData.preview.format == ::piex::Image::kJpegCompressed) in MakeFromStream()
[all …]
/third_party/skia/modules/canvaskit/
Dcpu.js82 var imageData = new ImageData(pixels, this._width, this._height);
85 this._canvas.getContext('2d').putImageData(imageData, 0, 0);
87 this._canvas.getContext('2d').putImageData(imageData, 0, 0,
/third_party/skia/docs/examples/
Dskbug_633528.cpp6 static const char imageData[] = in draw() local
20 auto i = SkImage::MakeFromEncoded(SkData::MakeWithoutCopy(imageData, 343)); in draw()
/third_party/flutter/skia/modules/canvaskit/tests/
Dutil.js12 const imageData = new ImageData(pixels, CANVAS_WIDTH, CANVAS_HEIGHT);
15 reportingCanvas.getContext('2d').putImageData(imageData, 0, 0);
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DD3DTextureTest.cpp1563 std::vector<unsigned char> imageData(bufferSize * bufferSize * 4, 0); in TEST_P() local
1564 for (size_t i = 0; i < imageData.size(); i += 4) in TEST_P()
1566 imageData[i] = kRFill; in TEST_P()
1567 imageData[i + 1] = kGFill; in TEST_P()
1568 imageData[i + 2] = kBFill; in TEST_P()
1569 imageData[i + 3] = kAFill; in TEST_P()
1577 context->UpdateSubresource(d3d11_texture, arraySize - 1, &dstBox, imageData.data(), in TEST_P()
1578 bufferSize * 4, imageData.size()); in TEST_P()
1677 std::vector<unsigned char> imageData; in RunYUVTest() local
1681 imageData.resize(bufferSize * bufferSize * 3 / 2); in RunYUVTest()
[all …]
/third_party/skia/demos.skia.org/demos/image_decode_web_worker/
Dworker.js13 const imageData = ctx2d.getImageData(0, 0, bitmap.width, bitmap.height); constant
14 const arrayBuffer = imageData.data.buffer;
/third_party/flutter/skia/tests/
DSwizzlerTest.cpp32 uint8_t* imageData = storage.get() + offset; in check_fill() local
33 uint8_t* imageStart = imageData + rowBytes * startRow; in check_fill()
39 uint8_t* indexPtr = imageData + startRow * rowBytes; in check_fill()
/third_party/skia/tests/
DSwizzlerTest.cpp32 uint8_t* imageData = storage.get() + offset; in check_fill() local
33 uint8_t* imageStart = imageData + rowBytes * startRow; in check_fill()
39 uint8_t* indexPtr = imageData + startRow * rowBytes; in check_fill()
/third_party/skia/experimental/wasm-skp-debugger/
Dcpu.js65 var imageData = new ImageData(pixels, this._width, this._height);
66 this._canvas.getContext('2d').putImageData(imageData, 0, 0);
/third_party/flutter/skia/experimental/wasm-skp-debugger/
Dcpu.js64 var imageData = new ImageData(pixels, this._width, this._height);
65 this._canvas.getContext('2d').putImageData(imageData, 0, 0);
/third_party/skia/modules/canvaskit/htmlcanvas/
Dcanvas2dcontext.js788 this.putImageData = function(imageData, x, y, dirtyX, dirtyY, dirtyWidth, dirtyHeight) { argument
794 this._canvas.writePixels(imageData.data, imageData.width, imageData.height, x, y);
799 dirtyWidth = dirtyWidth || imageData.width;
800 dirtyHeight = dirtyHeight || imageData.height;
823 'width': imageData.width,
824 'height': imageData.height,
828 }, imageData.data, 4 * imageData.width);
/third_party/flutter/skia/modules/canvaskit/
Dcpu.js64 var imageData = new ImageData(pixels, this._width, this._height);
66 this._canvas.getContext('2d').putImageData(imageData, 0, 0);
/third_party/skia/experimental/skottiekit/
Dcpu.js64 var imageData = new ImageData(pixels, this._width, this._height);
66 this._canvas.getContext('2d').putImageData(imageData, 0, 0);
/third_party/skia/src/svg/
DSkSVGDevice.cpp477 sk_sp<SkData> imageData = image->encodeToData(); in AsDataUri() local
478 if (!imageData) { in AsDataUri()
486 if (SkJpegCodec::IsJpeg(imageData->data(), imageData->size())) { in AsDataUri()
494 if (!is_png(imageData->data(), imageData->size())) { in AsDataUri()
496 imageData = image->encodeToData(SkEncodedImageFormat::kPNG, 100); in AsDataUri()
506 size_t b64Size = SkBase64::Encode(imageData->data(), imageData->size(), nullptr); in AsDataUri()
510 SkBase64::Encode(imageData->data(), imageData->size(), dest + selectedPrefixLength - 1); in AsDataUri()
/third_party/flutter/skia/src/svg/
DSkSVGDevice.cpp438 sk_sp<SkData> imageData = image->encodeToData(); in AsDataUri() local
439 if (!imageData) { in AsDataUri()
443 const char* src = (char*)imageData->data(); in AsDataUri()
450 if (SkJpegCodec::IsJpeg(src, imageData->size())) { in AsDataUri()
454 if (!SkPngCodec::IsPng(src, imageData->size())) { in AsDataUri()
455 imageData = image->encodeToData(SkEncodedImageFormat::kPNG, 100); in AsDataUri()
461 size_t b64Size = SkBase64::Encode(imageData->data(), imageData->size(), nullptr); in AsDataUri()
465 SkBase64::Encode(imageData->data(), imageData->size(), dest + selectedPrefixLength - 1); in AsDataUri()
/third_party/flutter/skia/modules/canvaskit/htmlcanvas/
Dcanvas2dcontext.js804 this.putImageData = function(imageData, x, y, dirtyX, dirtyY, dirtyWidth, dirtyHeight) { argument
810 this._canvas.writePixels(imageData.data, imageData.width, imageData.height, x, y);
815 dirtyWidth = dirtyWidth || imageData.width;
816 dirtyHeight = dirtyHeight || imageData.height;
838 var img = CanvasKit.MakeImage(imageData.data, imageData.width, imageData.height,
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/renderpass/
DvktRenderPassDepthStencilResolveTests.cpp1458 ImageTestData imageData = imagesTestData[imageDataNdx]; in initTests() local
1461 …u::TestCaseGroup> imageGroup(new tcu::TestCaseGroup(testCtx, imageData.groupName, imageData.groupN… in initTests()
1538 imageData.width, in initTests()
1539 imageData.height, in initTests()
1543 imageData.renderArea, in initTests()
1549 imageData.clearValue, in initTests()
1582 imageData.width, in initTests()
1583 imageData.height, in initTests()
1587 imageData.renderArea, in initTests()
1593 imageData.clearValue, in initTests()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/protected_memory/
DvktProtectedMemYCbCrConversionTests.cpp319 const ycbcr::MultiPlaneImageData& imageData, in uploadYCbCrImage() argument
331 const vk::PlanarFormatDescription& formatDesc = imageData.getDescription(); in uploadYCbCrImage()
336 for (deUint32 planeNdx = 0; planeNdx < imageData.getDescription().numPlanes; ++planeNdx) in uploadYCbCrImage()
341 (deUint32)imageData.getPlaneSize(planeNdx), in uploadYCbCrImage()
355 (deUint32)imageData.getPlaneSize(planeNdx) in uploadYCbCrImage()
359 …deMemcpy(buffer->getAllocation().getHostPtr(), imageData.getPlanePtr(planeNdx), imageData.getPlane… in uploadYCbCrImage()
367 for (deUint32 planeNdx = 0; planeNdx < imageData.getDescription().numPlanes; ++planeNdx) in uploadYCbCrImage()
396 for (deUint32 planeNdx = 0; planeNdx < imageData.getDescription().numPlanes; ++planeNdx) in uploadYCbCrImage()
402 ? imageData.getSize().x() / formatDesc.planes[planeNdx].widthDivisor in uploadYCbCrImage()
403 : imageData.getSize().x(); in uploadYCbCrImage()
[all …]

12