Home
last modified time | relevance | path

Searched refs:colorScale (Results 1 – 25 of 39) sorted by relevance

12

/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/texture/
DvktTextureCompressedFormatTests.cpp213 sampleParams.colorScale = tcu::Vec4(1.0f); in iterate()
218 sampleParams.colorScale = tcu::Vec4(0.5f, 1.0f, 1.0f, 1.0f); in iterate()
223 sampleParams.colorScale = tcu::Vec4(0.5f, 0.5f, 1.0f, 1.0f); in iterate()
228 sampleParams.colorScale = formatInfo.lookupScale; in iterate()
333 sampleParams.colorScale = tcu::Vec4(1.0f); in iterate()
338 sampleParams.colorScale = tcu::Vec4(0.5f, 1.0f, 1.0f, 1.0f); in iterate()
343 sampleParams.colorScale = tcu::Vec4(0.5f, 0.5f, 1.0f, 1.0f); in iterate()
348 sampleParams.colorScale = formatInfo.lookupScale; in iterate()
DvktTextureFilteringTests.cpp319 refParams.colorScale = fmtInfo.lookupScale; in iterate()
338 …lookupPrecision.colorThreshold = tcu::computeFixedPointThreshold(colorBits) / refParams.colorScale; in iterate()
553 refParams.colorScale = fmtInfo.lookupScale; in iterate()
581 …lookupPrecision.colorThreshold = tcu::computeFixedPointThreshold(colorBits) / refParams.colorScale; in iterate()
768 refParams.colorScale = fmtInfo.lookupScale; in iterate()
802 …lookupPrecision.colorThreshold = tcu::computeFixedPointThreshold(colorBits) / refParams.colorScale; in iterate()
972 refParams.colorScale = fmtInfo.lookupScale; in iterate()
1006 …lookupPrecision.colorThreshold = tcu::computeFixedPointThreshold(colorBits) / refParams.colorScale; in iterate()
DvktTextureSwizzleTests.cpp148 sampleParams.colorScale = tcu::Vec4(lookupScale); in iterate()
215 …dst.setPixel(src.sample(sampleParams.sampler, s, t, lod) * sampleParams.colorScale + sampleParams.… in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/image/
DvktImageLoadStoreUtil.hpp64 inline bool colorScaleAndBiasAreValid (const vk::VkFormat format, const float colorScale, const flo… in colorScaleAndBiasAreValid() argument
68 return !integerOrFloatFormat || (colorScale == 1.0f && colorBias == 0.0f); in colorScaleAndBiasAreValid()
/third_party/flutter/skia/third_party/externals/angle2/src/third_party/libXNVCtrl/
DNVCtrlLib.h459 float colorScale[3]);
479 float colorScale[3]);
DNVCtrl.c834 float colorScale[3] in XNVCTRLSetGvoColorConversion()
863 req->cscScale_y = colorScale[0]; in XNVCTRLSetGvoColorConversion()
864 req->cscScale_cr = colorScale[1]; in XNVCTRLSetGvoColorConversion()
865 req->cscScale_cb = colorScale[2]; in XNVCTRLSetGvoColorConversion()
877 float colorScale[3] in XNVCTRLQueryGvoColorConversion()
903 _XRead(dpy, (char *)(colorScale), 12); in XNVCTRLQueryGvoColorConversion()
/third_party/skia/third_party/externals/angle2/src/third_party/libXNVCtrl/
DNVCtrlLib.h459 float colorScale[3]);
479 float colorScale[3]);
DNVCtrl.c834 float colorScale[3] in XNVCTRLSetGvoColorConversion()
863 req->cscScale_y = colorScale[0]; in XNVCTRLSetGvoColorConversion()
864 req->cscScale_cr = colorScale[1]; in XNVCTRLSetGvoColorConversion()
865 req->cscScale_cb = colorScale[2]; in XNVCTRLSetGvoColorConversion()
877 float colorScale[3] in XNVCTRLQueryGvoColorConversion()
903 _XRead(dpy, (char *)(colorScale), 12); in XNVCTRLQueryGvoColorConversion()
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fASTCDecompressionCases.cpp239 …void initialize (int minRenderWidth, int minRenderHeight, const Vec4& colorScale, const Vec…
291 void ASTCRenderer2D::initialize (int minRenderWidth, int minRenderHeight, const Vec4& colorScale, c… in initialize() argument
299 m_colorScale = colorScale; in initialize()
315 …log << TestLog::Message << "Using color scale and bias: result = raw * " << colorScale << " + " <<… in initialize()
340 renderParams.colorScale = m_colorScale; in render()
Des3fTextureFilteringTests.cpp303 refParams.colorScale = fmtInfo.lookupScale; in iterate()
328 …lookupPrecision.colorThreshold = tcu::computeFixedPointThreshold(colorBits) / refParams.colorScale; in iterate()
611 sampleParams.colorScale = fmtInfo.lookupScale; in iterate()
643 …kupPrecision.colorThreshold = tcu::computeFixedPointThreshold(colorBits) / sampleParams.colorScale; in iterate()
871 refParams.colorScale = fmtInfo.lookupScale; in iterate()
911 …lookupPrecision.colorThreshold = tcu::computeFixedPointThreshold(colorBits) / refParams.colorScale; in iterate()
1113 refParams.colorScale = fmtInfo.lookupScale; in iterate()
1155 …lookupPrecision.colorThreshold = tcu::computeFixedPointThreshold(colorBits) / refParams.colorScale; in iterate()
Des3fTextureFormatTests.cpp197 renderParams.colorScale = spec.lookupScale; in iterate()
388 renderParams.colorScale = spec.lookupScale; in testFace()
554 renderParams.colorScale = spec.lookupScale; in testLayer()
712 renderParams.colorScale = spec.lookupScale; in testSlice()
858 renderParams.colorScale = spec.lookupScale; in iterate()
1010 renderParams.colorScale = spec.lookupScale; in testFace()
Des3fTextureWrapTests.cpp337 refParams.colorScale = useDefaultColorScaleAndBias ? texFormatInfo.lookupScale : tcu::Vec4(1.0f); in iterate()
356 …eshold = tcu::computeColorBitsThreshold(getBitsVec(pixelFormat), colorBits) / refParams.colorScale; in iterate()
/third_party/vk-gl-cts/framework/opengl/
DgluTextureTestUtil.hpp93 , colorScale (1.0f) in RenderParams()
106 tcu::Vec4 colorScale; //!< Scale for texture color values. member
162 …::ConstPixelBufferAccess& src, const float* texCoord, const tcu::Vec4& colorScale, const tcu::Vec4…
DgluTextureTestUtil.cpp422 dst.setPixel(execSample(src, params, s, lod) * params.colorScale + params.colorBias, x, y); in sampleTextureNonProjected()
466 dst.setPixel(execSample(src, params, s, t, lod) * params.colorScale + params.colorBias, x, y); in sampleTextureNonProjected()
506 dst.setPixel(execSample(src, params, s, lod) * params.colorScale + params.colorBias, px, py); in sampleTextureProjected()
551 dst.setPixel(execSample(src, params, s, t, lod) * params.colorScale + params.colorBias, px, py); in sampleTextureProjected()
674 …dst.setPixel(execSample(src, params, coord.x(), coord.y(), coord.z(), lod) * params.colorScale + p… in sampleTextureCube()
723 dst.setPixel(execSample(src, params, s, t, r, lod) * params.colorScale + params.colorBias, x, y); in sampleTextureNonProjected()
770 dst.setPixel(execSample(src, params, s, t, lod) * params.colorScale + params.colorBias, x, y); in sampleTextureNonProjected()
818 …dst.setPixel(src.sample(params.sampler, s, t, r, lod) * params.colorScale + params.colorBias, x, y… in sampleTextureNonProjected()
866 …dst.setPixel(src.sample(params.sampler, s, t, r, lod) * params.colorScale + params.colorBias, px, … in sampleTextureProjected()
930 …le(src, params, coord.x(), coord.y(), coord.z(), coordQ, lod) * params.colorScale + params.colorBi… in sampleTextureCubeArray()
[all …]
/third_party/flutter/skia/src/utils/
DSkShadowUtils.cpp531 SkScalar colorScale = colorAlpha*(SK_Scalar1 - greyscaleAlpha); in ComputeTonalColors() local
532 SkScalar tonalAlpha = colorScale + greyscaleAlpha; in ComputeTonalColors()
533 SkScalar unPremulScale = colorScale / tonalAlpha; in ComputeTonalColors()
/third_party/vk-gl-cts/modules/glshared/
DglsDrawTest.cpp1751 …anceCount, int indirectOffset, int baseVertex, float coordScale, float colorScale, AttributeArray*…
1830 …anceCount, int indirectOffset, int baseVertex, float coordScale, float colorScale, AttributeArray*… in render() argument
1843 m_ctx.uniform1f(m_ctx.getUniformLocation(m_programID, "u_colorScale"), colorScale); in render()
3182 float colorScale = getColorScale(spec); in iterate() local
3271 …, spec.instanceCount, spec.indirectOffset, spec.baseVertex, coordScale, colorScale, glArray.get()); in iterate()
3272 …, spec.instanceCount, spec.indirectOffset, spec.baseVertex, coordScale, colorScale, rrArray.get()); in iterate()
3285 …_LAST, DE_NULL, 0, 0, spec.instanceCount, spec.indirectOffset, 0, coordScale, colorScale, DE_NULL); in iterate()
3287 …_LAST, DE_NULL, 0, 0, spec.instanceCount, spec.indirectOffset, 0, coordScale, colorScale, DE_NULL); in iterate()
3802 float colorScale = 1.0f; in getColorScale() local
3815 colorScale *= 1.0f / 1024.0f; in getColorScale()
[all …]
DglsTextureTestUtil.cpp467 gl.uniform4fv(gl.getUniformLocation(prog, "u_colorScale"), 1, params.colorScale.getPtr()); in renderQuad()
472 m_log << TestLog::Message << "u_colorScale = " << params.colorScale << TestLog::EndMessage; in renderQuad()
DglsVertexArrayTests.cpp1085 …itive primitive, int firstVertex, int vertexCount, bool useVao, float coordScale, float colorScale) in render() argument
1102 m_ctx.uniform1f(m_ctx.getUniformLocation(program, "u_colorScale"), colorScale); in render()
1955 float colorScale = 1.0f; in iterate() local
1994colorScale *= (arraySpec.normalize && !inputTypeIsFloatType(arraySpec.inputType) ? 1.0f : float(1.… in iterate()
1996colorScale *= (arraySpec.normalize && !inputTypeIsFloatType(arraySpec.inputType) ? 1.0f : float(1.… in iterate()
2047 …ec.primitive, m_spec.first, m_spec.drawCount * (int)primitiveSize, useVao, coordScale, colorScale); in iterate()
2049 …ec.primitive, m_spec.first, m_spec.drawCount * (int)primitiveSize, useVao, coordScale, colorScale); in iterate()
/third_party/vk-gl-cts/modules/gles2/functional/
Des2fTextureFilteringTests.cpp282 refParams.colorScale = fmtInfo.lookupScale; in iterate()
307 …lookupPrecision.colorThreshold = tcu::computeFixedPointThreshold(colorBits) / refParams.colorScale; in iterate()
561 sampleParams.colorScale = fmtInfo.lookupScale; in iterate()
593 …kupPrecision.colorThreshold = tcu::computeFixedPointThreshold(colorBits) / sampleParams.colorScale; in iterate()
Des2fTextureFormatTests.cpp157 renderParams.colorScale = spec.lookupScale; in iterate()
329 renderParams.colorScale = spec.lookupScale; in testFace()
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fTextureBorderClampTests.cpp742 << "Texture lookup scale: " << samplerParams.colorScale << "\n" in logParams()
902 …gl.uniform4fv(gl.getUniformLocation(progId, "u_colorScale"), 1, samplerParams.colorScale.getPtr()); in renderQuad()
936 …upPrecision.colorThreshold = tcu::computeFixedPointThreshold(colorBits) / samplerParams.colorScale; in verifyImage()
1133 …const tcu::Vec4 referencePixel = referenceValue * samplerParams.colorScale + samplerParams.color… in verifyTextureGatherResult()
1135 …onst tcu::Vec4 resultValue = (resultPixel - samplerParams.colorBias) / samplerParams.colorScale; in verifyTextureGatherResult()
1266 refParams.colorScale = config.lookupScale; in genSamplerParams()
1280 DE_ASSERT(refParams.colorScale == tcu::Vec4(refParams.colorScale.x())); in genSamplerParams()
2157 << "Texture lookup scale: " << samplerParams.colorScale << "\n" in logParams()
2224 …upPrecision.colorThreshold = tcu::computeFixedPointThreshold(colorBits) / samplerParams.colorScale; in verifyImage()
2260 refParams.colorScale = m_lookupScale; in getSamplerParams()
Des31fTextureFormatTests.cpp220 renderParams.colorScale = spec.lookupScale; in testLayerFace()
368 renderParams.colorScale = spec.lookupScale; in iterate()
Des31fTextureFilteringTests.cpp358 refParams.colorScale = fmtInfo.lookupScale; in iterate()
401 …lookupPrecision.colorThreshold = tcu::computeFixedPointThreshold(colorBits) / refParams.colorScale; in iterate()
/third_party/skia/src/utils/
DSkShadowUtils.cpp567 SkScalar colorScale = colorAlpha*(SK_Scalar1 - greyscaleAlpha); in ComputeTonalColors() local
568 SkScalar tonalAlpha = colorScale + greyscaleAlpha; in ComputeTonalColors()
569 SkScalar unPremulScale = colorScale / tonalAlpha; in ComputeTonalColors()
/third_party/flutter/skia/src/effects/imagefilters/
DSkLightingImageFilter.cpp158 SkScalar colorScale = fKD * normal.dot(surfaceTolight); in light() local
159 colorScale = SkScalarClampMax(colorScale, SK_Scalar1); in light()
160 SkPoint3 color = lightColor.makeScale(colorScale); in light()
183 SkScalar colorScale = fKS * SkScalarPow(normal.dot(halfDir), fShininess); in light() local
184 colorScale = SkScalarClampMax(colorScale, SK_Scalar1); in light()
185 SkPoint3 color = lightColor.makeScale(colorScale); in light()

12