Home
last modified time | relevance | path

Searched refs:colorA (Results 1 – 25 of 38) sorted by relevance

12

/third_party/ffmpeg/libavcodec/
Drpza.c78 uint16_t colorA = 0, colorB; in rpza_decode_stream() local
125 colorA = (opcode << 8) | bytestream2_get_byte(&s->gb); in rpza_decode_stream()
150 colorA = bytestream2_get_be16(&s->gb); in rpza_decode_stream()
156 pixels[block_ptr] = colorA; in rpza_decode_stream()
167 colorA = bytestream2_get_be16(&s->gb); in rpza_decode_stream()
175 color4[3] = colorA; in rpza_decode_stream()
178 ta = (colorA >> 10) & 0x1F; in rpza_decode_stream()
184 ta = (colorA >> 5) & 0x1F; in rpza_decode_stream()
190 ta = colorA & 0x1F; in rpza_decode_stream()
223 colorA = bytestream2_get_be16u(&s->gb); in rpza_decode_stream()
[all …]
Drpzaenc.c156 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/gstreamer/gstplugins_base/gst-libs/gst/video/
Dvideo-blend.c258 #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/skia/samplecode/
DSampleComplexClip.cpp49 SkColor colorA = SK_ColorCYAN; in onDrawContent() local
71 paint.setColor(colorA); in onDrawContent()
112 paint.setColor(colorA); in onDrawContent()
118 paint.setColor(colorA); in onDrawContent()
/third_party/flutter/skia/samplecode/
DSampleComplexClip.cpp50 SkColor colorA = SK_ColorCYAN; in onDrawContent() local
72 paint.setColor(colorA); in onDrawContent()
116 paint.setColor(colorA); in onDrawContent()
122 paint.setColor(colorA); in onDrawContent()
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fTextureSpecificationTests.cpp987 …Vec4 colorA = Vec4(1.0f, 0.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()
1044 …Vec4 colorA = Vec4(1.0f, 0.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()
1093 Vec4 colorA = Vec4(1.0f, 0.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()
1163 Vec4 colorA = Vec4(1.0f, 0.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()
1249 Vec4 colorA = randomVector<4>(rnd, m_texFormatInfo.valueMin, m_texFormatInfo.valueMax); in createTexture() local
1254 tcu::fillWithGrid(data.getAccess(), cellSize, colorA, colorB); in createTexture()
[all …]
Des3fTextureShadowTests.cpp250 deUint32 colorA = 0xff000000 | rgb; in init() local
254 …tcu::fillWithGrid(m_textures[1]->getRefTexture().getLevel(levelNdx), 4, tcu::RGBA(colorA).toVec(),… in init()
522 deUint32 colorA = 0xff000000 | rgb; in init() local
526 …etRefTexture().getLevelFace(levelNdx, (tcu::CubeFace)face), 4, tcu::RGBA(colorA).toVec()*cScale + … in init()
804 deUint32 colorA = 0xff000000 | rgb; in init() local
808 …tcu::fillWithGrid(m_gridTex->getRefTexture().getLevel(levelNdx), 4, tcu::RGBA(colorA).toVec()*cSca… in init()
Des3fVertexTextureTests.cpp611 const deUint32 colorA = 0xff000000 | rgb; in init() local
615 …tcu::fillWithGrid(m_textures[1]->getRefTexture().getLevel(levelNdx), 4, tcu::RGBA(colorA).toVec()*… in init()
931 const deUint32 colorA = 0xff000000 | rgb; in init() local
935 …etRefTexture().getLevelFace(levelNdx, (tcu::CubeFace)face), 4, tcu::RGBA(colorA).toVec()*cScale + … in init()
1257 const deUint32 colorA = 0xff000000 | rgb; in init() local
1261 …tcu::fillWithGrid(m_textures[1]->getRefTexture().getLevel(levelNdx), 4, tcu::RGBA(colorA).toVec()*… in init()
1597 const deUint32 colorA = 0xff000000 | rgb; in init() local
1601 …tcu::fillWithGrid(m_textures[1]->getRefTexture().getLevel(levelNdx), 4, tcu::RGBA(colorA).toVec()*… in init()
Des3fTextureFilteringTests.cpp216 deUint32 colorA = 0xff000000 | rgb; in init() local
220 …tcu::fillWithGrid(m_textures[1]->getRefTexture().getLevel(levelNdx), 4, tcu::RGBA(colorA).toVec()*… in init()
507 deUint32 colorA = 0xff000000 | rgb; in init() local
511 …etRefTexture().getLevelFace(levelNdx, (tcu::CubeFace)face), 4, tcu::RGBA(colorA).toVec()*cScale + … in init()
807 const deUint32 colorA = 0xff000000 | rgb; in init() local
811 4, tcu::RGBA(colorA).toVec()*cScale + cBias, tcu::RGBA(colorB).toVec()*cScale + cBias); in init()
1053 deUint32 colorA = 0xff000000 | rgb; in init() local
1057 …tcu::fillWithGrid(m_gridTex->getRefTexture().getLevel(levelNdx), 4, tcu::RGBA(colorA).toVec()*cSca… in init()
/third_party/vk-gl-cts/framework/common/
DtcuTextureUtil.cpp991 static void fillWithGrid1D (const PixelBufferAccess& access, int cellSize, const Vec4& colorA, cons… in fillWithGrid1D() argument
1000 access.setPixel(colorA, x, 0); in fillWithGrid1D()
1004 static void fillWithGrid2D (const PixelBufferAccess& access, int cellSize, const Vec4& colorA, cons… in fillWithGrid2D() argument
1016 access.setPixel(colorA, x, y); in fillWithGrid2D()
1021 static void fillWithGrid3D (const PixelBufferAccess& access, int cellSize, const Vec4& colorA, cons… in fillWithGrid3D() argument
1036 access.setPixel(colorA, x, y, z); in fillWithGrid3D()
1042 void fillWithGrid (const PixelBufferAccess& access, int cellSize, const Vec4& colorA, const Vec4& c… in fillWithGrid() argument
1053 …fillWithGrid(getEffectiveDepthStencilAccess(access, tcu::Sampler::MODE_DEPTH), cellSize, colorA, c… in fillWithGrid()
1055 …fectiveDepthStencilAccess(access, tcu::Sampler::MODE_STENCIL), cellSize, colorA.swizzle(3,2,1,0), … in fillWithGrid()
1060 fillWithGrid1D(access, cellSize, colorA, colorB); in fillWithGrid()
[all …]
DtcuTextureUtil.hpp123 void fillWithGrid (const PixelBufferAccess& access, int cellSize, const Vec4& colorA, const Vec…
124 void fillWithRepeatableGradient (const PixelBufferAccess& access, const Vec4& colorA, const Vec4& …
/third_party/vk-gl-cts/external/openglcts/modules/glesext/texture_shadow_lod/
DesextcTextureShadowLodFunctionsTest.cpp495 Vec4 colorA = cBias + cScale * Vec4(fA, fB, fA, fB); in initTexture() local
499 …llWithGrid(m_texture2D->getRefTexture().getLevel(level), de::max(1, baseCellSize >> level), colorA, in initTexture()
536 Vec4 colorA = cBias + cScale * Vec4(fA, fB, fA, fB); in initTexture() local
541 de::max(1, baseCellSize >> level), colorA, colorB); in initTexture()
578 Vec4 colorA = cBias + cScale * f.swizzle(swzA[0], swzA[1], swzA[2], swzA[3]); in initTexture() local
587 tcu::fillWithGrid(access, de::max(1, baseCellSize >> level), colorA, colorB); in initTexture()
654 Vec4 colorA = cBias + cScale * f.swizzle(swzA[0], swzA[1], swzA[2], swzA[3]); in initTexture() local
666 de::max(1, baseCellSize >> level), colorA, colorB); in initTexture()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/texture/
DvktTextureShadowTests.cpp286 const deUint32 colorA = 0xff000000 | rgb; in Texture2DShadowTestInstance() local
289 …tcu::fillWithGrid(m_textures[1]->getLevel(levelNdx, 0), 4, tcu::RGBA(colorA).toVec(), tcu::RGBA(co… in Texture2DShadowTestInstance()
516 const deUint32 colorA = 0xff000000 | rgb; in TextureCubeShadowTestInstance() local
519 …tcu::fillWithGrid(m_textures[1]->getLevel(levelNdx, face), 4, tcu::RGBA(colorA).toVec()*cScale + c… in TextureCubeShadowTestInstance()
729 const deUint32 colorA = 0xff000000 | rgb; in Texture2DArrayShadowTestInstance() local
732 …tcu::fillWithGrid(m_textures[1]->getTexture().getLevel(levelNdx), 4, tcu::RGBA(colorA).toVec()*cSc… in Texture2DArrayShadowTestInstance()
944 const deUint32 colorA = 0xff000000 | rgb; in Texture1DShadowTestInstance() local
947 …tcu::fillWithGrid(m_textures[1]->getLevel(levelNdx, 0), 4, tcu::RGBA(colorA).toVec(), tcu::RGBA(co… in Texture1DShadowTestInstance()
1158 const deUint32 colorA = 0xff000000 | rgb; in Texture1DArrayShadowTestInstance() local
1161 …tcu::fillWithGrid(m_textures[1]->getTexture().getLevel(levelNdx), 4, tcu::RGBA(colorA).toVec()*cSc… in Texture1DArrayShadowTestInstance()
[all …]
DvktTextureFilteringTests.cpp246 const deUint32 colorA = 0xff000000 | rgb; in Texture2DFilteringTestInstance() local
250 …res[1]->getLevel(levelNdx, 0), tcu::Sampler::MODE_STENCIL), 4, tcu::RGBA(colorA).toVec()*cScale + … in Texture2DFilteringTestInstance()
252 …tcu::fillWithGrid(m_textures[1]->getLevel(levelNdx, 0), 4, tcu::RGBA(colorA).toVec()*cScale + cBia… in Texture2DFilteringTestInstance()
470 const deUint32 colorA = 0xff000000 | rgb; in TextureCubeFilteringTestInstance() local
473 …tcu::fillWithGrid(m_textures[1]->getLevel(levelNdx, face), 4, tcu::RGBA(colorA).toVec()*cScale + c… in TextureCubeFilteringTestInstance()
476 …[1]->getLevel(levelNdx, face), tcu::Sampler::MODE_STENCIL), 4, tcu::RGBA(colorA).toVec()*cScale + … in TextureCubeFilteringTestInstance()
478 …tcu::fillWithGrid(m_textures[1]->getLevel(levelNdx, face), 4, tcu::RGBA(colorA).toVec()*cScale + c… in TextureCubeFilteringTestInstance()
716 const deUint32 colorA = 0xff000000 | rgb; in Texture2DArrayFilteringTestInstance() local
720 …>getLevel(levelNdx, layerNdx), tcu::Sampler::MODE_STENCIL), 4, tcu::RGBA(colorA).toVec()*cScale + … in Texture2DArrayFilteringTestInstance()
722 …tcu::fillWithGrid(m_textures[1]->getLevel(levelNdx, layerNdx), 4, tcu::RGBA(colorA).toVec()*cScale… in Texture2DArrayFilteringTestInstance()
[all …]
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fTextureSpecificationTests.cpp448 Vec4 colorA = Vec4(1.0f, 0.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()
554 Vec4 colorA = Vec4(1.0f, 0.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()
690 const Vec4 colorA = Vec4(2.0f, 1.5f, -1.0f, 2.0f); in createTexture() local
695 tcu::fillWithGrid(levelData.getAccess(), cellSize, colorA, colorB); in createTexture()
Des31fTextureFormatTests.cpp319 tcu::Vec4 colorA (spec.valueMin.x(), spec.valueMax.y(), spec.valueMin.z(), spec.valueMax.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/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/
DBindUniformLocationTest.cpp237 static const float colorA[] = { in TEST_P() local
251 glUniform2fv(colorALocation, 4, colorA); in TEST_P()
/third_party/vk-gl-cts/modules/gles2/functional/
Des2fTextureSpecificationTests.cpp860 Vec4 colorA (1.0f, 0.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()
911 Vec4 colorA (1.0f, 0.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()
980 Vec4 colorA = randomVector<4>(rnd); in createTexture() local
985 tcu::fillWithGrid(data.getAccess(), cellSize, colorA, colorB); in createTexture()
1055 Vec4 colorA = randomVector<4>(rnd); in createTexture() local
1060 tcu::fillWithGrid(data.getAccess(), cellSize, colorA, colorB); in createTexture()
1450 Vec4 colorA = randomVector<4>(rnd); in createTexture() local
1455 tcu::fillWithGrid(data.getAccess(), cellSize, colorA, colorB); in createTexture()
[all …]
Des2fShaderTextureFunctionTests.cpp343 Vec4 colorA = cBias + cScale*Vec4(fA, fB, fA, fB); in initTexture() local
347 …rid(m_texture2D->getRefTexture().getLevel(level), de::max(1, baseCellSize>>level), colorA, colorB); in initTexture()
380 Vec4 colorA = cBias + cScale*f.swizzle(swzA[0], swzA[1], swzA[2], swzA[3]); in initTexture() local
384 …xture().getLevelFace(level, (tcu::CubeFace)face), de::max(1, baseCellSize>>level), colorA, colorB); in initTexture()
Des2fTextureFilteringTests.cpp195 deUint32 colorA = 0xff000000 | rgb; in init() local
199 …tcu::fillWithGrid(m_textures[1]->getRefTexture().getLevel(levelNdx), 4, tcu::RGBA(colorA).toVec()*… in init()
469 deUint32 colorA = 0xff000000 | rgb; in init() local
473 …etRefTexture().getLevelFace(levelNdx, (tcu::CubeFace)face), 4, tcu::RGBA(colorA).toVec()*cScale + … in init()
Des2fVertexTextureTests.cpp511 const deUint32 colorA = 0xff000000 | rgb; in init() local
515 …tcu::fillWithGrid(m_textures[1]->getRefTexture().getLevel(levelNdx), 4, tcu::RGBA(colorA).toVec()*… in init()
833 const deUint32 colorA = 0xff000000 | rgb; in init() local
837 …etRefTexture().getLevelFace(levelNdx, (tcu::CubeFace)face), 4, tcu::RGBA(colorA).toVec()*cScale + … in init()
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DBindUniformLocationTest.cpp237 static const float colorA[] = { in TEST_P() local
251 glUniform2fv(colorALocation, 4, colorA); in TEST_P()
/third_party/vk-gl-cts/modules/gles2/accuracy/
Des2aTextureFilteringTests.cpp165 deUint32 colorA = 0xff000000 | rgb; in init() local
169 …tcu::fillWithGrid(m_textures[1]->getRefTexture().getLevel(levelNdx), 4, tcu::RGBA(colorA).toVec()*… in init()
437 deUint32 colorA = 0xff000000 | rgb; in init() local
441 …etRefTexture().getLevelFace(levelNdx, (tcu::CubeFace)face), 4, tcu::RGBA(colorA).toVec()*cScale + … in init()
/third_party/vk-gl-cts/modules/gles3/accuracy/
Des3aTextureFilteringTests.cpp155 deUint32 colorA = 0xff000000 | rgb; in init() local
159 …tcu::fillWithGrid(m_textures[1]->getRefTexture().getLevel(levelNdx), 4, tcu::RGBA(colorA).toVec()*… in init()
423 deUint32 colorA = 0xff000000 | rgb; in init() local
427 …etRefTexture().getLevelFace(levelNdx, (tcu::CubeFace)face), 4, tcu::RGBA(colorA).toVec()*cScale + … in init()
/third_party/vk-gl-cts/modules/gles31/stress/
Des31sVertexAttributeBindingTests.cpp444 const tcu::Vec4 colorA (0.0f, 1.0f, 0.0f, 1.0f); in createBuffers() local
450 const tcu::Vec4& color = ((x + y) % 2 == 0) ? (colorA) : (colorB); in createBuffers()

12