Home
last modified time | relevance | path

Searched refs:fG (Results 1 – 25 of 120) sorted by relevance

12345

/external/skia/include/core/
DSkColor.h262 float fG; //!< green component member
272 return fA == other.fA && fR == other.fR && fG == other.fG && fB == other.fB;
290 return { fR * scale, fG * scale, fB * scale, fA * scale };
299 return { fR * scale.fR, fG * scale.fG, fB * scale.fB, fA * scale.fA };
315 std::array<float, 4> array() const { return {fR, fG, fB, fA}; } in array()
351 fG >= 0.0f && fG <= 1.0f && in fitsInBytes()
385 return { fR * fA, fG * fA, fB * fA, fA }; in premul()
400 return { fR * invAlpha, fG * invAlpha, fB * invAlpha, fA }; in unpremul()
409 return { fR, fG, fB, 1.0f }; in makeOpaque()
/external/skqp/include/core/
DSkColor.h243 float fG; //!< green component member
253 return fA == other.fA && fR == other.fR && fG == other.fG && fB == other.fB;
271 return { fR * scale, fG * scale, fB * scale, fA * scale };
280 return { fR * scale.fR, fG * scale.fG, fB * scale.fB, fA * scale.fA };
351 return { fR * fA, fG * fA, fB * fA, fA }; in premul()
366 return { fR * invAlpha, fG * invAlpha, fB * invAlpha, fA }; in unpremul()
375 return { fR, fG, fB, 1.0f }; in makeOpaque()
/external/skia/src/gpu/effects/generated/
DGrColorMatrixFragmentProcessor.h28 color.fG = input.fG; in constantOutputForConstantInput()
32 auto v4 = m.map(color.fR, color.fG, color.fB, color.fA) + v; in constantOutputForConstantInput()
37 color.fG = SkTPin(color.fG, 0.f, 1.f); in constantOutputForConstantInput()
43 return {color.fR, color.fG, color.fB, color.fA}; in constantOutputForConstantInput()
DGrOverrideInputFragmentProcessor.cpp44 _outer.literalColor.fG, in emitCode()
76 uint16_t green = SkFloatToHalf(literalColor.fG); in onGetGLSLProcessorKey()
109 uniformColor.fG, in onDumpInfo()
113 literalColor.fG, in onDumpInfo()
DGrRGBToHSLFilterEffect.h25 const auto p = (c.fG < c.fB) ? SkPMColor4f{c.fB, c.fG, -1, 2 / 3.f} in constantOutputForConstantInput()
26 : SkPMColor4f{c.fG, c.fB, 0, -1 / 3.f}, in constantOutputForConstantInput()
/external/skia/src/gpu/gradients/generated/
DGrUnrolledBinaryGradientColorizer.cpp369 scale0_1.fG, in onDumpInfo()
373 scale2_3.fG, in onDumpInfo()
377 scale4_5.fG, in onDumpInfo()
381 scale6_7.fG, in onDumpInfo()
385 scale8_9.fG, in onDumpInfo()
389 scale10_11.fG, in onDumpInfo()
393 scale12_13.fG, in onDumpInfo()
397 scale14_15.fG, in onDumpInfo()
401 bias0_1.fG, in onDumpInfo()
405 bias2_3.fG, in onDumpInfo()
[all …]
DGrDualIntervalGradientColorizer.cpp150 scale01.fG, in onDumpInfo()
154 bias01.fG, in onDumpInfo()
158 scale23.fG, in onDumpInfo()
162 bias23.fG, in onDumpInfo()
DGrSingleIntervalGradientColorizer.cpp95 start.fG, in onDumpInfo()
99 end.fG, in onDumpInfo()
/external/skia/src/gpu/effects/
DGrColorMatrixFragmentProcessor.fp44 color.fG = input.fG;
48 auto v4 = m.map(color.fR, color.fG, color.fB, color.fA) + v;
53 color.fG = SkTPin(color.fG, 0.f, 1.f);
59 return {color.fR, color.fG, color.fB, color.fA};
DGrDistanceFieldGeoProc.h211 SkScalar fR, fG, fB; member
214 result.fR = r; result.fG = g; result.fB = b; in Make()
218 return (fR == wa.fR && fG == wa.fG && fB == wa.fB);
DGrRGBToHSLFilterEffect.fp62 const auto p = (c.fG < c.fB) ? SkPMColor4f{ c.fB, c.fG, -1, 2/3.f }
63 : SkPMColor4f{ c.fG, c.fB, 0, -1/3.f },
/external/skia/src/core/
DSkMaskGamma.h181 : fParent(std::move(parent)), fR(r), fG(g), fB(b) { } in SkTMaskPreBlend()
187 SkTMaskPreBlend() : fParent(), fR(nullptr), fG(nullptr), fB(nullptr) { } in SkTMaskPreBlend()
194 : fParent(that.fParent), fR(that.fR), fG(that.fG), fB(that.fB) { } in SkTMaskPreBlend()
199 bool isApplicable() const { return SkToBool(this->fG); } in isApplicable()
202 const uint8_t* fG; variable
DSkCompressedDataUtils.cpp75 int fR, fG, fB; member
80 int g8 = SkTPin(col.fG + delta, 0, 255); in add_delta_and_clamp()
106 colors[0].fG = extend_5To8bits(high >> 19); in decompress_etc1()
107 colors[1].fG = extend_5plus3To8Bits(high >> 19, high >> 16); in decompress_etc1()
113 colors[0].fG = extend_4To8bits(high >> 20); in decompress_etc1()
114 colors[1].fG = extend_4To8bits(high >> 16); in decompress_etc1()
/external/skqp/src/core/
DSkMaskGamma.h181 : fParent(std::move(parent)), fR(r), fG(g), fB(b) { } in SkTMaskPreBlend()
187 SkTMaskPreBlend() : fParent(), fR(nullptr), fG(nullptr), fB(nullptr) { } in SkTMaskPreBlend()
194 : fParent(that.fParent), fR(that.fR), fG(that.fG), fB(that.fB) { } in SkTMaskPreBlend()
199 bool isApplicable() const { return SkToBool(this->fG); } in isApplicable()
202 const uint8_t* fG; variable
/external/skia/tests/
DSRGBTest.cpp120 rgba[i].fR, rgba[i].fG, rgba[i].fB, in DEF_TEST()
121 want.fR, want.fG, want.fB); in DEF_TEST()
124 REPORTER_ASSERT(r, close(rgba[i].fG, want.fG)); in DEF_TEST()
DProcessorTest.cpp480 SkASSERT(inf[i].fR == 0 && inf[i].fG == 0 && inf[i].fB == 0); in legal_modulation()
504 inf[i].fR, inf[i].fG, inf[i].fB, inf[i].fA, in legal_modulation()
505 outf[i].fR, outf[i].fG, outf[i].fB, outf[i].fA, in legal_modulation()
506 expectedForColorModulation[i].fR, expectedForColorModulation[i].fG, in legal_modulation()
519 inf[i].fR, inf[i].fG, inf[i].fB, inf[i].fA, in legal_modulation()
520 outf[i].fR, outf[i].fG, outf[i].fB, outf[i].fA, in legal_modulation()
521 expectedForAlphaModulation[i].fR, expectedForAlphaModulation[i].fG, in legal_modulation()
704 float gDiff = fabsf(output4f.fG - expected4f.fG); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
718 kTol, input4f.fR, input4f.fG, input4f.fB, input4f.fA, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
719 output4f.fR, output4f.fG, output4f.fB, output4f.fA, in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
[all …]
/external/skqp/tests/
DSRGBTest.cpp125 rgba[i].fR, rgba[i].fG, rgba[i].fB, in test_roundtripping()
126 want.fR, want.fG, want.fB); in test_roundtripping()
129 REPORTER_ASSERT(r, close(rgba[i].fG, want.fG)); in test_roundtripping()
/external/skia/modules/skottie/src/effects/
DShiftChannelsEffect.cpp55 .bind(kTakeGreenFrom_Index, fG) in ShiftChannelsEffectAdapter()
100 const float* gc = coeffs(fG); in onSync()
117 fG = static_cast<float>(Source::kGreen),
/external/skia/tests/sksl/dslfp/
DGrDSLFPTest_Ternary.dsl.cpp130fG, colorGreen.fB, colorGreen.fA, colorRed.fR, colorRed.fG, colorRed.fB, colorRed.fA, colorOrange.… in onDumpInfo()
DGrDSLFPTest_ForStatement.dsl.cpp28 …ifier, DSLType(kHalf4_Type), "colorWhite", Half4(colorWhite.fR, colorWhite.fG, colorWhite.fB, colo… in emitCode()
53 uint16_t green = SkFloatToHalf(colorWhite.fG); in onGetGLSLProcessorKey()
75 …return SkStringPrintf("(colorWhite=half4(%f, %f, %f, %f))", colorWhite.fR, colorWhite.fG, colorWhi… in onDumpInfo()
/external/skqp/docs/
DSkColor4f_Reference.bmh17 fA Alpha is may be greater or smaller than fG green, fB blue, or fR red.
21 fA Alpha is equal to or larger than fG green, fB blue, and fR red. The values
22 stored in fG, fB, and fR combine the color component with the Alpha component.
32 #Member float fG
144 SkDebugf("red=%g green=%g blue=%g alpha=%g\n", color.fR, color.fG, color.fB, color.fA);
169 SkDebugf("red=%g green=%g blue=%g alpha=%g\n", color.fR, color.fG, color.fB, color.fA);
249 SkDebugf("red=%g green=%g blue=%g alpha=%g\n", color4f.fR, color4f.fG, color4f.fB, color4f.fA);
280 SkDebugf("red=%g green=%g blue=%g alpha=%g\n", fromSkColor.fR, fromSkColor.fG,
/external/skqp/src/gpu/effects/
DGrDistanceFieldGeoProc.h200 SkScalar fR, fG, fB; member
203 result.fR = r; result.fG = g; result.fB = b; in Make()
207 return (fR == wa.fR && fG == wa.fG && fB == wa.fB);
/external/skqp/include/private/
DGrColor.h78 color.fG >= 0.0f && color.fG <= 1.0f && in SkPMColor4fFitsInBytes()
/external/skqp/src/shaders/gradients/
DSkGradientShader.cpp220 (ctx->fs[1])[stop] = Fs.fG; in add_stop_color()
224 (ctx->bs[1])[stop] = Bs.fG; in add_stop_color()
240 (c_r.fG - c_l.fG) * gapCount, in init_stop_evenly()
246 c_l.fG - Fs.fG*(stop/gapCount), in init_stop_evenly()
260 (c_r.fG - c_l.fG) / (t_r - t_l), in init_stop_pos()
266 c_l.fG - Fs.fG*t_l, in init_stop_pos()
319 : SkPMColor4f{ c.fR, c.fG, c.fB, c.fA }; in onAppendStages()
/external/skia/src/shaders/gradients/
DSkGradientShader.cpp223 (ctx->fs[1])[stop] = Fs.fG; in add_stop_color()
228 (ctx->bs[1])[stop] = Bs.fG; in add_stop_color()
244 (c_r.fG - c_l.fG) * gapCount, in init_stop_evenly()
250 c_l.fG - Fs.fG*(stop/gapCount), in init_stop_evenly()
264 (c_r.fG - c_l.fG) / (t_r - t_l), in init_stop_pos()
270 c_l.fG - Fs.fG*t_l, in init_stop_pos()
324 : SkPMColor4f{ c.fR, c.fG, c.fB, c.fA }; in onAppendStages()

12345