Home
last modified time | relevance | path

Searched refs:sourceFormat (Results 1 – 25 of 26) sorted by relevance

12

/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DCopyTextureTest.cpp226 bool checkExtensions(GLenum sourceFormat, GLenum destFormat) const in checkExtensions() argument
235 if ((sourceFormat == GL_BGRA_EXT || destFormat == GL_BGRA_EXT) && in checkExtensions()
241 if ((sourceFormat == GL_SRGB_ALPHA_EXT || destFormat == GL_SRGB_ALPHA_EXT) && in checkExtensions()
250 void calculateCopyTextureResults(GLenum sourceFormat, in calculateCopyTextureResults() argument
259 switch (sourceFormat) in calculateCopyTextureResults()
316 const uint8_t *getSourceColors(GLenum sourceFormat, size_t *colorCount, uint8_t *componentCount) in getSourceColors() argument
372 switch (sourceFormat) in getSourceColors()
397 GLenum sourceFormat, in initializeSourceTexture() argument
416 glTexImage2D(target, 0, sourceFormat, 2, 2, 0, sourceFormat, GL_UNSIGNED_BYTE, in initializeSourceTexture()
421 GLenum sourceFormat, in testCopyTexture() argument
[all …]
/third_party/skia/third_party/externals/oboe/src/common/
DDataConversionFlowGraph.cpp82 AudioFormat sourceFormat = sourceStream->getFormat(); in configure() local
96 sourceFormat, sinkFormat, in configure()
109 switch (sourceFormat) { in configure()
119 LOGE("%s() Unsupported source caller format = %d", __func__, sourceFormat); in configure()
127 switch (sourceFormat) { in configure()
135 LOGE("%s() Unsupported source format = %d", __func__, sourceFormat); in configure()
/third_party/skia/third_party/externals/swiftshader/src/Device/
DBlitter.hpp86 …State(vk::Format sourceFormat, vk::Format destFormat, int srcSamples, int destSamples, const Optio… in State()
89 , sourceFormat(sourceFormat) in State()
95 vk::Format sourceFormat; member
210 uint64_t hash = state.sourceFormat; in operator ()()
DBlitter.cpp322 switch(state.sourceFormat) in readFloat4()
538 UNSUPPORTED("Blitter source format %d", (int)state.sourceFormat); in readFloat4()
1098 switch(state.sourceFormat) in readInt4()
1168 UNSUPPORTED("Blitter source format %d", (int)state.sourceFormat); in readInt4()
1182 ASSERT(state.sourceFormat.isUnsigned() == state.destFormat.isUnsigned()); in write()
1423 state.sourceFormat.isUnnormalizedInteger() && in ApplyScaleAndClamp()
1428 switch(state.sourceFormat) in ApplyScaleAndClamp()
1437 UNSUPPORTED("Blitter source format %d", (int)state.sourceFormat); in ApplyScaleAndClamp()
1442 unscale = state.sourceFormat.getScale(); in ApplyScaleAndClamp()
1447 bool srcSRGB = state.sourceFormat.isSRGBformat(); in ApplyScaleAndClamp()
[all …]
/third_party/skia/third_party/externals/swiftshader/src/Main/
DFrameBuffer.cpp119 updateState.sourceFormat = source->getInternalFormat(); in copy()
168 const int sBytes = Surface::bytes(state.sourceFormat); in copyRoutine()
191 switch(state.sourceFormat) in copyRoutine()
249 switch(state.sourceFormat) in copyRoutine()
299 switch(state.sourceFormat) in copyRoutine()
358 switch(state.sourceFormat) in copyRoutine()
404 switch(state.sourceFormat) in copyRoutine()
446 switch(state.sourceFormat) in copyRoutine()
540 switch(state.sourceFormat) in blend()
DFrameBuffer.hpp33 Format sourceFormat; member
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/
Drenderer_utils.cpp299 const angle::Format &sourceFormat, in PackPixels() argument
320 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()
374 if (params.rotation == SurfaceRotation::Identity && sourceFormat == *params.destFormat) in PackPixels()
380 params.area.width * sourceFormat.pixelBytes); in PackPixels()
385 PixelCopyFunction fastCopyFunc = sourceFormat.fastCopyFunctions.get(params.destFormat->id); in PackPixels()
[all …]
Drenderer_utils.h129 const angle::Format &sourceFormat,
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
DBlit11.h41 GLenum sourceFormat,
170 GLenum sourceFormat,
236 GLenum sourceFormat,
DImage11.cpp96 const auto &sourceFormat = in CopyImage() local
99 gl::GetSizedInternalFormatInfo(sourceFormat.fboImplementationInternalFormat).pixelBytes; in CopyImage()
114 sourceFormat.pixelReadFunction, destData, destMapped.RowPitch, destPixelBytes, in CopyImage()
DBlit11.cpp916 GLenum sourceFormat, in copyTexture() argument
970 ANGLE_TRY(getBlitShader(context, destFormat, sourceFormat, isSrcSigned, isDestSigned, in copyTexture()
1382 GLenum sourceFormat, in getBlitShaderOperation() argument
1390 !gl::IsIntegerFormat(sourceFormat) && gl::IsIntegerFormat(destinationFormat); in getBlitShaderOperation()
1574 GLenum sourceFormat, in getBlitShader() argument
1585 blitShaderOperation = getBlitShaderOperation(destFormat, sourceFormat, isSrcSigned, in getBlitShader()
DRenderer11.cpp2502 GLenum sourceFormat = colorAttachment->getFormat().info->format; in copyImageInternal() local
2520 ANGLE_TRY(mBlit->copyTexture(context, readSRV, sourceArea, sourceSize, sourceFormat, dest, in copyImageInternal()
2532 ANGLE_TRY(mBlit->copyTexture(context, source, sourceArea, sourceSize, sourceFormat, dest, in copyImageInternal()
2778 GLenum sourceFormat = source->getFormat(srcTarget, sourceLevel).info->format; in copyTexture() local
2780 sourceFormat, destRTV, destArea, destSize, nullptr, destFormat, in copyTexture()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/
DTextureGL.cpp129 : sourceFormat(sourceFormat_), in LevelInfoGL()
748 context, mTextureID, getType(), target, levelInfo.sourceFormat, level, in copyImage()
754 context, mTextureID, getType(), target, levelInfo.sourceFormat, level, in copyImage()
835 context, mTextureID, getType(), target, levelInfo.sourceFormat, level, clippedOffset, in copySubImage()
963 GLenum sourceFormat = sourceFormatInfo.format; in copySubTextureHelper() local
965 (sourceFormat == destFormat.format && sourceFormat != GL_BGRA_EXT) || in copySubTextureHelper()
966 (sourceFormat == GL_RGBA && destFormat.format == GL_RGB); in copySubTextureHelper()
997 sourceLevelInfo.sourceFormat, unpackFlipY, unpackPremultiplyAlpha, in copySubTextureHelper()
1009 needsLumaWorkaround, sourceLevelInfo.sourceFormat, unpackFlipY, unpackPremultiplyAlpha, in copySubTextureHelper()
1821 if (levelInfo.sourceFormat == GL_LUMINANCE || in syncTextureStateSwizzle()
[all …]
DTextureGL.h37 GLenum sourceFormat; member
55 LevelInfoGL(GLenum sourceFormat,
/third_party/skia/third_party/externals/swiftshader/src/Renderer/
DBlitter.cpp228 switch(state.sourceFormat) in read()
792 switch(state.sourceFormat) in read()
1085 Surface::isNonNormalizedInteger(state.sourceFormat) && in ApplyScaleAndClamp()
1090 switch(state.sourceFormat) in ApplyScaleAndClamp()
1102 else if(!GetScale(unscale, state.sourceFormat)) in ApplyScaleAndClamp()
1112 bool srcSRGB = Surface::isSRGBformat(state.sourceFormat); in ApplyScaleAndClamp()
1131 else if(Surface::isFloatFormat(state.sourceFormat) && !Surface::isFloatFormat(state.destFormat)) in ApplyScaleAndClamp()
1206 bool intSrc = Surface::isNonNormalizedInteger(state.sourceFormat); in generate()
1209 bool srcQuadLayout = Surface::hasQuadLayout(state.sourceFormat); in generate()
1211 int srcBytes = Surface::bytes(state.sourceFormat); in generate()
[all …]
DBlitter.hpp67 Format sourceFormat; member
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fShaderFramebufferFetchTests.cpp145 tcu::Vec4 getFixedPointFormatThreshold (const tcu::TextureFormat& sourceFormat, const tcu::TextureF… in getFixedPointFormatThreshold() argument
147 …DE_ASSERT(tcu::getTextureChannelClass(sourceFormat.type) != tcu::TEXTURECHANNELCLASS_FLOATING_POIN… in getFixedPointFormatThreshold()
150 …DE_ASSERT(tcu::getTextureChannelClass(sourceFormat.type) != tcu::TEXTURECHANNELCLASS_SIGNED_INTEGE… in getFixedPointFormatThreshold()
153 …DE_ASSERT(tcu::getTextureChannelClass(sourceFormat.type) != tcu::TEXTURECHANNELCLASS_UNSIGNED_INTE… in getFixedPointFormatThreshold()
156 const tcu::IVec4 srcBits = tcu::getTextureFormatBitDepth(sourceFormat); in getFixedPointFormatThreshold()
162 tcu::UVec4 getFloatULPThreshold (const tcu::TextureFormat& sourceFormat, const tcu::TextureFormat& … in getFloatULPThreshold() argument
164 const tcu::IVec4 srcMantissaBits = tcu::getTextureFormatMantissaBitDepth(sourceFormat); in getFloatULPThreshold()
Des31fDrawBuffersIndexedTests.cpp442 Vec4 getFixedPointFormatThreshold (const tcu::TextureFormat& sourceFormat, const tcu::TextureFormat… in getFixedPointFormatThreshold() argument
444 …DE_ASSERT(tcu::getTextureChannelClass(sourceFormat.type) != tcu::TEXTURECHANNELCLASS_FLOATING_POIN… in getFixedPointFormatThreshold()
447 …DE_ASSERT(tcu::getTextureChannelClass(sourceFormat.type) != tcu::TEXTURECHANNELCLASS_SIGNED_INTEGE… in getFixedPointFormatThreshold()
450 …DE_ASSERT(tcu::getTextureChannelClass(sourceFormat.type) != tcu::TEXTURECHANNELCLASS_UNSIGNED_INTE… in getFixedPointFormatThreshold()
453 const tcu::IVec4 srcBits = tcu::getTextureFormatBitDepth(sourceFormat); in getFixedPointFormatThreshold()
459 UVec4 getFloatULPThreshold (const tcu::TextureFormat& sourceFormat, const tcu::TextureFormat& readP… in getFloatULPThreshold() argument
461 const tcu::IVec4 srcMantissaBits = tcu::getTextureFormatMantissaBitDepth(sourceFormat); in getFloatULPThreshold()
Des31fCopyImageTests.cpp1642 Vec4 calculateThreshold (const tcu::TextureFormat& sourceFormat, const tcu::TextureFormat& readPixe… in calculateThreshold() argument
1644 …DE_ASSERT(tcu::getTextureChannelClass(sourceFormat.type) != tcu::TEXTURECHANNELCLASS_FLOATING_POIN… in calculateThreshold()
1647 …DE_ASSERT(tcu::getTextureChannelClass(sourceFormat.type) != tcu::TEXTURECHANNELCLASS_SIGNED_INTEGE… in calculateThreshold()
1650 …DE_ASSERT(tcu::getTextureChannelClass(sourceFormat.type) != tcu::TEXTURECHANNELCLASS_UNSIGNED_INTE… in calculateThreshold()
1654 const tcu::IVec4 srcBits = tcu::getTextureFormatBitDepth(sourceFormat); in calculateThreshold()
/third_party/skia/third_party/externals/angle2/src/libANGLE/
DvalidationES2.cpp3198 const InternalFormat &sourceFormat = *source->getFormat(sourceTarget, sourceLevel).info; in ValidateCopyTextureCHROMIUM() local
3199 if (!IsValidCopyTextureSourceInternalFormatEnum(sourceFormat.internalFormat)) in ValidateCopyTextureCHROMIUM()
3324 const Format &sourceFormat = source->getFormat(sourceTarget, sourceLevel); in ValidateCopySubTextureCHROMIUM() local
3325 if (!IsValidCopySubTextureSourceInternalFormat(sourceFormat.info->internalFormat)) in ValidateCopySubTextureCHROMIUM()
3417 const Format &sourceFormat = source->getFormat(TextureTarget::_2D, 0); in ValidateCompressedCopyTextureCHROMIUM() local
3418 if (!sourceFormat.info->compressed) in ValidateCompressedCopyTextureCHROMIUM()
DvalidationES3.cpp2513 const Format &sourceFormat = source->getFormat(sourceTarget, sourceLevel); in ValidateCopyTexture3DANGLE() local
2523 sourceFormat.info->internalFormat, dest, destLevel, in ValidateCopyTexture3DANGLE()
2582 const Format &sourceFormat = source->getFormat(sourceTarget, sourceLevel); in ValidateCopySubTexture3DANGLE() local
2594 sourceFormat.info->internalFormat, dest, destLevel, in ValidateCopySubTexture3DANGLE()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
DTextureVk.h377 const angle::Format &sourceFormat,
DTextureVk.cpp3111 const angle::Format &sourceFormat, in generateMipmapLevelsWithCPU() argument
3139 size_t destRowPitch = mipWidth * sourceFormat.pixelBytes; in generateMipmapLevelsWithCPU()
3150 sourceFormat.id)); in generateMipmapLevelsWithCPU()
3153 sourceFormat.mipGenerationFunction( in generateMipmapLevelsWithCPU()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/
DTextureMtl.mm2244 const mtl::Format &sourceFormat = contextMtl->getPixelFormat(srcImageDef.formatID);
2245 const angle::Format &sourceAngleFormat = sourceFormat.actualAngleFormat();
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/api/
DvktApiCopiesAndBlittingTests.cpp3135 const tcu::TextureFormat& sourceFormat);
4126 …const tcu::TextureFormat sourceFormat = tcu::getEffectiveDepthStencilTextureFormat(mapVkFormat… in checkTestResult() local
4128 … if (!checkNonNearestFilteredResult(depthResult, clampedExpected, unclampedExpected, sourceFormat)) in checkTestResult()
4138 …const tcu::TextureFormat sourceFormat = tcu::getEffectiveDepthStencilTextureFormat(mapVkFormat… in checkTestResult() local
4140 …f (!checkNonNearestFilteredResult(stencilResult, clampedExpected, unclampedExpected, sourceFormat)) in checkTestResult()
4152 const tcu::TextureFormat sourceFormat = mapVkFormat(m_params.src.image.format); in checkTestResult() local
4153 …_expectedTextureLevel[0]->getAccess(), m_unclampedExpectedTextureLevel->getAccess(), sourceFormat)) in checkTestResult()

12