Home
last modified time | relevance | path

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

123

/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/external/vulkancts/modules/vulkan/query_pool/
DvktQueryPoolImageObjectUtil.cpp43 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()
133 vk::VkDeviceSize offsetDepthDst = d * (pixelSize * width * height); in unpack()
139 deMemcpy(dstRow, srcRow, static_cast<size_t>(pixelSize * width)); in unpack()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/dynamic_state/
DvktDynamicStateImageObjectUtil.cpp43 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/deqp/external/vulkancts/modules/vulkan/draw/
DvktDrawImageObjectUtil.cpp43 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 …]
DvktDrawImageObjectUtil.hpp42 static void pack (int pixelSize,
51 static void unpack (int pixelSize,
/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(float(pixelSize * width) / (float)m_alignmen… 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/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(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()
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/opencv3/samples/wp8/OcvImageManipulation/PhoneXamlDirect3DApp1/PhoneXamlDirect3DApp1Comp/
DQuadRenderer.cpp17 int pixelSize = 4; in CreateTextureFromByte() local
37 data.SysMemPitch = pixelSize*width; in CreateTextureFromByte()
38 data.SysMemSlicePitch = pixelSize*width*height; in CreateTextureFromByte()
62 int nRowSpan = width * pixelSize; in CreateTextureFromByte()
/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()
/external/opencv3/samples/wp8/OcvRotatingCube/PhoneXamlDirect3DApp1/PhoneXamlDirect3DApp1Comp/
DCubeRenderer.cpp18 int pixelSize = 4; in CreateTextureFromByte() local
38 data.SysMemPitch = pixelSize*width; in CreateTextureFromByte()
39 data.SysMemSlicePitch = pixelSize*width*height; in CreateTextureFromByte()
63 int nRowSpan = width * pixelSize; in CreateTextureFromByte()
/external/libjpeg-turbo/java/org/libjpegturbo/turbojpeg/
DTJ.java223 return pixelSize[pixelFormat]; in getPixelSize()
226 private static final int[] pixelSize = { field in TJ
DTJDecompressor.java436 int pixelSize = TJ.getPixelSize(pixelFormat); in decompress() local
440 pitch = scaledWidth * pixelSize; in decompress()
785 int pixelSize = sm.getPixelStride(); in decompress() local
786 if (pixelSize != TJ.getPixelSize(pixelFormat)) in decompress()
/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()
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()
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/libjpeg-turbo/
Dturbojpeg.h1507 int width, int pitch, int height, int pixelSize, unsigned char *dstBuf,
1511 unsigned char *srcBuf, int width, int pitch, int height, int pixelSize,
1527 int width, int pitch, int height, int pixelSize, int flags);
/external/deqp/framework/common/
DtcuTextureUtil.cpp665 inline void fillRow (const PixelBufferAccess& dst, int y, int z, int pixelSize, const deUint8* pixe… in fillRow() argument
667 DE_ASSERT(dst.getPixelPitch() == pixelSize); // only tightly packed in fillRow()
672 if (pixelSize == 8 && deIsAlignedPtr(dstPtr, pixelSize)) in fillRow()
680 else if (pixelSize == 4 && deIsAlignedPtr(dstPtr, pixelSize)) in fillRow()
691 for (int j = 0; j < pixelSize; j++) in fillRow()
692 dstPtr[i*pixelSize+j] = pixel[j]; in fillRow()
698 const int pixelSize = access.getFormat().getPixelSize(); in clear() local
700 const bool rowPixelsTightlyPacked = (pixelSize == pixelPitch); in clear()
703 pixelSize < CLEAR_OPTIMIZE_MAX_PIXEL_SIZE && rowPixelsTightlyPacked) in clear()
716 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()
/external/skia/src/core/
DSkMipMap.h52 static size_t AllocLevelsSize(int levelCount, size_t pixelSize);
/external/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()
/external/opencv3/modules/videoio/src/
Dcap_openni2.cpp365 double pixelSize = 0; in readCamerasParams() local
366 …if (depth.getProperty<double>(XN_STREAM_PROPERTY_ZERO_PLANE_PIXEL_SIZE, &pixelSize) != openni::STA… in readCamerasParams()
373 pixelSize *= 2.0; // in mm in readCamerasParams()
393 depthFocalLength_VGA = (int)((double)zeroPlanDistance / (double)pixelSize); in readCamerasParams()

123