Home
last modified time | relevance | path

Searched refs:pixelPtr (Results 1 – 15 of 15) sorted by relevance

/third_party/vk-gl-cts/framework/common/
DtcuTexture.cpp1082 const deUint8* pixelPtr = (const deUint8*)getPixelPtr(x, y, z); in getPixel() local
1088 return readRGBA8888Float(pixelPtr); in getPixel()
1090 return readRGB888Float(pixelPtr); in getPixel()
1093 #define UI8(OFFS, COUNT) ((*((const deUint8*)pixelPtr) >> (OFFS)) & ((1<<(COUNT))-1)) in getPixel()
1094 #define UI16(OFFS, COUNT) ((*((const deUint16*)pixelPtr) >> (OFFS)) & ((1<<(COUNT))-1)) in getPixel()
1095 #define UI32(OFFS, COUNT) ((*((const deUint32*)pixelPtr) >> (OFFS)) & ((1<<(COUNT))-1)) in getPixel()
1121 case TextureFormat::UNSIGNED_INT_999_E5_REV: return unpackRGB999E5(*((const deUint32*)pixelPtr)); in getPixel()
1156 result[c] = channelToFloat(pixelPtr + channelSize*((int)channelMap[c]), m_format.type); in getPixel()
1176 static tcu::Vector<T, 4> getPixelIntGeneric (const deUint8* pixelPtr, const tcu::TextureFormat& for… in getPixelIntGeneric() argument
1192 result[c] = channelToIntType<T>(pixelPtr + channelSize*((int)channelMap[c]), format.type); in getPixelIntGeneric()
[all …]
/third_party/skia/experimental/wasm-skp-debugger/
Dcpu.js30 var pixelPtr = DebuggerView._malloc(bufferLen);
41 var surface = this._getRasterDirectSurface(imageInfo, pixelPtr, width * 4);
48 surface._pixelPtr = pixelPtr;
/third_party/skia/experimental/skottiekit/
Dcpu.js41 var pixelPtr = SkottieKit._malloc(pixelLen);
43 var surface = this._getRasterDirectSurface(imageInfo, pixelPtr, width*4);
50 surface._pixelPtr = pixelPtr;
/third_party/skia/src/codec/
DSkSampledCodec.cpp290 void* pixelPtr = pixels; in sampledDecode() local
292 if (1 != this->codec()->getScanlines(pixelPtr, 1, rowBytes)) { in sampledDecode()
304 pixelPtr = SkTAddOffset<void>(pixelPtr, rowBytes); in sampledDecode()
315 void* pixelPtr = SkTAddOffset<void>(pixels, in sampledDecode() local
317 if (1 != this->codec()->getScanlines(pixelPtr, 1, rowBytes)) { in sampledDecode()
/third_party/skia/modules/canvaskit/
Dcpu.js48 var pixelPtr = CanvasKit._malloc(pixelLen);
54 var surface = CanvasKit.Surface._makeRasterDirect(imageInfo, pixelPtr, width*4);
61 surface._pixelPtr = pixelPtr;
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/texture/
DvktSampleVerifierUtil.cpp777 void convertNormalizedFormat (const void* pixelPtr, in convertNormalizedFormat() argument
848 deUint64 pack = readChannel(pixelPtr, 0, baseTypeBytes); in convertNormalizedFormat()
871 chanUVal = readChannel(pixelPtr, chan * chanSize, chanSize); in convertNormalizedFormat()
912 void convertFloatFormat (const void* pixelPtr, in convertFloatFormat() argument
938 resultMin[compNdx] = resultMax[compNdx] = *((const float*)pixelPtr + chan); in convertFloatFormat()
942 …convertFP16((const deUint16*) pixelPtr + chan, internalFormat[compNdx], resultMin[compNdx], result… in convertFloatFormat()
953 void convertFormat (const void* pixelPtr, in convertFormat() argument
964 convertNormalizedFormat(pixelPtr, texFormat, internalFormat, resultMin, resultMax); in convertFormat()
968 convertFloatFormat(pixelPtr, texFormat, internalFormat, resultMin, resultMax); in convertFormat()
DvktSampleVerifier.cpp99 const void* pixelPtr = DE_NULL; in fetchTexelWrapped() local
103 pixelPtr = m_levels[level].getPixelPtr(coord[0], layer, 0); in fetchTexelWrapped()
107 pixelPtr = m_levels[level].getPixelPtr(coord[0], coord[1], layer); in fetchTexelWrapped()
111 pixelPtr = m_levels[level].getPixelPtr(coord[0], coord[1], coord[2]); in fetchTexelWrapped()
114 …convertFormat(pixelPtr, mapVkFormat(m_imParams.format), m_conversionPrecision, resultMin, resultMa… in fetchTexelWrapped()
DvktSampleVerifierUtil.hpp102 void convertFormat (const void* pixelPtr,
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/texture/
DvktSampleVerifierUtil.cpp777 void convertNormalizedFormat (const void* pixelPtr, in convertNormalizedFormat() argument
848 deUint64 pack = readChannel(pixelPtr, 0, baseTypeBytes); in convertNormalizedFormat()
871 chanUVal = readChannel(pixelPtr, chan * chanSize, chanSize); in convertNormalizedFormat()
912 void convertFloatFormat (const void* pixelPtr, in convertFloatFormat() argument
938 resultMin[compNdx] = resultMax[compNdx] = *((const float*)pixelPtr + chan); in convertFloatFormat()
942 …convertFP16((const deUint16*) pixelPtr + chan, internalFormat[compNdx], resultMin[compNdx], result… in convertFloatFormat()
953 void convertFormat (const void* pixelPtr, in convertFormat() argument
964 convertNormalizedFormat(pixelPtr, texFormat, internalFormat, resultMin, resultMax); in convertFormat()
968 convertFloatFormat(pixelPtr, texFormat, internalFormat, resultMin, resultMax); in convertFormat()
DvktSampleVerifier.cpp99 const void* pixelPtr = DE_NULL; in fetchTexelWrapped() local
103 pixelPtr = m_levels[level].getPixelPtr(coord[0], layer, 0); in fetchTexelWrapped()
107 pixelPtr = m_levels[level].getPixelPtr(coord[0], coord[1], layer); in fetchTexelWrapped()
111 pixelPtr = m_levels[level].getPixelPtr(coord[0], coord[1], coord[2]); in fetchTexelWrapped()
114 …convertFormat(pixelPtr, mapVkFormat(m_imParams.format), m_conversionPrecision, resultMin, resultMa… in fetchTexelWrapped()
DvktSampleVerifierUtil.hpp102 void convertFormat (const void* pixelPtr,
/third_party/skia/docs/examples/
DImage_isLazyGenerated_a.cpp12 bool onGetPixels(const SkImageInfo& info, void* pixelPtr, size_t rowBytes,
14 SkPMColor* pixels = static_cast<SkPMColor*>(pixelPtr);
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/renderpass/
DvktRenderPassDepthStencilResolveTests.cpp167 float get16bitDepthComponent(deUint8* pixelPtr) in get16bitDepthComponent() argument
169 deUint16* value = reinterpret_cast<deUint16*>(pixelPtr); in get16bitDepthComponent()
173 float get24bitDepthComponent(deUint8* pixelPtr) in get24bitDepthComponent() argument
176 deUint32 value = (((deUint32)pixelPtr[0]) << (!littleEndian * 16u)) | in get24bitDepthComponent()
177 (((deUint32)pixelPtr[1]) << 8u) | in get24bitDepthComponent()
178 (((deUint32)pixelPtr[2]) << ( littleEndian * 16u)); in get24bitDepthComponent()
182 float get32bitDepthComponent(deUint8* pixelPtr) in get32bitDepthComponent() argument
184 return *(reinterpret_cast<float*>(pixelPtr)); in get32bitDepthComponent()
1063 deUint8* pixelPtr = static_cast<deUint8*>(m_bufferMemory->getHostPtr()); in verifyDepth() local
1097 float depth = (*getDepthComponent)(pixelPtr); in verifyDepth()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/renderpass/
DvktRenderPassDepthStencilResolveTests.cpp167 float get16bitDepthComponent(deUint8* pixelPtr) in get16bitDepthComponent() argument
169 deUint16* value = reinterpret_cast<deUint16*>(pixelPtr); in get16bitDepthComponent()
173 float get24bitDepthComponent(deUint8* pixelPtr) in get24bitDepthComponent() argument
176 deUint32 value = (((deUint32)pixelPtr[0]) << (!littleEndian * 16u)) | in get24bitDepthComponent()
177 (((deUint32)pixelPtr[1]) << 8u) | in get24bitDepthComponent()
178 (((deUint32)pixelPtr[2]) << ( littleEndian * 16u)); in get24bitDepthComponent()
182 float get32bitDepthComponent(deUint8* pixelPtr) in get32bitDepthComponent() argument
184 return *(reinterpret_cast<float*>(pixelPtr)); in get32bitDepthComponent()
1063 deUint8* pixelPtr = static_cast<deUint8*>(m_bufferMemory->getHostPtr()); in verifyDepth() local
1097 float depth = (*getDepthComponent)(pixelPtr); in verifyDepth()
[all …]
/third_party/skia/third_party/externals/d3d12allocator/src/
DD3D12Sample.cpp1043 char* pixelPtr = rowPtr; in InitD3D() local
1046 *(UINT8*)(pixelPtr ) = (UINT8)x; // R in InitD3D()
1047 *(UINT8*)(pixelPtr + 1) = (UINT8)y; // G in InitD3D()
1048 *(UINT8*)(pixelPtr + 2) = 0x00; // B in InitD3D()
1049 *(UINT8*)(pixelPtr + 3) = 0xFF; // A in InitD3D()
1051 *(UINT8*)(pixelPtr ) = x > 128 ? 0xFF : 00; in InitD3D()
1052 *(UINT8*)(pixelPtr + 1) = y > 128 ? 0xFF : 00; in InitD3D()
1053 pixelPtr += bytesPerPixel; in InitD3D()