Home
last modified time | relevance | path

Searched refs:pixelBytes (Results 1 – 25 of 84) sorted by relevance

1234

/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/
DFormat.h41 GLuint pixelBytes,
95 GLuint pixelBytes; member
139 GLuint pixelBytes, in Format() argument
160 pixelBytes(pixelBytes), in Format()
Drenderer_utils.cpp233 params.area.width * sourceFormat.pixelBytes); in PackPixels()
248 destWithOffset + y * params.outputPitch + x * params.destFormat->pixelBytes; in PackPixels()
249 const uint8_t *src = source + y * inputPitch + x * sourceFormat.pixelBytes; in PackPixels()
275 destWithOffset + y * params.outputPitch + x * params.destFormat->pixelBytes; in PackPixels()
276 const uint8_t *src = source + y * inputPitch + x * sourceFormat.pixelBytes; in PackPixels()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/
DFormat.h41 GLuint pixelBytes,
99 GLuint pixelBytes; member
145 GLuint pixelBytes, in Format() argument
168 pixelBytes(pixelBytes), in Format()
Dd3d_format.h23 D3DFormat(GLuint pixelBytes,
37 GLuint pixelBytes; member
Dd3d_format.cpp23 : pixelBytes(0), in D3DFormat()
47 : pixelBytes(bits / 8), in D3DFormat()
Drenderer_utils.cpp320 xAxisPitch = sourceFormat.pixelBytes; in PackPixels()
341 yAxisPitch = sourceFormat.pixelBytes; in PackPixels()
351 xAxisPitch = -static_cast<int>(sourceFormat.pixelBytes); in PackPixels()
353 source += sourceFormat.pixelBytes * (params.area.width - 1); in PackPixels()
363 yAxisPitch = -static_cast<int>(sourceFormat.pixelBytes); in PackPixels()
367 sourceFormat.pixelBytes * (params.area.width - 1); in PackPixels()
380 params.area.width * sourceFormat.pixelBytes); in PackPixels()
395 destWithOffset + y * params.outputPitch + x * params.destFormat->pixelBytes; in PackPixels()
422 destWithOffset + y * params.outputPitch + x * params.destFormat->pixelBytes; in PackPixels()
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
Dvk_format_utils.cpp172 ASSERT(format.pixelBytes != 0); in getImageCopyBufferAlignment()
173 const size_t texelSize = format.pixelBytes; in getImageCopyBufferAlignment()
303 size_t pixelBytes = bufferFormat.pixelBytes; in GetVertexInputAlignment() local
304 return format.vkBufferFormatIsPacked ? pixelBytes : (pixelBytes / bufferFormat.channelCount); in GetVertexInputAlignment()
DVertexArrayVk.cpp46 unsigned int formatSize = angleFormat.pixelBytes; in BindingIsAligned()
246 ASSERT(binding.getStride() % (srcFormat.pixelBytes / srcFormat.channelCount) == 0); in convertVertexBufferGPU()
248 unsigned srcFormatSize = srcFormat.pixelBytes; in convertVertexBufferGPU()
249 unsigned destFormatSize = destFormat.pixelBytes; in convertVertexBufferGPU()
291 unsigned srcFormatSize = vertexFormat.angleFormat().pixelBytes; in convertVertexBufferCPU()
292 unsigned dstFormatSize = vertexFormat.bufferFormat().pixelBytes; in convertVertexBufferCPU()
446 stride = vertexFormat.bufferFormat().pixelBytes; in syncDirtyAttrib()
500 stride = vertexFormat.bufferFormat().pixelBytes; in syncDirtyAttrib()
582 GLuint stride = vertexFormat.bufferFormat().pixelBytes; in updateClientAttribs()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
DResourceManager11.cpp53 uint64_t pixelBytes = in ComputeMemoryUsage() local
54 static_cast<uint64_t>(d3d11::GetDXGIFormatSizeInfo(desc->Format).pixelBytes); in ComputeMemoryUsage()
55 return ComputeMippedMemoryUsage(desc->Width, desc->Height, 1, pixelBytes, desc->MipLevels); in ComputeMemoryUsage()
61 uint64_t pixelBytes = in ComputeMemoryUsage() local
62 static_cast<uint64_t>(d3d11::GetDXGIFormatSizeInfo(desc->Format).pixelBytes); in ComputeMemoryUsage()
63 return ComputeMippedMemoryUsage(desc->Width, desc->Height, desc->Depth, pixelBytes, in ComputeMemoryUsage()
486 data->SysMemPitch = levelWidth * formatSizeInfo.pixelBytes; in createInitDataIfNeeded()
534 data->SysMemPitch = levelWidth * formatSizeInfo.pixelBytes; in createInitDataIfNeeded()
DImage11.cpp99 gl::GetSizedInternalFormatInfo(sourceFormat.fboImplementationInternalFormat).pixelBytes; in CopyImage()
105 GLuint destPixelBytes = destFormatInfo.pixelBytes; in CopyImage()
291 GLuint outputPixelSize = dxgiFormatInfo.pixelBytes; in loadData()
327 GLuint outputPixelSize = dxgiFormatInfo.pixelBytes; in loadCompressedData()
406 GLsizei rowOffset = dxgiFormatInfo.pixelBytes * destOffset.x; in copyFromFramebuffer()
420 size_t bufferSize = destFormatInfo.pixelBytes * sourceArea.width * sourceArea.height; in copyFromFramebuffer()
427 GLuint memoryBufferRowPitch = destFormatInfo.pixelBytes * sourceArea.width; in copyFromFramebuffer()
Dformatutils11.h40 GLuint pixelBytes; member
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
DResourceManager11.cpp53 uint64_t pixelBytes = in ComputeMemoryUsage() local
54 static_cast<uint64_t>(d3d11::GetDXGIFormatSizeInfo(desc->Format).pixelBytes); in ComputeMemoryUsage()
55 return ComputeMippedMemoryUsage(desc->Width, desc->Height, 1, pixelBytes, desc->MipLevels); in ComputeMemoryUsage()
61 uint64_t pixelBytes = in ComputeMemoryUsage() local
62 static_cast<uint64_t>(d3d11::GetDXGIFormatSizeInfo(desc->Format).pixelBytes); in ComputeMemoryUsage()
63 return ComputeMippedMemoryUsage(desc->Width, desc->Height, desc->Depth, pixelBytes, in ComputeMemoryUsage()
482 data->SysMemPitch = levelWidth * formatSizeInfo.pixelBytes; in createInitDataIfNeeded()
526 data->SysMemPitch = levelWidth * formatSizeInfo.pixelBytes; in createInitDataIfNeeded()
DImage11.cpp99 gl::GetSizedInternalFormatInfo(sourceFormat.fboImplementationInternalFormat).pixelBytes; in CopyImage()
105 GLuint destPixelBytes = destFormatInfo.pixelBytes; in CopyImage()
289 GLuint outputPixelSize = dxgiFormatInfo.pixelBytes; in loadData()
325 GLuint outputPixelSize = dxgiFormatInfo.pixelBytes; in loadCompressedData()
404 GLsizei rowOffset = dxgiFormatInfo.pixelBytes * destOffset.x; in copyFromFramebuffer()
418 size_t bufferSize = destFormatInfo.pixelBytes * sourceArea.width * sourceArea.height; in copyFromFramebuffer()
425 GLuint memoryBufferRowPitch = destFormatInfo.pixelBytes * sourceArea.width; in copyFromFramebuffer()
Dformatutils11.h39 GLuint pixelBytes; member
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/
Dmtl_format_utils.mm321 NSUInteger pixelBytes,
325 false, pixelBytes, channels);
348 NSUInteger pixelBytes,
358 mNativePixelFormatCapsTable[id].pixelBytes = pixelBytes;
359 mNativePixelFormatCapsTable[id].pixelBytesMSAA = pixelBytes;
362 mNativePixelFormatCapsTable[id].alignment = MAX(pixelBytes / channels, 1U);
377 NSUInteger pixelBytesRender = mNativePixelFormatCapsTable[id].pixelBytes;
409 pixelBytesRender = MAX(mNativePixelFormatCapsTable[id].pixelBytes, minSize);
481 mNativePixelFormatCapsTable[id].pixelBytes = pixelBytesRender;
DVertexArrayMtl.mm59 *strideOut = packedFormat.actualAngleFormat().pixelBytes;
464 ASSERT((bufferOffset % angleFormat.pixelBytes) == 0);
552 (binding.getStride() < format.actualAngleFormat().pixelBytes) ||
607 streamFormat.actualAngleFormat().pixelBytes);
642 (binding.getOffset() % format.actualAngleFormat().pixelBytes) != 0 ||
644 (binding.getStride() < format.actualAngleFormat().pixelBytes) ||
938 unsigned srcFormatSize = srcVertexFormat.intendedAngleFormat().pixelBytes;
996 conversion->data.updateAlignment(contextMtl, convertedAngleFormat.pixelBytes);
Dmtl_utils.mm381 const size_t dstRowPitch = dstFormat.pixelBytes * size.width;
394 const size_t srcRowPitch = srcFormat.pixelBytes * size.width;
399 CopyImageCHROMIUM(srcRow.data(), srcRowPitch, srcFormat.pixelBytes, 0,
401 dstFormat.pixelBytes, 0, dstFormat.pixelWriteFunction,
1374 NSUInteger pixelBytes = caps.pixelBytes;
1376 pixelBytes = isMSAA ? pixelBytesMSAA : pixelBytes;
1379 currentRenderTargetSize += pixelBytes;
DTextureMtl.mm238 ASSERT(srcAngleFormat.pixelBytes <= sizeof(depthStencilData));
247 psrc + d * src2DImageSize + r * srcRowPitch + c * srcAngleFormat.pixelBytes;
250 c * dstAngleFormat.pixelBytes;
273 size_t stagingBufferRowPitch = regionSize.width * stagingAngleFormat.pixelBytes;
305 size_t stagingBufferRowPitch = regionSize.width * textureAngleFormat.pixelBytes;
1332 size_t prevLevelRowPitch = angleFormat.pixelBytes * prevLevelWidth;
1351 size_t dstRowPitch = angleFormat.pixelBytes * dstWidth;
1805 if (offset % mFormat.actualAngleFormat().pixelBytes || pixelsRowPitch < minRowPitch)
1912 const size_t dstRowPitch = dstFormat.pixelBytes * mtlArea.size.width;
1980 CopyImageCHROMIUM(psrc, pixelsRowPitch, pixelsAngleFormat.pixelBytes, 0,
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/
Dformatutils9.h34 D3DFormat(GLuint pixelBytes,
48 GLuint pixelBytes; member
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
Dvk_format_utils.cpp204 size_t pixelBytes = bufferFormat.pixelBytes; in getVertexInputAlignment() local
205 return mVkBufferFormatIsPacked ? pixelBytes : (pixelBytes / bufferFormat.channelCount); in getVertexInputAlignment()
328 ASSERT(actualFormat.pixelBytes != 0); in GetImageCopyBufferAlignment()
329 const size_t texelSize = actualFormat.pixelBytes; in GetImageCopyBufferAlignment()
DVertexArrayVk.cpp47 unsigned int formatSize = angleFormat.pixelBytes; in BindingIsAligned()
380 ASSERT(binding.getStride() % (srcFormat.pixelBytes / srcFormat.channelCount) == 0); in convertVertexBufferGPU()
382 unsigned srcFormatSize = srcFormat.pixelBytes; in convertVertexBufferGPU()
383 unsigned dstFormatSize = dstFormat.pixelBytes; in convertVertexBufferGPU()
429 unsigned srcFormatSize = vertexFormat.getIntendedFormat().pixelBytes; in convertVertexBufferCPU()
430 unsigned dstFormatSize = vertexFormat.getActualBufferFormat(compressed).pixelBytes; in convertVertexBufferCPU()
672 stride = vertexFormat.getActualBufferFormat(compressed).pixelBytes; in syncDirtyAttrib()
713 stride = vertexFormat.getActualBufferFormat(compressed).pixelBytes; in syncDirtyAttrib()
789 GLuint stride = vertexFormat.getActualBufferFormat(false).pixelBytes; in updateStreamedAttribs()
/third_party/mesa3d/src/mesa/swrast/
Ds_copypix.c441 GLuint pixelBytes, widthInBytes; in swrast_fast_copy_pixels() local
492 pixelBytes = _mesa_get_format_bytes(srcRb->Format); in swrast_fast_copy_pixels()
493 widthInBytes = width * pixelBytes; in swrast_fast_copy_pixels()
512 srcMap = map + srcY * rowStride + srcX * pixelBytes; in swrast_fast_copy_pixels()
513 dstMap = map + dstY * rowStride + dstX * pixelBytes; in swrast_fast_copy_pixels()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/null/
DFramebufferNULL.cpp133 pixels += leftClip * glFormat.pixelBytes + topClip * rowBytes; in readPixels()
138 memset(pixels, 42, glFormat.pixelBytes * area.width); in readPixels()
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/null/
DFramebufferNULL.cpp161 pixels += leftClip * glFormat.pixelBytes + topClip * rowBytes; in readPixels()
166 memset(pixels, 42, glFormat.pixelBytes * area.width); in readPixels()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/
DFramebufferGL.cpp280 GLuint pixelBytes, in Initialize() argument
303 if (rowBytes < area.width * pixelBytes) in Initialize()
305 checkedAllocatedBytes += area.width * pixelBytes - rowBytes; in Initialize()
338 GLuint pixelBytes, in RearrangeEXTTextureNorm16Pixels() argument
365 ASSERT(originalReadFormatPixelBytes > pixelBytes); in RearrangeEXTTextureNorm16Pixels()
392 src += pixelBytes; in RearrangeEXTTextureNorm16Pixels()
706 outPtr += leftClip * glFormat.pixelBytes + topClip * rowBytes; in readPixels()

1234