/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/sparse_resources/ |
D | vktSparseResourcesImageBlockShapes.cpp | 230 …deUint32 pixelSize = static_cast<deUint32>(formatDescription.planes[planeNdx].elementSizeBy… in iterate() local 238 switch (pixelSize) in iterate() 261 DE_ASSERT(pixelSize == 128); in iterate() 275 switch (pixelSize) in iterate() 294 DE_ASSERT(pixelSize == 128); in iterate() 307 switch (pixelSize) in iterate() 326 DE_ASSERT(pixelSize == 128); in iterate() 339 switch (pixelSize) in iterate() 358 DE_ASSERT(pixelSize == 128); in iterate() 371 switch (pixelSize) in iterate() [all …]
|
/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/sfntly/ |
D | HdmxTests.java | 41 assertEquals(6, hdmxTable.pixelSize(0)); in testBasicHdmx() 42 assertEquals(7, hdmxTable.pixelSize(1)); in testBasicHdmx() 43 assertEquals(24, hdmxTable.pixelSize(18)); in testBasicHdmx() 64 int x = hdmxTable.pixelSize(19); in testHdmxBounds() 71 int x = hdmxTable.pixelSize(-1); in testHdmxBounds()
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
D | hb-ot-hdmx-table.hh | 49 bool serialize (hb_serialize_context_t *c, unsigned pixelSize, Iterator it) in serialize() 57 this->pixelSize = pixelSize; in serialize() 75 HBUINT8 pixelSize; /* Pixel size for following widths (as ppem). */ member 141 return hb_pair ((unsigned) device_record->pixelSize, +row); in subset()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/image/ |
D | vktImageSubresourceLayoutTests.cpp | 71 VkDeviceSize pixelSize () const; 142 VkDeviceSize BufferLevels::pixelSize () const in pixelSize() function in vkt::image::__anonb4dd9e6c0111::BufferLevels 387 const auto pixelSize = bufferLevels.pixelSize(); in iterateAspect() local 388 const auto pixelSizeSz = static_cast<size_t>(pixelSize); in iterateAspect() 537 if (subresourceLayout.size < pixelSize * numPixels) in iterateAspect() 544 << " with pixel size " << pixelSize in iterateAspect() 550 if (subresourceHeight > 1u && subresourceLayout.rowPitch < pixelSize * subresourceWidth) in iterateAspect() 557 << " bytes with " << pixelSize in iterateAspect() 562 if (numLayers > 1u && subresourceLayout.arrayPitch < pixelSize * numPixels) in iterateAspect() 569 << " bytes with " << pixelSize in iterateAspect() [all …]
|
/third_party/vk-gl-cts/modules/gles2/functional/ |
D | es2fReadPixelsTests.cpp | 66 void getFormatInfo (tcu::TextureFormat& format, GLint& glFormat, GLint& glType, int& pixelSize); 144 …elsTest::getFormatInfo (tcu::TextureFormat& format, GLint& glFormat, GLint& glType, int& pixelSize) in getFormatInfo() argument 157 pixelSize = format.getPixelSize(); in getFormatInfo() 162 pixelSize = 1 * 4; in getFormatInfo() 177 int pixelSize; in iterate() local 181 getFormatInfo(format, glFormat, glType, pixelSize); in iterate() 208 …const int rowPitch = m_alignment * deCeilFloatToInt32(float(pixelSize * width) / (float)m_alignmen… in iterate()
|
/third_party/skia/third_party/etc1/ |
D | etc1.cpp | 518 etc1_uint32 pixelSize, etc1_uint32 stride, etc1_byte* pOut) { in etc1_encode_image() argument 519 if (pixelSize < 2 || pixelSize > 3) { in etc1_encode_image() 545 const etc1_byte* p = pIn + pixelSize * x + stride * (y + cy); in etc1_encode_image() 546 if (pixelSize == 3) { in etc1_encode_image() 554 p += pixelSize; in etc1_encode_image() 575 etc1_uint32 pixelSize, etc1_uint32 stride) { in etc1_decode_image() argument 576 if (pixelSize < 2 || pixelSize > 3) { in etc1_decode_image() 598 etc1_byte* p = pOut + pixelSize * x + stride * (y + cy); in etc1_decode_image() 599 if (pixelSize == 3) { in etc1_decode_image()
|
D | etc1.h | 76 etc1_uint32 pixelSize, etc1_uint32 stride, etc1_byte* pOut); 88 etc1_uint32 pixelSize, etc1_uint32 stride);
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/ |
D | vktDrawImageObjectUtil.cpp | 44 void MemoryOp::pack (int pixelSize, in pack() argument 57 rowPitch = width * pixelSize; in pack() 71 if (rowPitch == static_cast<vk::VkDeviceSize>(width * pixelSize) && in pack() 83 vk::VkDeviceSize offsetDepthSrc = d * (pixelSize * width * height); in pack() 89 srcRow += pixelSize * width; in pack() 96 void MemoryOp::unpack (int pixelSize, in unpack() argument 109 rowPitch = width * pixelSize; in unpack() 123 if (rowPitch == static_cast<vk::VkDeviceSize>(width * pixelSize) && in unpack() 133 vk::VkDeviceSize offsetDepthDst = d * (pixelSize * width * height); in unpack() 139 deMemcpy(dstRow, srcRow, static_cast<size_t>(pixelSize * width)); in unpack() [all …]
|
D | vktDrawImageObjectUtil.hpp | 43 static void pack (int pixelSize, 52 static void unpack (int pixelSize,
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
D | es3fReadPixelsTests.cpp | 88 void getFormatInfo (tcu::TextureFormat& format, int& pixelSize); 89 void clearColor (tcu::Texture2D& reference, vector<deUint8>& pixelData, int pixelSize); 204 void ReadPixelsTest::getFormatInfo (tcu::TextureFormat& format, int& pixelSize) in getFormatInfo() argument 218 pixelSize = format.getPixelSize(); in getFormatInfo() 221 …d ReadPixelsTest::clearColor (tcu::Texture2D& reference, vector<deUint8>& pixelData, int pixelSize) in clearColor() argument 314 …const int rowPitch = m_alignment * deCeilFloatToInt32(float(pixelSize * rowWidth) / (float)m_align… in clearColor() 330 int pixelSize; in iterate() local 332 getFormatInfo(format, pixelSize); in iterate() 353 clearColor(reference, pixelData, pixelSize); in iterate() 356 …const int rowPitch = m_alignment * deCeilFloatToInt32((float)(pixelSize * rowWidth) / (floa… in iterate() [all …]
|
D | es3fTextureSpecificationTests.cpp | 1080 int pixelSize = m_texFormat.getPixelSize(); in createTexture() local 1082 int rowPitch = deAlign32(rowLength*pixelSize, m_alignment); in createTexture() 1089 data.resize(pixelSize * m_skipPixels + rowPitch * (m_height + m_skipRows)); in createTexture() 1096 …m_height, 1, rowPitch, 0, &data[0] + m_skipRows*rowPitch + m_skipPixels*pixelSize), 4, colorA, col… in createTexture() 1148 int pixelSize = m_texFormat.getPixelSize(); in createTexture() local 1150 int rowPitch = deAlign32(rowLength*pixelSize, m_alignment); in createTexture() 1159 …data.resize(pixelSize * m_skipPixels + rowPitch * m_skipRows + slicePitch * (m_skipImages + m_dept… in createTexture() 1166 …&data[0] + m_skipImages*slicePitch + m_skipRows*rowPitch + m_skipPixels*pixelSize), 4, colorA, col… in createTexture() 1380 int pixelSize = m_texFormat.getPixelSize(); in createTexture() local 1390 data.resize(deAlign32(m_width*pixelSize, 4)*m_height); in createTexture() [all …]
|
/third_party/vk-gl-cts/framework/opengl/ |
D | gluPixelTransfer.cpp | 38 int pixelSize = format.getPixelSize(); in getTransferAlignment() local 39 if (deIsPowerOfTwo32(pixelSize)) in getTransferAlignment() 40 return de::min(pixelSize, 8); in getTransferAlignment()
|
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | UnpackAlignmentTest.cpp | 104 unsigned int pixelSize; in testAlignment() local 105 getPixelSize(format, type, &pixelSize); in testAlignment() 106 for (unsigned int i = 0; i < pixelSize; i++) in testAlignment()
|
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/conversion/eot/ |
D | HdmxEncoder.java | 47 int ppem = hdmx.pixelSize(i); in encode() 63 result.writeByte(HEADER_SIZE + RECORD_SIZE * i, (byte) hdmx.pixelSize(i)); in encode()
|
/third_party/skia/third_party/externals/libjpeg-turbo/ |
D | turbojpeg.h | 1716 int pitch, int height, int pixelSize, 1721 int pitch, int height, int pixelSize, 1738 int width, int pitch, int height, int pixelSize,
|
/third_party/vk-gl-cts/modules/gles31/functional/ |
D | es31fTextureSpecificationTests.cpp | 432 int pixelSize = m_texFormat.getPixelSize(); in createTexture() local 434 int rowPitch = deAlign32(rowLength*pixelSize, m_alignment); in createTexture() 451 …&data[0] + m_skipImages*slicePitch + m_skipRows*rowPitch + m_skipPixels*pixelSize + m_offset), 4, … in createTexture() 525 int pixelSize = m_texFormat.getPixelSize(); in createTexture() local 537 int rowPitch = deAlign32(pixelSize*m_size, 4); in createTexture() 549 int rowPitch = deAlign32(rowLength*pixelSize, m_alignment); in createTexture() 558 …&data[0] + m_skipImages*slicePitch + m_skipRows*rowPitch + m_skipPixels*pixelSize + m_offset), 4, … in createTexture() 725 int pixelSize = m_texFormat.getPixelSize(); in createTexture() local 728 int rowPitch = deAlign32(rowLength*pixelSize, alignment); in createTexture()
|
/third_party/vk-gl-cts/external/openglcts/modules/gles3/ |
D | es3cNumberParsingTests.cpp | 393 const auto pixelSize = tcu::getPixelSize(textureFormat); in iterate() local 394 std::vector<deUint8> fbData (RENDERTARGET_WIDTH * RENDERTARGET_HEIGHT * pixelSize); in iterate() 396 if (pixelSize < 4) in iterate()
|
/third_party/vk-gl-cts/framework/common/ |
D | tcuTextureUtil.cpp | 721 inline void fillRow (const PixelBufferAccess& dst, int y, int z, int pixelSize, const deUint8* pixe… in fillRow() argument 723 DE_ASSERT(dst.getPixelPitch() == pixelSize); // only tightly packed in fillRow() 728 if (pixelSize == 8 && deIsAlignedPtr(dstPtr, pixelSize)) in fillRow() 736 else if (pixelSize == 4 && deIsAlignedPtr(dstPtr, pixelSize)) in fillRow() 747 for (int j = 0; j < pixelSize; j++) in fillRow() 748 dstPtr[i*pixelSize+j] = pixel[j]; in fillRow() 754 const int pixelSize = access.getFormat().getPixelSize(); in clear() local 756 const bool rowPixelsTightlyPacked = (pixelSize == pixelPitch); in clear() 759 pixelSize < CLEAR_OPTIMIZE_MAX_PIXEL_SIZE && rowPixelsTightlyPacked) in clear() 772 fillRow(access, y, z, pixelSize, &pixel.u8[0]); in clear() [all …]
|
/third_party/vk-gl-cts/external/openglcts/modules/gl/ |
D | gl4cSparseTexture2Tests.cpp | 1169 int pixelSize = mState.format.getPixelSize(); in verifyTextureData() local 1170 GLubyte* dataRegion = exp_data + ((x + y * width) * pixelSize); in verifyTextureData() 1171 GLubyte* outDataRegion = out_data + ((x + y * width) * pixelSize); in verifyTextureData() 1172 if (deMemCmp(dataRegion, outDataRegion, pixelSize) != 0) in verifyTextureData() 1214 int pixelSize = mState.format.getPixelSize(); in verifyTextureData() local 1215 GLubyte* dataRegion = exp_data + ((x + y * width) * pixelSize); in verifyTextureData() 1216 GLubyte* outDataRegion = out_data + ((x + y * width) * pixelSize); in verifyTextureData() 1217 if (deMemCmp(dataRegion, outDataRegion, pixelSize) != 0) in verifyTextureData() 1734 int pixelSize = mState.format.getPixelSize(); in verifyTextureDataExtended() local 1735 GLubyte* dataRegion = exp_data + ((x + y * width) * pixelSize); in verifyTextureDataExtended() [all …]
|
/third_party/skia/third_party/externals/dng_sdk/source/ |
D | dng_utils.cpp | 183 const uint32 pixelSize = TagTypeSize(pixelType); in ComputeBufferSize() local 189 if (!RoundUpForPixelSize(paddedWidth, pixelSize, &paddedWidth)) in ComputeBufferSize() 198 !SafeUint32Mult(bufferSize, pixelSize, &bufferSize) || in ComputeBufferSize()
|
D | dng_utils.h | 214 inline bool RoundUpForPixelSize (uint32 x, uint32 pixelSize, uint32 *result) in RoundUpForPixelSize() argument 218 switch (pixelSize) in RoundUpForPixelSize() 225 multiple = 16 / pixelSize; in RoundUpForPixelSize()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/shaders/ |
D | copy_buffer.metal | 35 uint pixelSize; 47 uint pixelSize; 179 #define CALC_BUFFER_READ_OFFSET(pixelSize) \ 181 gIndices.y * options.bufferRowPitch + gIndices.x * pixelSize) 183 #define CALC_BUFFER_WRITE_OFFSET(pixelSize) \ 184 options.bufferStartOffset + (gIndices.y * options.bufferRowPitch + gIndices.x * pixelSize) 1336 uint bufferOffset = CALC_BUFFER_READ_OFFSET(options.pixelSize); 1364 uint bufferOffset = CALC_BUFFER_READ_OFFSET(options.pixelSize); 1392 uint bufferOffset = CALC_BUFFER_READ_OFFSET(options.pixelSize); 1439 uint bufferOffset = CALC_BUFFER_WRITE_OFFSET(options.pixelSize); [all …]
|
/third_party/vk-gl-cts/external/openglcts/modules/common/ |
D | glcGLSLVectorConstructorTests.cpp | 494 const auto pixelSize = tcu::getPixelSize(textureFormat); in iterate() local 495 vector<deUint8> fbData (RENDERTARGET_WIDTH * RENDERTARGET_HEIGHT * pixelSize); in iterate() 497 if (pixelSize < 4) in iterate()
|
/third_party/skia/src/core/ |
D | SkMipmap.h | 92 static size_t AllocLevelsSize(int levelCount, size_t pixelSize);
|
/third_party/vk-gl-cts/external/openglcts/modules/glesext/geometry_shader/ |
D | esextcGeometryShaderLayeredRenderingBoundaryCondition.hpp | 60 virtual bool comparePixels(glw::GLint width, glw::GLint height, glw::GLint pixelSize,
|