Home
last modified time | relevance | path

Searched refs:pixelSize (Results 1 – 25 of 83) sorted by relevance

1234

/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/sparse_resources/
DvktSparseResourcesImageBlockShapes.cpp230 …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/
DHdmxTests.java41 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/
Dhb-ot-hdmx-table.hh49 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/
DvktImageSubresourceLayoutTests.cpp71 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/
Des2fReadPixelsTests.cpp66 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/
Detc1.cpp518 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()
Detc1.h76 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/
DvktDrawImageObjectUtil.cpp44 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 …]
DvktDrawImageObjectUtil.hpp43 static void pack (int pixelSize,
52 static void unpack (int pixelSize,
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fReadPixelsTests.cpp88 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 …]
Des3fTextureSpecificationTests.cpp1080 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/
DgluPixelTransfer.cpp38 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/
DUnpackAlignmentTest.cpp104 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/
DHdmxEncoder.java47 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/
Dturbojpeg.h1716 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/
Des31fTextureSpecificationTests.cpp432 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/
Des3cNumberParsingTests.cpp393 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/
DtcuTextureUtil.cpp721 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/
Dgl4cSparseTexture2Tests.cpp1169 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/
Ddng_utils.cpp183 const uint32 pixelSize = TagTypeSize(pixelType); in ComputeBufferSize() local
189 if (!RoundUpForPixelSize(paddedWidth, pixelSize, &paddedWidth)) in ComputeBufferSize()
198 !SafeUint32Mult(bufferSize, pixelSize, &bufferSize) || in ComputeBufferSize()
Ddng_utils.h214 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/
Dcopy_buffer.metal35 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/
DglcGLSLVectorConstructorTests.cpp494 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/
DSkMipmap.h92 static size_t AllocLevelsSize(int levelCount, size_t pixelSize);
/third_party/vk-gl-cts/external/openglcts/modules/glesext/geometry_shader/
DesextcGeometryShaderLayeredRenderingBoundaryCondition.hpp60 virtual bool comparePixels(glw::GLint width, glw::GLint height, glw::GLint pixelSize,

1234