/third_party/gstreamer/gstplugins_base/gst-libs/gst/video/ |
D | video-blend.c | 258 #define OVER00_8BIT(max, alphaG, alphaA, colorA, alphaB, colorB, alphaD) \ argument 259 ((colorA * alphaA + colorB * alphaB * (max - alphaA) / max) / alphaD) 261 #define OVER00_16BIT(max, alphaG, alphaA, colorA, alphaB, colorB, alphaD) \ argument 262 ((colorA * alphaA + (guint64) colorB * alphaB * (max - alphaA) / max) / alphaD) 265 #define OVER10_8BIT(max, alphaG, alphaA, colorA, alphaB, colorB, alphaD) \ argument 266 ((colorA * alphaG + colorB * alphaB * (max - alphaA) / max) / alphaD) 268 #define OVER10_16BIT(max, alphaG, alphaA, colorA, alphaB, colorB, alphaD) \ argument 269 ((colorA * alphaG + (guint64) colorB * alphaB * (max - alphaA) / max) / alphaD) 272 #define OVER01(max, alphaG, alphaA, colorA, alphaB, colorB, alphaD) \ argument 273 ((colorA * alphaA + colorB * (max - alphaA)) / max) [all …]
|
/third_party/ffmpeg/libavcodec/ |
D | rpza.c | 78 uint16_t colorA = 0, colorB; in rpza_decode_stream() local 169 colorB = bytestream2_get_be16(&s->gb); in rpza_decode_stream() 172 color4[0] = colorB; in rpza_decode_stream() 179 tb = (colorB >> 10) & 0x1F; in rpza_decode_stream() 185 tb = (colorB >> 5) & 0x1F; in rpza_decode_stream() 191 tb = colorB & 0x1F; in rpza_decode_stream()
|
D | rpzaenc.c | 156 static int diff_colors(uint8_t *colorA, uint8_t *colorB) in diff_colors() argument 160 tot = SQR(colorA[0] - colorB[0]); in diff_colors() 161 tot += SQR(colorA[1] - colorB[1]); in diff_colors() 162 tot += SQR(colorA[2] - colorB[2]); in diff_colors() 170 static int max_component_diff(uint16_t *colorA, uint16_t *colorB) in max_component_diff() argument 174 diff = FFABS(R(colorA[0]) - R(colorB[0])); in max_component_diff() 178 diff = FFABS(G(colorA[0]) - G(colorB[0])); in max_component_diff() 182 diff = FFABS(B(colorA[0]) - B(colorB[0])); in max_component_diff()
|
/third_party/flutter/skia/samplecode/ |
D | SampleComplexClip.cpp | 59 SkColor colorB = SK_ColorRED; in onDrawContent() local 74 paint.setColor(colorB); in onDrawContent() 118 paint.setColor(colorB); in onDrawContent() 130 paint.setColor(colorB); in onDrawContent()
|
/third_party/skia/samplecode/ |
D | SampleComplexClip.cpp | 58 SkColor colorB = SK_ColorRED; in onDrawContent() local 73 paint.setColor(colorB); in onDrawContent() 114 paint.setColor(colorB); in onDrawContent() 126 paint.setColor(colorB); in onDrawContent()
|
/third_party/gstreamer/gstplugins_bad/ext/opencv/ |
D | gsttextoverlay.cpp | 239 filter->colorB = DEFAULT_PROP_COLOR; in gst_opencv_text_overlay_init() 273 filter->colorB = g_value_get_int (value); in gst_opencv_text_overlay_set_property() 314 g_value_set_int (value, filter->colorB); in gst_opencv_text_overlay_get_property() 340 filter->colorG, filter->colorB), filter->thickness); in gst_opencv_text_overlay_transform_ip()
|
D | gsttextoverlay.h | 77 gint colorR,colorG,colorB; member
|
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | BindUniformLocationTest.cpp | 70 static const float colorB[] = { in TEST_P() local 75 glUniform4fv(colorBLocation, 2, colorB); in TEST_P() 111 static const float colorB[] = { in TEST_P() local 116 glUniform4fv(colorBLocation, 2, colorB); in TEST_P()
|
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | BindUniformLocationTest.cpp | 70 static const float colorB[] = { in TEST_P() local 75 glUniform4fv(colorBLocation, 2, colorB); in TEST_P() 111 static const float colorB[] = { in TEST_P() local 116 glUniform4fv(colorBLocation, 2, colorB); in TEST_P()
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
D | es3fTextureSpecificationTests.cpp | 988 …Vec4 colorB = Vec4(0.0f, 1.0f, 0.0f, 1.0f)*(m_texFormatInfo.valueMax-m_texFormatInfo.valueMin) + … in createTexture() local 993 …ixelBufferAccess(m_texFormat, levelW, levelH, 1, rowPitch, 0, &data[0]), cellSize, colorA, colorB); in createTexture() 1045 …Vec4 colorB = Vec4(0.0f, 1.0f, 0.0f, 1.0f)*(m_texFormatInfo.valueMax-m_texFormatInfo.valueMin) + … in createTexture() local 1049 …fferAccess(m_texFormat, levelSize, levelSize, 1, rowPitch, 0, &data[0]), cellSize, colorA, colorB); in createTexture() 1094 Vec4 colorB = Vec4(0.0f, 1.0f, 0.0f, 1.0f)*cScale + cBias; in createTexture() local 1096 …ight, 1, rowPitch, 0, &data[0] + m_skipRows*rowPitch + m_skipPixels*pixelSize), 4, colorA, colorB); in createTexture() 1164 Vec4 colorB = Vec4(0.0f, 1.0f, 0.0f, 1.0f)*cScale + cBias; in createTexture() local 1166 …a[0] + m_skipImages*slicePitch + m_skipRows*rowPitch + m_skipPixels*pixelSize), 4, colorA, colorB); in createTexture() 1250 Vec4 colorB = randomVector<4>(rnd, m_texFormatInfo.valueMin, m_texFormatInfo.valueMax); in createTexture() local 1254 tcu::fillWithGrid(data.getAccess(), cellSize, colorA, colorB); in createTexture() [all …]
|
D | es3fTextureShadowTests.cpp | 251 deUint32 colorB = 0xff000000 | ~rgb; in init() local 254 …s[1]->getRefTexture().getLevel(levelNdx), 4, tcu::RGBA(colorA).toVec(), tcu::RGBA(colorB).toVec()); in init() 523 deUint32 colorB = 0xff000000 | ~rgb; in init() local 526 …::CubeFace)face), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + … in init() 805 deUint32 colorB = 0xff000000 | ~rgb; in init() local 808 …tLevel(levelNdx), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + … in init()
|
D | es3fVertexTextureTests.cpp | 612 const deUint32 colorB = 0xff000000 | ~rgb; in init() local 615 …tLevel(levelNdx), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + … in init() 932 const deUint32 colorB = 0xff000000 | ~rgb; in init() local 935 …::CubeFace)face), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + … in init() 1258 const deUint32 colorB = 0xff000000 | ~rgb; in init() local 1261 …tLevel(levelNdx), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + … in init() 1598 const deUint32 colorB = 0xff000000 | ~rgb; in init() local 1601 …tLevel(levelNdx), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + … in init()
|
/third_party/vk-gl-cts/framework/common/ |
D | tcuTextureUtil.cpp | 991 …lWithGrid1D (const PixelBufferAccess& access, int cellSize, const Vec4& colorA, const Vec4& colorB) in fillWithGrid1D() argument 998 access.setPixel(colorB, x, 0); in fillWithGrid1D() 1004 …lWithGrid2D (const PixelBufferAccess& access, int cellSize, const Vec4& colorA, const Vec4& colorB) in fillWithGrid2D() argument 1014 access.setPixel(colorB, x, y); in fillWithGrid2D() 1021 …lWithGrid3D (const PixelBufferAccess& access, int cellSize, const Vec4& colorA, const Vec4& colorB) in fillWithGrid3D() argument 1034 access.setPixel(colorB, x, y, z); in fillWithGrid3D() 1042 …illWithGrid (const PixelBufferAccess& access, int cellSize, const Vec4& colorA, const Vec4& colorB) in fillWithGrid() argument 1053 …thGrid(getEffectiveDepthStencilAccess(access, tcu::Sampler::MODE_DEPTH), cellSize, colorA, colorB); in fillWithGrid() 1055 …s(access, tcu::Sampler::MODE_STENCIL), cellSize, colorA.swizzle(3,2,1,0), colorB.swizzle(3,2,1,0)); in fillWithGrid() 1060 fillWithGrid1D(access, cellSize, colorA, colorB); in fillWithGrid() [all …]
|
D | tcuTextureUtil.hpp | 123 …thGrid (const PixelBufferAccess& access, int cellSize, const Vec4& colorA, const Vec4& colorB); 124 …lWithRepeatableGradient (const PixelBufferAccess& access, const Vec4& colorA, const Vec4& colorB);
|
/third_party/vk-gl-cts/external/openglcts/modules/glesext/texture_shadow_lod/ |
D | esextcTextureShadowLodFunctionsTest.cpp | 496 Vec4 colorB = cBias + cScale * Vec4(fB, fA, fB, fA); in initTexture() local 500 colorB); in initTexture() 537 Vec4 colorB = cBias + cScale * Vec4(fB, fA, fB, fA); in initTexture() local 541 de::max(1, baseCellSize >> level), colorA, colorB); in initTexture() 579 Vec4 colorB = cBias + cScale * f.swizzle(swzB[0], swzB[1], swzB[2], swzB[3]); in initTexture() local 587 tcu::fillWithGrid(access, de::max(1, baseCellSize >> level), colorA, colorB); in initTexture() 655 Vec4 colorB = cBias + cScale * f.swizzle(swzB[0], swzB[1], swzB[2], swzB[3]); in initTexture() local 666 de::max(1, baseCellSize >> level), colorA, colorB); in initTexture()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/texture/ |
D | vktTextureShadowTests.cpp | 308 const deUint32 colorB = 0xff000000 | ~rgb; in Texture2DShadowTestInstance() local 310 …rid(m_textures[1]->getLevel(levelNdx, 0), 4, tcu::RGBA(colorA).toVec(), tcu::RGBA(colorB).toVec()); in Texture2DShadowTestInstance() 551 const deUint32 colorB = 0xff000000 | ~rgb; in TextureCubeShadowTestInstance() local 553 …(levelNdx, face), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + … in TextureCubeShadowTestInstance() 775 const deUint32 colorB = 0xff000000 | ~rgb; in Texture2DArrayShadowTestInstance() local 777 …tLevel(levelNdx), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + … in Texture2DArrayShadowTestInstance() 1001 const deUint32 colorB = 0xff000000 | ~rgb; in Texture1DShadowTestInstance() local 1003 …rid(m_textures[1]->getLevel(levelNdx, 0), 4, tcu::RGBA(colorA).toVec(), tcu::RGBA(colorB).toVec()); in Texture1DShadowTestInstance() 1226 const deUint32 colorB = 0xff000000 | ~rgb; in Texture1DArrayShadowTestInstance() local 1228 …tLevel(levelNdx), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + … in Texture1DArrayShadowTestInstance() [all …]
|
D | vktTextureFilteringTests.cpp | 274 const deUint32 colorB = 0xff000000 | ~rgb; in Texture2DFilteringTestInstance() local 277 …r::MODE_STENCIL), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + … in Texture2DFilteringTestInstance() 279 …vel(levelNdx, 0), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + … in Texture2DFilteringTestInstance() 498 const deUint32 colorB = 0xff000000 | ~rgb; in TextureCubeFilteringTestInstance() local 500 …(levelNdx, face), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + … in TextureCubeFilteringTestInstance() 503 …r::MODE_STENCIL), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + … in TextureCubeFilteringTestInstance() 505 …(levelNdx, face), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + … in TextureCubeFilteringTestInstance() 749 const deUint32 colorB = 0xff000000 | ~rgb; in Texture2DArrayFilteringTestInstance() local 752 …r::MODE_STENCIL), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + … in Texture2DArrayFilteringTestInstance() 754 …elNdx, layerNdx), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + … in Texture2DArrayFilteringTestInstance() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/texture/ |
D | vktTextureShadowTests.cpp | 308 const deUint32 colorB = 0xff000000 | ~rgb; in Texture2DShadowTestInstance() local 310 …rid(m_textures[1]->getLevel(levelNdx, 0), 4, tcu::RGBA(colorA).toVec(), tcu::RGBA(colorB).toVec()); in Texture2DShadowTestInstance() 551 const deUint32 colorB = 0xff000000 | ~rgb; in TextureCubeShadowTestInstance() local 553 …(levelNdx, face), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + … in TextureCubeShadowTestInstance() 775 const deUint32 colorB = 0xff000000 | ~rgb; in Texture2DArrayShadowTestInstance() local 777 …tLevel(levelNdx), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + … in Texture2DArrayShadowTestInstance() 1001 const deUint32 colorB = 0xff000000 | ~rgb; in Texture1DShadowTestInstance() local 1003 …rid(m_textures[1]->getLevel(levelNdx, 0), 4, tcu::RGBA(colorA).toVec(), tcu::RGBA(colorB).toVec()); in Texture1DShadowTestInstance() 1226 const deUint32 colorB = 0xff000000 | ~rgb; in Texture1DArrayShadowTestInstance() local 1228 …tLevel(levelNdx), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + … in Texture1DArrayShadowTestInstance() [all …]
|
D | vktTextureFilteringTests.cpp | 274 const deUint32 colorB = 0xff000000 | ~rgb; in Texture2DFilteringTestInstance() local 277 …r::MODE_STENCIL), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + … in Texture2DFilteringTestInstance() 279 …vel(levelNdx, 0), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + … in Texture2DFilteringTestInstance() 498 const deUint32 colorB = 0xff000000 | ~rgb; in TextureCubeFilteringTestInstance() local 500 …(levelNdx, face), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + … in TextureCubeFilteringTestInstance() 503 …r::MODE_STENCIL), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + … in TextureCubeFilteringTestInstance() 505 …(levelNdx, face), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + … in TextureCubeFilteringTestInstance() 749 const deUint32 colorB = 0xff000000 | ~rgb; in Texture2DArrayFilteringTestInstance() local 752 …r::MODE_STENCIL), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + … in Texture2DArrayFilteringTestInstance() 754 …elNdx, layerNdx), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + … in Texture2DArrayFilteringTestInstance() [all …]
|
/third_party/vk-gl-cts/modules/gles31/functional/ |
D | es31fTextureSpecificationTests.cpp | 449 Vec4 colorB = Vec4(0.0f, 1.0f, 0.0f, 1.0f)*cScale + cBias; in createTexture() local 451 …ipImages*slicePitch + m_skipRows*rowPitch + m_skipPixels*pixelSize + m_offset), 4, colorA, colorB); in createTexture() 555 Vec4 colorB = Vec4(0.0f, 1.0f, 0.0f, 1.0f)*cScale + cBias; in createTexture() local 558 …ipImages*slicePitch + m_skipRows*rowPitch + m_skipPixels*pixelSize + m_offset), 4, colorA, colorB); in createTexture() 691 const Vec4 colorB = Vec4(-1.5f, -2.0f, 1.7f, -1.5f); in createTexture() local 695 tcu::fillWithGrid(levelData.getAccess(), cellSize, colorA, colorB); in createTexture()
|
D | es31fTextureFormatTests.cpp | 320 tcu::Vec4 colorB (spec.valueMax.x(), spec.valueMin.y(), spec.valueMax.z(), spec.valueMin.w()); in init() local 336 << ",\n fill with " << formatGradient(&colorA, &colorB) << " gradient" in init() 342 tcu::fillWithComponentGradients(m_texture->getFullRefTexture(), colorA, colorB); in init()
|
/third_party/vk-gl-cts/modules/gles2/functional/ |
D | es2fTextureSpecificationTests.cpp | 861 Vec4 colorB (0.0f, 1.0f, 0.0f, 1.0f); in createTexture() local 866 …d(tcu::PixelBufferAccess(fmt, levelW, levelH, 1, rowPitch, 0, &data[0]), cellSize, colorA, colorB); in createTexture() 912 Vec4 colorB (0.0f, 1.0f, 0.0f, 1.0f); in createTexture() local 916 …d(tcu::PixelBufferAccess(fmt, levelW, levelH, 1, rowPitch, 0, &data[0]), cellSize, colorA, colorB); in createTexture() 981 Vec4 colorB = randomVector<4>(rnd); in createTexture() local 985 tcu::fillWithGrid(data.getAccess(), cellSize, colorA, colorB); in createTexture() 1056 Vec4 colorB = randomVector<4>(rnd); in createTexture() local 1060 tcu::fillWithGrid(data.getAccess(), cellSize, colorA, colorB); in createTexture() 1451 Vec4 colorB = randomVector<4>(rnd); in createTexture() local 1455 tcu::fillWithGrid(data.getAccess(), cellSize, colorA, colorB); in createTexture() [all …]
|
D | es2fShaderTextureFunctionTests.cpp | 344 Vec4 colorB = cBias + cScale*Vec4(fB, fA, fB, fA); in initTexture() local 347 …rid(m_texture2D->getRefTexture().getLevel(level), de::max(1, baseCellSize>>level), colorA, colorB); in initTexture() 381 Vec4 colorB = cBias + cScale*f.swizzle(swzB[0], swzB[1], swzB[2], swzB[3]); in initTexture() local 384 …xture().getLevelFace(level, (tcu::CubeFace)face), de::max(1, baseCellSize>>level), colorA, colorB); in initTexture()
|
/third_party/vk-gl-cts/modules/gles3/accuracy/ |
D | es3aTextureFilteringTests.cpp | 156 deUint32 colorB = 0xff000000 | ~rgb; in init() local 159 …tLevel(levelNdx), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + … in init() 424 deUint32 colorB = 0xff000000 | ~rgb; in init() local 427 …::CubeFace)face), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + … in init()
|
/third_party/vk-gl-cts/modules/gles2/accuracy/ |
D | es2aTextureFilteringTests.cpp | 166 deUint32 colorB = 0xff000000 | ~rgb; in init() local 169 …tLevel(levelNdx), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + … in init() 438 deUint32 colorB = 0xff000000 | ~rgb; in init() local 441 …::CubeFace)face), 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + … in init()
|