Searched defs:pixelSize (Results 1 - 25 of 41) sorted by relevance

12

/external/deqp/framework/opengl/
H A DgluPixelTransfer.cpp38 int pixelSize = format.getPixelSize(); local
39 if (deIsPowerOfTwo32(pixelSize))
40 return de::min(pixelSize, 8);
H A DgluTexture.cpp43 int pixelSize = format.getPixelSize(); local
44 if (deIsPowerOfTwo32(pixelSize))
45 return de::min(pixelSize, 8);
/external/mesa3d/src/mesa/swrast/
H A Ds_clear.c50 const GLuint pixelSize = _mesa_get_format_bytes(rb->Format); local
136 switch (pixelSize) {
H A Ds_zoom.c303 const GLint pixelSize = local
308 rgbaSave = malloc(zoomed.end * pixelSize);
314 memcpy(rgbaSave, zoomed.array->rgba, zoomed.end * pixelSize);
321 memcpy(zoomed.array->rgba, rgbaSave, zoomed.end * pixelSize);
H A Ds_blit.c144 GLint pixelSize = 0; local
176 pixelSize = 4;
185 pixelSize = 1;
212 pixelSize = _mesa_get_format_bytes(readRb->Format);
215 pixelSize = 16;
220 switch (pixelSize) {
238 pixelSize);
315 memcpy(srcBuffer, srcRowStart, pixelSize * srcWidth);
342 memcpy(dstRowStart, dstBuffer, pixelSize * dstWidth);
535 GLint pixelSize; local
[all...]
/external/deqp/modules/gles2/functional/
H A Des2fReadPixelsTests.cpp66 void getFormatInfo (tcu::TextureFormat& format, GLint& glFormat, GLint& glType, int& pixelSize);
144 void ReadPixelsTest::getFormatInfo (tcu::TextureFormat& format, GLint& glFormat, GLint& glType, int& pixelSize) argument
157 pixelSize = format.getPixelSize();
162 pixelSize = 1 * 4;
177 int pixelSize; local
181 getFormatInfo(format, glFormat, glType, pixelSize);
208 const int rowPitch = m_alignment * deCeilFloatToInt32(float(pixelSize * width) / (float)m_alignment);
/external/deqp/modules/gles3/functional/
H A 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) argument
218 pixelSize = format.getPixelSize();
221 void ReadPixelsTest::clearColor (tcu::Texture2D& reference, vector<deUint8>& pixelData, int pixelSize) argument
314 const int rowPitch = m_alignment * deCeilFloatToInt32(float(pixelSize * rowWidth) / (float)m_alignment);
330 int pixelSize; local
332 getFormatInfo(format, pixelSize);
353 clearColor(reference, pixelData, pixelSize);
356 const int rowPitch = m_alignment * deCeilFloatToInt32((float)(pixelSize * rowWidt
[all...]
/external/deqp/external/vulkancts/modules/vulkan/draw/
H A DvktDrawImageObjectUtil.cpp43 void MemoryOp::pack (int pixelSize, argument
56 rowPitch = width * pixelSize;
70 if (rowPitch == static_cast<vk::VkDeviceSize>(width * pixelSize) &&
82 vk::VkDeviceSize offsetDepthSrc = d * (pixelSize * width * height);
88 srcRow += pixelSize * width;
95 void MemoryOp::unpack (int pixelSize, argument
108 rowPitch = width * pixelSize;
122 if (rowPitch == static_cast<vk::VkDeviceSize>(width * pixelSize) &&
132 vk::VkDeviceSize offsetDepthDst = d * (pixelSize * width * height);
138 deMemcpy(dstRow, srcRow, static_cast<size_t>(pixelSize * widt
282 int pixelSize = 0; local
666 int pixelSize = 0; local
[all...]
/external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/
H A DTJ.java221 return pixelSize[pixelFormat];
224 private static final int[] pixelSize = { field in class:TJ
/external/deqp/modules/gles2/performance/
H A Des2pTextureUploadTests.cpp218 int pixelSize = texFmt.getPixelSize(); local
219 int stride = deAlign32(pixelSize*m_texSize, m_alignment);
/external/dng_sdk/source/
H A Ddng_utils.cpp183 const uint32 pixelSize = TagTypeSize(pixelType); local
189 if (!RoundUpForPixelSize(paddedWidth, pixelSize, &paddedWidth))
198 !SafeUint32Mult(bufferSize, pixelSize, &bufferSize) ||
H A Ddng_utils.h214 inline bool RoundUpForPixelSize (uint32 x, uint32 pixelSize, uint32 *result) argument
218 switch (pixelSize)
225 multiple = 16 / pixelSize;
/external/libvncserver/common/
H A Dturbojpeg.c116 static int getPixelFormat(int pixelSize, int flags) argument
118 if(pixelSize==1) return TJPF_GRAY;
119 if(pixelSize==3)
124 if(pixelSize==4)
615 int width, int pitch, int height, int pixelSize, unsigned char *jpegBuf,
620 getPixelFormat(pixelSize, flags), &jpegBuf, &size, jpegSubsamp, jpegQual,
850 int height, int pixelSize, int flags)
853 height, getPixelFormat(pixelSize, flags), flags);
614 tjCompress(tjhandle handle, unsigned char *srcBuf, int width, int pitch, int height, int pixelSize, unsigned char *jpegBuf, unsigned long *jpegSize, int jpegSubsamp, int jpegQual, int flags) argument
848 tjDecompress(tjhandle handle, unsigned char *jpegBuf, unsigned long jpegSize, unsigned char *dstBuf, int width, int pitch, int height, int pixelSize, int flags) argument
/external/skia/src/core/
H A DSkMipMap.cpp474 size_t SkMipMap::AllocLevelsSize(int levelCount, size_t pixelSize) { argument
478 int64_t size = sk_64_mul(levelCount + 1, sizeof(Level)) + pixelSize;
/external/skia/src/effects/
H A DSkMorphologyImageFilter.cpp258 // coord.x -= radius * pixelSize;
261 // highBound = min(highBound, coord.x + (width-1) * pixelSize);
271 // coord.x += pixelSize;
298 float pixelSize = 0.0f; local
301 pixelSize = 1.0f / texture.width();
304 pixelSize = 1.0f / texture.height();
309 pdman.set1f(fPixelSizeUni, pixelSize);
315 pdman.set2f(fRangeUni, 1.0f - (range[1]*pixelSize), 1.0f - (range[0]*pixelSize));
317 pdman.set2f(fRangeUni, range[0] * pixelSize, rang
[all...]
/external/deqp/framework/referencerenderer/
H A DrrRasterizer.cpp134 const deUint64 pixelSize = 1ll << (RASTERIZER_SUBPIXEL_BITS); local
136 return ((a.x() & (pixelSize-1)) == halfPixel &&
137 (a.y() & (pixelSize-1)) == halfPixel);
/external/deqp/modules/gles31/functional/
H A Des31fTextureSpecificationTests.cpp428 int pixelSize = m_texFormat.getPixelSize(); local
430 int rowPitch = deAlign32(rowLength*pixelSize, m_alignment);
447 tcu::fillWithGrid(tcu::PixelBufferAccess(m_texFormat, m_size, m_size, m_depth, rowPitch, slicePitch, &data[0] + m_skipImages*slicePitch + m_skipRows*rowPitch + m_skipPixels*pixelSize + m_offset), 4, colorA, colorB);
521 int pixelSize = m_texFormat.getPixelSize(); local
533 int rowPitch = deAlign32(pixelSize*m_size, 4);
545 int rowPitch = deAlign32(rowLength*pixelSize, m_alignment);
554 tcu::fillWithGrid(tcu::PixelBufferAccess(m_texFormat, m_subW, m_subH, m_subD, rowPitch, slicePitch, &data[0] + m_skipImages*slicePitch + m_skipRows*rowPitch + m_skipPixels*pixelSize + m_offset), 4, colorA, colorB);
721 int pixelSize = m_texFormat.getPixelSize(); local
724 int rowPitch = deAlign32(rowLength*pixelSize, alignment);
/external/skia/src/image/
H A DSkImage_Gpu.cpp682 size_t pixelSize = 0; local
685 pixelSize = SkAlign8(pixmap.getSafeSize());
708 pixelSize = SkAlign8(SkAutoPixmapStorage::AllocSize(info, nullptr));
745 // We already initialized pixelSize to the size of the base level.
755 pixelSize += SkAlign8(SkAutoPixmapStorage::AllocSize(mipInfo, nullptr));
765 size += pixelSize;
861 SkASSERT(mipLevelPtr < bufferAsCharPtr + pixelOffset + pixelSize);
864 bufferAsCharPtr + pixelOffset + pixelSize);
/external/skia/third_party/etc1/
H A Detc1.cpp517 // pixel (x,y) is at pIn + pixelSize * x + stride * y + redOffset;
521 etc1_uint32 pixelSize, etc1_uint32 stride, etc1_byte* pOut) {
522 if (pixelSize < 2 || pixelSize > 3) {
548 const etc1_byte* p = pIn + pixelSize * x + stride * (y + cy);
549 if (pixelSize == 3) {
557 p += pixelSize;
572 // pixel (x,y) is at pIn + pixelSize * x + stride * y + redOffset. Must be
578 etc1_uint32 pixelSize, etc1_uint32 stride) {
579 if (pixelSize <
520 etc1_encode_image(const etc1_byte* pIn, etc1_uint32 width, etc1_uint32 height, etc1_uint32 pixelSize, etc1_uint32 stride, etc1_byte* pOut) argument
576 etc1_decode_image(const etc1_byte* pIn, etc1_byte* pOut, etc1_uint32 width, etc1_uint32 height, etc1_uint32 pixelSize, etc1_uint32 stride) argument
[all...]
/external/deqp/external/vulkancts/modules/vulkan/api/
H A DvktApiImageClearingTests.cpp167 std::vector<deUint32> getImageMipLevelSizes (const deUint32 pixelSize, const VkExtent3D& baseExtent, const deUint32 numMipLevels, const deUint32 perLevelAlignment = 1u) argument
174 results[mipLevel] = static_cast<deUint32>(extent.width * extent.height * extent.depth * pixelSize);
909 const deUint32 pixelSize = getPixelSize(tcuFormat); local
913 alignment = lowestCommonMultiple(pixelSize, alignment); // alignment must be multiple of pixel size, if not D/S.
915 const std::vector<deUint32> mipLevelSizes = getImageMipLevelSizes(pixelSize, m_params.imageExtent, m_imageMipLevels, alignment);
/external/deqp/external/vulkancts/modules/vulkan/image/
H A DvktImageMutableTests.cpp1224 const VkDeviceSize pixelSize = tcu::getPixelSize(mapVkFormat(m_caseDef.imageFormat)); local
1225 const VkDeviceSize layerSize = m_caseDef.size.x() * m_caseDef.size.y() * m_caseDef.size.z() * pixelSize;
/external/deqp/external/vulkancts/modules/vulkan/pipeline/
H A DvktPipelineRenderToImageTests.cpp1231 vector<VkDeviceSize> getPerMipLevelStorageSize (const vector<IVec4>& mipLevelSizes, const VkDeviceSize pixelSize) argument
1237 storageSizes.push_back(deAlign64(pixelSize * product(*it), levelAlignment));
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/
H A DvktOpaqueTypeIndexingTests.cpp551 const size_t pixelSize = (size_t)format.getPixelSize(); local
554 const size_t stagingBufferSize = pixelSize*numReplicas;
573 deMemcpy((deUint8*)alloc->getHostPtr() + ndx*pixelSize, colorValue, pixelSize);
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/
H A DvktShaderRenderBuiltinVarTests.cpp1340 VkDeviceSize pixelSize = getPixelSize(mapVkFormat(VK_FORMAT_R32G32B32A32_SFLOAT)); local
1346 m_sampleCount * m_renderSize.x() * m_renderSize.y() * pixelSize, // VkDeviceSize size
/external/deqp/framework/qphelper/
H A DqpTestLog.c899 int pixelSize = imageFormat == QP_IMAGE_FORMAT_RGB888 ? 3 : 4; local
900 int packedStride = pixelSize*width;
911 memcpy(&compressedBuffer.data[packedStride*row], &((const deUint8*)data)[row*stride], (size_t)(pixelSize*width));

Completed in 757 milliseconds

12