Home
last modified time | relevance | path

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

123

/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/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.hpp88 void fillRandom (de::Random* randomGen, MultiPlaneImageData* imageData, const vk::VkFo…
89 void fillGradient (MultiPlaneImageData* imageData, const tcu::Vec4& minVal, const tcu::…
90 void fillZero (MultiPlaneImageData* imageData);
105 const MultiPlaneImageData& imageData,
115 const MultiPlaneImageData& imageData,
125 MultiPlaneImageData* imageData,
134 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()
/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.hpp88 void fillRandom (de::Random* randomGen, MultiPlaneImageData* imageData, const vk::VkFo…
89 void fillGradient (MultiPlaneImageData* imageData, const tcu::Vec4& minVal, const tcu::…
90 void fillZero (MultiPlaneImageData* imageData);
105 const MultiPlaneImageData& imageData,
115 const MultiPlaneImageData& imageData,
125 MultiPlaneImageData* imageData,
134 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()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/image/
DvktImageCompressionTranscodingSupport.cpp511 ImageData& imageData,
518 vector<ImageData>& imageData);
526 void createImageInfos (ImageData& imageData,
531 vector<ImageData>& imageData,
552 vector<ImageData> imageData (m_parameters.imagesCount); in iterate() local
559 createImageInfos(imageData[imageNdx], mipMapSizes, isCompressed); in iterate()
560 for (deUint32 infoNdx = 0u; infoNdx < imageData[imageNdx].getImageInfoCount(); ++infoNdx) in iterate()
562imageData[imageNdx].addImage(MovePtr<Image>(new Image(vk, device, allocator, imageData[imageNdx].g… in iterate()
574imageData[imageNdx].addImageView(makeImageView(vk, device, imageData[imageNdx].getImage(infoNdx), in iterate()
582imageData[imageNdx].addImageView(makeImageView(vk, device, imageData[imageNdx].getImage(infoNdx), in iterate()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/image/
DvktImageCompressionTranscodingSupport.cpp511 ImageData& imageData,
518 vector<ImageData>& imageData);
526 void createImageInfos (ImageData& imageData,
531 vector<ImageData>& imageData,
552 vector<ImageData> imageData (m_parameters.imagesCount); in iterate() local
559 createImageInfos(imageData[imageNdx], mipMapSizes, isCompressed); in iterate()
560 for (deUint32 infoNdx = 0u; infoNdx < imageData[imageNdx].getImageInfoCount(); ++infoNdx) in iterate()
562imageData[imageNdx].addImage(MovePtr<Image>(new Image(vk, device, allocator, imageData[imageNdx].g… in iterate()
574imageData[imageNdx].addImageView(makeImageView(vk, device, imageData[imageNdx].getImage(infoNdx), in iterate()
582imageData[imageNdx].addImageView(makeImageView(vk, device, imageData[imageNdx].getImage(infoNdx), in iterate()
[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/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/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/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/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/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/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/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/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/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/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/skia/experimental/skottiekit/
Dcpu.js64 var imageData = new ImageData(pixels, this._width, this._height);
66 this._canvas.getContext('2d').putImageData(imageData, 0, 0);

123