/external/deqp/external/vulkancts/modules/vulkan/draw/ |
D | vktDrawImageObjectUtil.cpp | 43 void MemoryOp::pack (int pixelSize, in pack() argument 56 rowPitch = width * pixelSize; in pack() 70 if (rowPitch == static_cast<vk::VkDeviceSize>(width * pixelSize) && in pack() 82 vk::VkDeviceSize offsetDepthSrc = d * (pixelSize * width * height); in pack() 88 srcRow += pixelSize * width; in pack() 95 void MemoryOp::unpack (int pixelSize, in unpack() argument 108 rowPitch = width * pixelSize; in unpack() 122 if (rowPitch == static_cast<vk::VkDeviceSize>(width * pixelSize) && in unpack() 132 vk::VkDeviceSize offsetDepthDst = d * (pixelSize * width * height); in unpack() 138 deMemcpy(dstRow, srcRow, static_cast<size_t>(pixelSize * width)); in unpack() [all …]
|
/external/mesa3d/src/mesa/swrast/ |
D | s_blit.c | 144 GLint pixelSize = 0; in blit_nearest() local 176 pixelSize = 4; in blit_nearest() 185 pixelSize = 1; in blit_nearest() 212 pixelSize = _mesa_get_format_bytes(readRb->Format); in blit_nearest() 215 pixelSize = 16; in blit_nearest() 220 switch (pixelSize) { in blit_nearest() 238 pixelSize); in blit_nearest() 315 memcpy(srcBuffer, srcRowStart, pixelSize * srcWidth); in blit_nearest() 342 memcpy(dstRowStart, dstBuffer, pixelSize * dstWidth); in blit_nearest() 535 GLint pixelSize; in blit_linear() local [all …]
|
D | s_clear.c | 50 const GLuint pixelSize = _mesa_get_format_bytes(rb->Format); in clear_rgba_buffer() local 136 switch (pixelSize) { in clear_rgba_buffer()
|
D | s_zoom.c | 303 const GLint pixelSize = in zoom_span() local 308 rgbaSave = malloc(zoomed.end * pixelSize); in zoom_span() 314 memcpy(rgbaSave, zoomed.array->rgba, zoomed.end * pixelSize); in zoom_span() 321 memcpy(zoomed.array->rgba, rgbaSave, zoomed.end * pixelSize); in zoom_span()
|
/external/deqp/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()
|
/external/skqp/third_party/etc1/ |
D | etc1.cpp | 521 etc1_uint32 pixelSize, etc1_uint32 stride, etc1_byte* pOut) { in etc1_encode_image() argument 522 if (pixelSize < 2 || pixelSize > 3) { in etc1_encode_image() 548 const etc1_byte* p = pIn + pixelSize * x + stride * (y + cy); in etc1_encode_image() 549 if (pixelSize == 3) { in etc1_encode_image() 557 p += pixelSize; in etc1_encode_image() 578 etc1_uint32 pixelSize, etc1_uint32 stride) { in etc1_decode_image() argument 579 if (pixelSize < 2 || pixelSize > 3) { in etc1_decode_image() 601 etc1_byte* p = pOut + pixelSize * x + stride * (y + cy); in etc1_decode_image() 602 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);
|
/external/deqp/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 …]
|
/external/python/cpython2/Lib/plat-mac/ |
D | PixMapWrapper.py | 174 self.pixelSize = 32 177 self.pixelSize = 16 179 self.rowBytes = width*self.pixelSize/8 184 if (format == imgformat.macrgb and self.pixelSize == 32) or \
|
/external/python/cpython2/Mac/Demo/imgbrowse/ |
D | mac_image.py | 36 pixelType, pixelSize, \ 46 print 'pixeltype: %d, size %d'%(pixelType, pixelSize)
|
/external/libvncserver/common/ |
D | turbojpeg.c | 116 static int getPixelFormat(int pixelSize, int flags) in getPixelFormat() argument 118 if(pixelSize==1) return TJPF_GRAY; in getPixelFormat() 119 if(pixelSize==3) in getPixelFormat() 124 if(pixelSize==4) in getPixelFormat() 615 int width, int pitch, int height, int pixelSize, unsigned char *jpegBuf, in tjCompress() argument 620 getPixelFormat(pixelSize, flags), &jpegBuf, &size, jpegSubsamp, jpegQual, in tjCompress() 850 int height, int pixelSize, int flags) in tjDecompress() argument 853 height, getPixelFormat(pixelSize, flags), flags); in tjDecompress()
|
D | turbojpeg.h | 510 int width, int pitch, int height, int pixelSize, unsigned char *dstBuf, 518 int width, int pitch, int height, int pixelSize, int flags);
|
/external/deqp/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()
|
/external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/ |
D | TJ.java | 221 return pixelSize[pixelFormat]; in getPixelSize() 224 private static final int[] pixelSize = { field in TJ
|
D | TJDecompressor.java | 437 int pixelSize = TJ.getPixelSize(pixelFormat); in decompress() local 441 pitch = scaledWidth * pixelSize; in decompress() 788 int pixelSize = sm.getPixelStride(); in decompress() local 789 if (pixelSize != TJ.getPixelSize(pixelFormat)) in decompress()
|
/external/skqp/src/effects/ |
D | SkMorphologyImageFilter.cpp | 297 float pixelSize = 0.0f; in onSetData() local 300 pixelSize = 1.0f / texture.width(); in onSetData() 303 pixelSize = 1.0f / texture.height(); in onSetData() 308 pdman.set1f(fPixelSizeUni, pixelSize); in onSetData() 314 pdman.set2f(fRangeUni, 1.0f - (range[1]*pixelSize), 1.0f - (range[0]*pixelSize)); in onSetData() 316 pdman.set2f(fRangeUni, range[0] * pixelSize, range[1] * pixelSize); in onSetData()
|
/external/skia/src/effects/ |
D | SkMorphologyImageFilter.cpp | 297 float pixelSize = 0.0f; in onSetData() local 300 pixelSize = 1.0f / texture.width(); in onSetData() 303 pixelSize = 1.0f / texture.height(); in onSetData() 308 pdman.set1f(fPixelSizeUni, pixelSize); in onSetData() 314 pdman.set2f(fRangeUni, 1.0f - (range[1]*pixelSize), 1.0f - (range[0]*pixelSize)); in onSetData() 316 pdman.set2f(fRangeUni, range[0] * pixelSize, range[1] * pixelSize); in onSetData()
|
/external/libjpeg-turbo/ |
D | turbojpeg.h | 1510 int width, int pitch, int height, int pixelSize, unsigned char *dstBuf, 1514 unsigned char *srcBuf, int width, int pitch, int height, int pixelSize, 1530 int width, int pitch, int height, int pixelSize, int flags);
|
/external/deqp/framework/common/ |
D | tcuTextureUtil.cpp | 683 inline void fillRow (const PixelBufferAccess& dst, int y, int z, int pixelSize, const deUint8* pixe… in fillRow() argument 685 DE_ASSERT(dst.getPixelPitch() == pixelSize); // only tightly packed in fillRow() 690 if (pixelSize == 8 && deIsAlignedPtr(dstPtr, pixelSize)) in fillRow() 698 else if (pixelSize == 4 && deIsAlignedPtr(dstPtr, pixelSize)) in fillRow() 709 for (int j = 0; j < pixelSize; j++) in fillRow() 710 dstPtr[i*pixelSize+j] = pixel[j]; in fillRow() 716 const int pixelSize = access.getFormat().getPixelSize(); in clear() local 718 const bool rowPixelsTightlyPacked = (pixelSize == pixelPitch); in clear() 721 pixelSize < CLEAR_OPTIMIZE_MAX_PIXEL_SIZE && rowPixelsTightlyPacked) in clear() 734 fillRow(access, y, z, pixelSize, &pixel.u8[0]); in clear() [all …]
|
/external/deqp/modules/gles31/functional/ |
D | es31fTextureSpecificationTests.cpp | 430 int pixelSize = m_texFormat.getPixelSize(); in createTexture() local 432 int rowPitch = deAlign32(rowLength*pixelSize, m_alignment); in createTexture() 449 …&data[0] + m_skipImages*slicePitch + m_skipRows*rowPitch + m_skipPixels*pixelSize + m_offset), 4, … in createTexture() 523 int pixelSize = m_texFormat.getPixelSize(); in createTexture() local 535 int rowPitch = deAlign32(pixelSize*m_size, 4); in createTexture() 547 int rowPitch = deAlign32(rowLength*pixelSize, m_alignment); in createTexture() 556 …&data[0] + m_skipImages*slicePitch + m_skipRows*rowPitch + m_skipPixels*pixelSize + m_offset), 4, … in createTexture() 723 int pixelSize = m_texFormat.getPixelSize(); in createTexture() local 726 int rowPitch = deAlign32(rowLength*pixelSize, alignment); in createTexture()
|
/external/deqp/external/openglcts/modules/gl/ |
D | gl4cSparseTexture2Tests.cpp | 1130 int pixelSize = mState.format.getPixelSize(); in verifyTextureData() local 1131 GLubyte* dataRegion = exp_data + ((x + y * width) * pixelSize); in verifyTextureData() 1132 GLubyte* outDataRegion = out_data + ((x + y * width) * pixelSize); in verifyTextureData() 1133 if (deMemCmp(dataRegion, outDataRegion, pixelSize) != 0) in verifyTextureData() 1175 int pixelSize = mState.format.getPixelSize(); in verifyTextureData() local 1176 GLubyte* dataRegion = exp_data + ((x + y * width) * pixelSize); in verifyTextureData() 1177 GLubyte* outDataRegion = out_data + ((x + y * width) * pixelSize); in verifyTextureData() 1178 if (deMemCmp(dataRegion, outDataRegion, pixelSize) != 0) in verifyTextureData() 1695 int pixelSize = mState.format.getPixelSize(); in verifyTextureDataExtended() local 1696 GLubyte* dataRegion = exp_data + ((x + y * width) * pixelSize); in verifyTextureDataExtended() [all …]
|
/external/skqp/src/image/ |
D | SkImage_Gpu.cpp | 796 size_t pixelSize = 0; in getDeferredTextureImageData() local 799 pixelSize = SkAlign8(pixmap.computeByteSize()); in getDeferredTextureImageData() 822 pixelSize = SkAlign8(SkAutoPixmapStorage::AllocSize(info, nullptr)); in getDeferredTextureImageData() 869 pixelSize += SkAlign8(SkAutoPixmapStorage::AllocSize(mipInfo, nullptr)); in getDeferredTextureImageData() 879 size += pixelSize; in getDeferredTextureImageData() 975 SkASSERT(mipLevelPtr < bufferAsCharPtr + pixelOffset + pixelSize); in getDeferredTextureImageData() 978 bufferAsCharPtr + pixelOffset + pixelSize); in getDeferredTextureImageData()
|
/external/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()
|
/external/skqp/src/core/ |
D | SkMipMap.h | 80 static size_t AllocLevelsSize(int levelCount, size_t pixelSize);
|