Home
last modified time | relevance | path

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

12

/external/mesa3d/src/mesa/swrast/
Ds_blit.c138 GLint pixelSize; in blit_nearest() local
154 pixelSize = _mesa_get_format_bytes(readRb->Format); in blit_nearest()
157 pixelSize = 16; in blit_nearest()
175 pixelSize = 4; in blit_nearest()
181 pixelSize = 1; in blit_nearest()
189 switch (pixelSize) { in blit_nearest()
207 pixelSize); in blit_nearest()
268 srcBuffer = malloc(pixelSize * srcWidth); in blit_nearest()
273 dstBuffer = malloc(pixelSize * dstWidth); in blit_nearest()
297 memcpy(srcBuffer, srcRowStart, pixelSize * srcWidth); in blit_nearest()
[all …]
Ds_clear.c50 const GLuint pixelSize = _mesa_get_format_bytes(rb->Format); in clear_rgba_buffer() local
136 switch (pixelSize) { in clear_rgba_buffer()
Ds_zoom.c304 const GLint pixelSize = in zoom_span() local
309 rgbaSave = malloc(zoomed.end * pixelSize); in zoom_span()
315 memcpy(rgbaSave, zoomed.array->rgba, zoomed.end * pixelSize); in zoom_span()
322 memcpy(zoomed.array->rgba, rgbaSave, zoomed.end * pixelSize); in zoom_span()
/external/deqp/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(pixelSize * width / (float)m_alignment); in iterate()
/external/skia/third_party/etc1/
Detc1.cpp521 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()
Detc1.h76 etc1_uint32 pixelSize, etc1_uint32 stride, etc1_byte* pOut);
88 etc1_uint32 pixelSize, etc1_uint32 stride);
/external/skia/src/core/
DSkMipMap.cpp171 size_t SkMipMap::AllocLevelsSize(int levelCount, size_t pixelSize) { in AllocLevelsSize() argument
175 int64_t size = sk_64_mul(levelCount + 1, sizeof(Level)) + pixelSize; in AllocLevelsSize()
282 const size_t pixelSize = srcBM.info().bytesPerPixel(); in Build() local
291 srcPtr = (char*)srcPtr + pixelSize * 2; in Build()
292 dstPtr = (char*)dstPtr + pixelSize; in Build()
306 srcPtr = (char*)srcPtr + pixelSize * 2; in Build()
307 dstPtr = (char*)dstPtr + pixelSize; in Build()
DSkMipMap.h45 static size_t AllocLevelsSize(int levelCount, size_t pixelSize);
/external/jmonkeyengine/engine/src/core-data/Common/MatDefs/Hdr/
DLogLum.frag12 vec4 blocks(vec2 halfBlockSize, vec2 pixelSize, float numPixels){
20 for (float x = startUV.x; x < endUV.x; x += pixelSize.x){
21 for (float y = startUV.y; y < endUV.y; y += pixelSize.y){
/external/deqp/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(pixelSize * rowWidth / (float)m_alignment); 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(pixelSize * rowWidth / (float)m_align… in iterate()
[all …]
Des3fTextureSpecificationTests.cpp1080 int pixelSize = m_texFormat.getPixelSize(); in createTexture() local
1082 int rowPitch = deAlign32(rowLength*pixelSize, m_alignment); in createTexture()
1097 …m_height, 1, rowPitch, 0, &data[0] + m_skipRows*rowPitch + m_skipPixels*pixelSize), 4, colorA, col… in createTexture()
1149 int pixelSize = m_texFormat.getPixelSize(); in createTexture() local
1151 int rowPitch = deAlign32(rowLength*pixelSize, m_alignment); in createTexture()
1167 …&data[0] + m_skipImages*slicePitch + m_skipRows*rowPitch + m_skipPixels*pixelSize), 4, colorA, col… in createTexture()
1381 int pixelSize = m_texFormat.getPixelSize(); in createTexture() local
1391 data.resize(deAlign32(m_width*pixelSize, 4)*m_height); in createTexture()
1392 …:PixelBufferAccess(m_texFormat, m_width, m_height, 1, deAlign32(m_width*pixelSize, 4), 0, &data[0]… in createTexture()
1398 int rowPitch = deAlign32(rowLength*pixelSize, m_alignment); in createTexture()
[all …]
/external/jmonkeyengine/engine/src/core/com/jme3/post/
DHDRRenderer.java174 Vector2f pixelSize = new Vector2f(1f / srcW, 1f / srcH); in createLumShader() local
179 pixelSize.multLocal(2); in createLumShader()
180 blocks.set(blockSize.x / pixelSize.x, in createLumShader()
181 blockSize.y / pixelSize.y); in createLumShader()
185 blocks.set(blockSize.x / pixelSize.x, in createLumShader()
186 blockSize.y / pixelSize.y); in createLumShader()
199 mat.setVector2("PixelSize", pixelSize); in createLumShader()
/external/deqp/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()
DgluTexture.cpp43 int pixelSize = format.getPixelSize(); in computePixelStore() local
44 if (deIsPowerOfTwo32(pixelSize)) in computePixelStore()
45 return de::min(pixelSize, 8); in computePixelStore()
/external/libvncserver/common/
Dturbojpeg.c116 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()
611 int width, int pitch, int height, int pixelSize, unsigned char *jpegBuf, in tjCompress() argument
616 getPixelFormat(pixelSize, flags), &jpegBuf, &size, jpegSubsamp, jpegQual, in tjCompress()
846 int height, int pixelSize, int flags) in tjDecompress() argument
849 height, getPixelFormat(pixelSize, flags), flags); in tjDecompress()
Dturbojpeg.h510 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/common/
DtcuTextureUtil.cpp463 inline void fillRow (const PixelBufferAccess& dst, int y, int z, int pixelSize, const deUint8* pixe… in fillRow() argument
465 DE_ASSERT(dst.getPixelPitch() == pixelSize); // only tightly packed in fillRow()
470 if (pixelSize == 8 && deIsAlignedPtr(dstPtr, pixelSize)) in fillRow()
478 else if (pixelSize == 4 && deIsAlignedPtr(dstPtr, pixelSize)) in fillRow()
489 for (int j = 0; j < pixelSize; j++) in fillRow()
490 dstPtr[i*pixelSize+j] = pixel[j]; in fillRow()
496 const int pixelSize = access.getFormat().getPixelSize(); in clear() local
498 const bool rowPixelsTightlyPacked = (pixelSize == pixelPitch); in clear()
501 pixelSize < CLEAR_OPTIMIZE_MAX_PIXEL_SIZE && rowPixelsTightlyPacked) in clear()
514 fillRow(access, y, z, pixelSize, &pixel.u8[0]); in clear()
[all …]
/external/deqp/modules/gles31/functional/
Des31fTextureSpecificationTests.cpp428 int pixelSize = m_texFormat.getPixelSize(); in createTexture() local
430 int rowPitch = deAlign32(rowLength*pixelSize, m_alignment); in createTexture()
447 …&data[0] + m_skipImages*slicePitch + m_skipRows*rowPitch + m_skipPixels*pixelSize + m_offset), 4, … in createTexture()
521 int pixelSize = m_texFormat.getPixelSize(); in createTexture() local
533 int rowPitch = deAlign32(pixelSize*m_size, 4); in createTexture()
545 int rowPitch = deAlign32(rowLength*pixelSize, m_alignment); in createTexture()
554 …&data[0] + m_skipImages*slicePitch + m_skipRows*rowPitch + m_skipPixels*pixelSize + m_offset), 4, … in createTexture()
721 int pixelSize = m_texFormat.getPixelSize(); in createTexture() local
724 int rowPitch = deAlign32(rowLength*pixelSize, alignment); in createTexture()
Des31fShaderImageLoadStoreTests.cpp730 const int pixelSize = src.getFormat().getPixelSize(); in uploadTexture() local
733 if (deIsPowerOfTwo32(pixelSize)) in uploadTexture()
1305 const int pixelSize = imageFormat.getPixelSize(); in replaceBadFloatReinterpretValues() local
1312 DE_ASSERT(pixelSize % imageNumChannels == 0); in replaceBadFloatReinterpretValues()
1323 void *const pixelData = (deUint8*)data + y*rowPitch + x*pixelSize; in replaceBadFloatReinterpretValues()
1327 void *const channelData = (deUint8*)pixelData + c*pixelSize/imageNumChannels; in replaceBadFloatReinterpretValues()
1490 const int pixelSize = m_imageFormat.getPixelSize(); in iterate() local
1503 void *const pixelData = (deUint8*)data + y*rowPitch + x*pixelSize; in iterate()
1505 deMemcpy(scratchAccess.getDataPtr(), pixelData, pixelSize); in iterate()
1512 deMemcpy(pixelData, scratchAccess.getDataPtr(), pixelSize); in iterate()
/external/skia/src/effects/
DSkMorphologyImageFilter.cpp471 float pixelSize = 0.0f; in setData() local
474 pixelSize = 1.0f / texture.width(); in setData()
477 pixelSize = 1.0f / texture.height(); in setData()
482 pdman.set1f(fPixelSizeUni, pixelSize); in setData()
/external/deqp/modules/gles2/performance/
Des2pTextureUploadTests.cpp218 int pixelSize = texFmt.getPixelSize(); in init() local
219 int stride = deAlign32(pixelSize*m_texSize, m_alignment); in init()
/external/v8/benchmarks/
Draytrace.js882 var pixelSize = "5,5".split(','); // $F('pixelSize').split(',');
893 pixelWidth: pixelSize[0],
894 pixelHeight: pixelSize[1],
/external/deqp/modules/glshared/
DglsLongStressCase.cpp127 const int pixelSize = format.getPixelSize(); in computePixelStore() local
128 if (deIsPowerOfTwo32(pixelSize)) in computePixelStore()
129 return de::min(pixelSize, 8); in computePixelStore()
498 const int pixelSize = internalFormat == GL_RGBA ? 4 in getApproxMemUsageDiff() local
505 …memUsageApproxAfter += de::max(1, width>>level) * de::max(1, height>>level) * pixelSize * (m_type … in getApproxMemUsageDiff()
/external/deqp/framework/qphelper/
DqpTestLog.c894 int pixelSize = imageFormat == QP_IMAGE_FORMAT_RGB888 ? 3 : 4; in qpTestLog_writeImage() local
895 int packedStride = pixelSize*width; in qpTestLog_writeImage()
906 …py(&compressedBuffer.data[packedStride*row], &((const deUint8*)data)[row*stride], pixelSize*width); in qpTestLog_writeImage()
/external/deqp/framework/referencerenderer/
DrrRasterizer.cpp134 const deUint64 pixelSize = 1ll << (RASTERIZER_SUBPIXEL_BITS); in isTheCenterOfTheFragment() local
136 return ((a.x() & (pixelSize-1)) == halfPixel && in isTheCenterOfTheFragment()
137 (a.y() & (pixelSize-1)) == halfPixel); in isTheCenterOfTheFragment()

12