Home
last modified time | relevance | path

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

12

/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/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
DPixelTransfer11.cpp132 unsigned int bytesPerPixel = gl::GetSizedInternalFormatInfo(internalFormat).pixelBytes; in setBufferToTextureCopyParams()
/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 …]
Dmtl_format_utils.h61 NSUInteger pixelBytes = 0; 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()
DTextureVk.cpp512 GLuint pixelSize = formatInfo.pixelBytes; in setSubImageImpl()
889 sourceBox.width * sourceBox.height * sourceBox.depth * dstTextureFormat.pixelBytes; in copySubTextureImpl()
926 GLuint srcDataRowPitch = sourceBox.width * srcTextureFormat.pixelBytes; in copySubTextureImpl()
927 GLuint dstDataRowPitch = sourceBox.width * dstTextureFormat.pixelBytes; in copySubTextureImpl()
947 CopyImageCHROMIUM(sourceData, srcDataRowPitch, srcTextureFormat.pixelBytes, srcDataDepthPitch, in copySubTextureImpl()
948 pixelReadFunction, destData, dstDataRowPitch, dstTextureFormat.pixelBytes, in copySubTextureImpl()
1907 GLuint sourceRowPitch = baseLevelExtents.width * angleFormat.pixelBytes; in generateMipmapsWithCPU()
2187 dstFormat.pixelBytes * layerCount; in reinitImageAsRenderable()
2196 GLuint srcDataRowPitch = sourceBox.width * srcFormat.pixelBytes; in reinitImageAsRenderable()
2197 GLuint dstDataRowPitch = sourceBox.width * dstFormat.pixelBytes; in reinitImageAsRenderable()
[all …]
Dvk_helpers.cpp782 srcImage->getActualFormat().pixelBytes == dstImage->getActualFormat().pixelBytes); in CanCopyWithTransferForCopyImage()
5755 ASSERT(storageFormat.pixelBytes != 0); in stageSubresourceUpdateImpl()
5789 outputRowPitch = storageFormat.pixelBytes * glExtents.width; in stageSubresourceUpdateImpl()
5967 GLuint srcDataRowPitch = copy.imageExtent.width * srcFormat.pixelBytes; in reformatStagedBufferUpdates()
5968 GLuint dstDataRowPitch = copy.imageExtent.width * dstFormat.pixelBytes; in reformatStagedBufferUpdates()
5989 CopyImageCHROMIUM(srcData, srcDataRowPitch, srcFormat.pixelBytes, srcDataDepthPitch, in reformatStagedBufferUpdates()
5990 pixelReadFunction, dstData, dstDataRowPitch, dstFormat.pixelBytes, in reformatStagedBufferUpdates()
6254 size_t outputRowPitch = storageFormat.pixelBytes * clippedRectangle.width; in stageSubresourceUpdateFromFramebuffer()
6284 storageFormat.pixelBytes * clippedRectangle.width * clippedRectangle.height; in stageSubresourceUpdateFromFramebuffer()
7203 uint32_t pixelBytes = imageFormat.pixelBytes; in copyImageDataToBuffer() local
[all …]
DUtilsVk.cpp1780 shaderParams.Bs = params.srcFormat->pixelBytes / params.srcFormat->channelCount; in convertVertexBuffer()
1783 shaderParams.Bd = params.dstFormat->pixelBytes / params.dstFormat->channelCount; in convertVertexBuffer()
2937 const uint32_t srcPixelBytes = srcImageFormat.pixelBytes; in copyImageBits()
2938 const uint32_t dstPixelBytes = dstImageFormat.pixelBytes; in copyImageBits()
3024 shaderParams.Bs = srcImageFormat.pixelBytes / srcImageFormat.channelCount; in copyImageBits()
3025 shaderParams.Ss = srcImageFormat.pixelBytes; in copyImageBits()
3027 shaderParams.Bd = dstImageFormat.pixelBytes / dstImageFormat.channelCount; in copyImageBits()
/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/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()
/third_party/skia/third_party/externals/angle2/src/libANGLE/
DVertexAttribute.h104 return attrib.format->pixelBytes; in ComputeVertexAttributeTypeSize()
Dformatutils.cpp346 pixelBytes(0), in InternalFormat()
761 constexpr GLuint pixelBytes() const in pixelBytes() function
817 formatInfo.pixelBytes = formatBits.pixelBytes(); in AddRGBAXFormat()
876 formatInfo.pixelBytes = (luminance + alpha) / 8; in AddLUMAFormat()
913 formatInfo.pixelBytes = (depthBits + stencilBits + unusedBits) / 8; in AddDepthStencilFormat()
949 formatInfo.pixelBytes = compressedBlockSize / 8; in AddCompressedFormat()
994 formatInfo.pixelBytes = (cr + y + cb + alpha + shared) / 8; in AddYUVFormat()
1734 auto bytes = numBlocksWide * numBlocksHigh * pixelBytes * checkedDepth; in computeCompressedImageSize()
1870 ASSERT(internalFormat.pixelBytes == in MaybeOverrideLuminance()
1871 gl::GetInternalFormatInfo(actualFormat, actualType).pixelBytes); in MaybeOverrideLuminance()
DTexture.cpp627 levelSize *= format.info->pixelBytes; in getMemorySize()
2048 Extents extents(static_cast<GLuint>(size / internalFormatInfo.pixelBytes), 1, 1); in setBufferRange()
2312 const GLuint pixelBytes = desc.format.info->pixelBytes; in onSubjectStateChange() local
2313 desc.size.width = static_cast<GLuint>(size / pixelBytes); in onSubjectStateChange()
DRenderbuffer.cpp313 size *= mState.mFormat.info->pixelBytes; in getMemorySize()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/
DImage9.cpp200 sourceRect.x * sourceD3DFormatInfo.pixelBytes + in CopyImage()
203 destOffset.x * destD3DFormatInfo.pixelBytes + in CopyImage()
207 CopyImageCHROMIUM(sourceData, sourceLocked.Pitch, sourceD3DFormatInfo.pixelBytes, 0, in CopyImage()
209 destD3DFormatInfo.pixelBytes, 0, destD3DFormatInfo.info().pixelWriteFunction, in CopyImage()

12