HomeSort by relevance Sort by last modified time
    Searched defs:xform (Results 1 - 25 of 70) sorted by null

1 2 3

  /external/skia/bench/
ColorCodecBench.cpp 16 DEFINE_bool(xform_only, false, "Only time the color xform, do not include the decode time");
24 fName.appendf("Color%s", FLAGS_xform_only ? "Xform" : "Codec");
45 std::unique_ptr<SkColorSpaceXform> xform = SkColorSpaceXform::New(fSrcSpace.get(), local
47 SkASSERT(xform);
52 SkAssertResult(xform->apply(select_xform_format(fDstInfo.colorType()), dst,
  /external/skia/gm/
colorspacexform.cpp 43 std::unique_ptr<SkColorSpaceXform> xform = SkColorSpaceXform::New(srcSpace.get(), variable
45 xform->apply(SkColorSpaceXform::kRGBA_F32_ColorFormat, fWideGamutColors0,
51 xform = SkColorSpaceXform::New(srcSpace.get(), dstSpace.get());
52 xform->apply(SkColorSpaceXform::kRGBA_F32_ColorFormat, fWideGamutColors1,
makecolorspace.cpp 29 sk_sp<SkImage> xform = orig->makeColorSpace(colorSpace, behavior); local
31 // Assign an sRGB color space on the xformed image, so we can see the effects of the xform
37 return SkImageMakeRasterCopyAndAssignColorSpace(xform.get(), srgb.get());
readpixels.cpp 143 auto xform = SkColorSpaceXform::New(dstColorSpace.get(), dstColorSpace.get()); local
144 if (!xform->apply(select_xform_format(dstColorType), data->writable_data(),
drawatlas.cpp 61 void apply(SkRSXform* xform) const {
63 xform->fSCos = fScale * SkScalarCos(rad);
64 xform->fSSin = fScale * SkScalarSin(rad);
65 xform->fTx = fTx;
66 xform->fTy = fTy;
76 SkRSXform xform[N]; variable
81 rec[i].apply(&xform[i]);
90 canvas->drawAtlas(atlas.get(), xform, tex, N, nullptr, &paint);
92 canvas->drawAtlas(atlas.get(), xform, tex, colors, N, SkBlendMode::kSrcIn, nullptr, &paint);
112 SkRSXform* xform = (SkRSXform*)storage.get() local
237 const SkRSXform xform = SkRSXform::Make(1, 0, 0, 0); local
    [all...]
  /external/skia/include/core/
SkRSXform.h 23 SkRSXform xform = { scos, ssin, tx, ty }; local
24 return xform;
28 * Initialize a new xform based on the scale, rotation (in radians), final tx,ty location
  /external/skqp/bench/
ColorCodecBench.cpp 16 DEFINE_bool(xform_only, false, "Only time the color xform, do not include the decode time");
24 fName.appendf("Color%s", FLAGS_xform_only ? "Xform" : "Codec");
45 std::unique_ptr<SkColorSpaceXform> xform = SkColorSpaceXform::New(fSrcSpace.get(), local
47 SkASSERT(xform);
52 SkAssertResult(xform->apply(select_xform_format(fDstInfo.colorType()), dst,
  /external/skqp/gm/
colorspacexform.cpp 43 std::unique_ptr<SkColorSpaceXform> xform = SkColorSpaceXform::New(srcSpace.get(), variable
45 xform->apply(SkColorSpaceXform::kRGBA_F32_ColorFormat, fWideGamutColors0,
51 xform = SkColorSpaceXform::New(srcSpace.get(), dstSpace.get());
52 xform->apply(SkColorSpaceXform::kRGBA_F32_ColorFormat, fWideGamutColors1,
makecolorspace.cpp 29 sk_sp<SkImage> xform = orig->makeColorSpace(colorSpace, behavior); local
31 // Assign an sRGB color space on the xformed image, so we can see the effects of the xform
37 return SkImageMakeRasterCopyAndAssignColorSpace(xform.get(), srgb.get());
readpixels.cpp 142 auto xform = SkColorSpaceXform::New(dstColorSpace.get(), dstColorSpace.get()); local
143 if (!xform->apply(select_xform_format(dstColorType), data->writable_data(),
  /external/skqp/include/core/
SkRSXform.h 23 SkRSXform xform = { scos, ssin, tx, ty }; local
24 return xform;
28 * Initialize a new xform based on the scale, rotation (in radians), final tx,ty location
  /external/skia/src/core/
SkColorSpaceXform.cpp 591 auto xform = skstd::make_unique<SkColorSpaceXform_XYZ>(space, space, local
593 xform->pretendNotToBeIdentityForTesting();
594 return std::move(xform);
SkConvertPixels.cpp 91 // Fast Path 3: Color space xform.
151 std::unique_ptr<SkColorSpaceXform> xform = local
153 SkASSERT(xform);
156 SkAssertResult(xform->apply(dstFormat, dstPixels, srcFormat, srcPixels, dstInfo.width(),
369 // Fast Path 3: Color space xform.
  /external/skia/src/gpu/glsl/
GrGLSLShaderBuilder.cpp 102 SkString xform; local
103 this->appendColorGamutXform(&xform, lookup.c_str(), colorXformHelper);
105 this->codeAppendf("%s * %s", modulation, xform.c_str());
107 this->codeAppendf("%s", xform.c_str());
124 // one does an arbitrary transfer function, and the last does gamut xform. Any combination of
162 const char* xform = uniformHandler->getUniformCStr(colorXformHelper->gamutXformUniform()); local
164 body.appendf("color.rgb = clamp((%s * half4(color.rgb, 1.0)).rgb, 0.0, color.a);", xform);
197 SkString xform; local
198 this->appendColorGamutXform(&xform, srcColor, colorXformHelper);
199 this->codeAppend(xform.c_str())
    [all...]
  /external/skia/tests/
ColorSpaceXformTest.cpp 27 // Use special testing entry point, so we don't skip the xform, even though src == dst.
81 // Create and perform an identity xform.
82 std::unique_ptr<SkColorSpaceXform> xform = ColorSpaceXformTest::CreateIdentityXform(gammas); local
83 bool result = xform->apply(select_xform_format(kN32_SkColorType), dstPixels,
117 // Create and perform an identity xform.
118 auto xform = ColorSpaceXformTest::CreateIdentityXform_A2B(gammaNamed, gammas); local
119 bool result = xform->apply(select_xform_format(kN32_SkColorType), dstPixels,
288 // to test the xform on
313 auto xform = SkColorSpaceXform::New(srcSpace.get(), dstSpace.get()); local
314 bool result = xform->apply(SkColorSpaceXform::kRGBA_8888_ColorFormat, dstPixels.get()
336 std::unique_ptr<SkColorSpaceXform> xform = SkColorSpaceXform::New(p3.get(), srgb.get()); local
    [all...]
  /external/skqp/experimental/GLFWTest/
glfw_main.cpp 88 SkRSXform xform[kGrid*kGrid+1]; local
114 xform[currIndex] = SkRSXform::MakeFromRadians(2.0f, SK_ScalarPI*0.5f,
120 xform[currIndex] = SkRSXform::MakeFromRadians(2.0f, SK_ScalarPI*0.5f,
153 SkScalar c = xform[i].fSCos;
154 SkScalar s = xform[i].fSSin;
159 xform[i].fSCos = kCosDiff*c - kSinDiff*s;
160 xform[i].fSSin = kSinDiff*c + kCosDiff*s;
162 dx -= xform[i].fSCos*anchorX - xform[i].fSSin*anchorY;
163 dy -= xform[i].fSSin*anchorX + xform[i].fSCos*anchorY
    [all...]
  /external/skqp/src/core/
SkColorSpaceXform.cpp 591 auto xform = skstd::make_unique<SkColorSpaceXform_XYZ>(space, space, local
593 xform->pretendNotToBeIdentityForTesting();
594 return std::move(xform);
SkConvertPixels.cpp 91 // Fast Path 3: Color space xform.
151 std::unique_ptr<SkColorSpaceXform> xform = local
153 SkASSERT(xform);
156 SkAssertResult(xform->apply(dstFormat, dstPixels, srcFormat, srcPixels, dstInfo.width(),
369 // Fast Path 3: Color space xform.
  /external/skqp/src/gpu/glsl/
GrGLSLShaderBuilder.cpp 102 SkString xform; local
103 this->appendColorGamutXform(&xform, lookup.c_str(), colorXformHelper);
105 this->codeAppendf("%s * %s", modulation, xform.c_str());
107 this->codeAppendf("%s", xform.c_str());
124 // one does an arbitrary transfer function, and the last does gamut xform. Any combination of
162 const char* xform = uniformHandler->getUniformCStr(colorXformHelper->gamutXformUniform()); local
164 body.appendf("color.rgb = clamp((%s * half4(color.rgb, 1.0)).rgb, 0.0, color.a);", xform);
197 SkString xform; local
198 this->appendColorGamutXform(&xform, srcColor, colorXformHelper);
199 this->codeAppend(xform.c_str())
    [all...]
  /external/skqp/tests/
ColorSpaceXformTest.cpp 27 // Use special testing entry point, so we don't skip the xform, even though src == dst.
81 // Create and perform an identity xform.
82 std::unique_ptr<SkColorSpaceXform> xform = ColorSpaceXformTest::CreateIdentityXform(gammas); local
83 bool result = xform->apply(select_xform_format(kN32_SkColorType), dstPixels,
117 // Create and perform an identity xform.
118 auto xform = ColorSpaceXformTest::CreateIdentityXform_A2B(gammaNamed, gammas); local
119 bool result = xform->apply(select_xform_format(kN32_SkColorType), dstPixels,
288 // to test the xform on
313 auto xform = SkColorSpaceXform::New(srcSpace.get(), dstSpace.get()); local
314 bool result = xform->apply(SkColorSpaceXform::kRGBA_8888_ColorFormat, dstPixels.get()
336 std::unique_ptr<SkColorSpaceXform> xform = SkColorSpaceXform::New(p3.get(), srgb.get()); local
    [all...]
  /external/pdfium/third_party/lcms/src/
cmsgmt.c 42 cmsHTRANSFORM xform; local
74 xform = cmsCreateExtendedTransform(ContextID, nProfiles + 1, ProfileList,
85 return xform;
103 cmsHTRANSFORM xform; local
108 xform = _cmsChain2Lab(ContextID, nProfiles, TYPE_CMYK_FLT, TYPE_Lab_DBL, Intents, hProfiles, BPC, AdaptationStates, dwFlags);
109 if (xform == NULL) return NULL;
121 cmsDoTransform(xform, cmyk, &Lab, 1);
129 cmsDeleteTransform(xform);
435 // Evaluate the xform
cmssamp.c 45 cmsHTRANSFORM xform; local
54 xform = cmsCreateExtendedTransform(ContextID, 4, hProfiles, BPC, Intents,
58 return xform;
70 cmsHTRANSFORM xform; local
112 xform = cmsCreateTransformTHR(ContextID, hInput, dwFormat,
116 if (xform == NULL) {
124 cmsDoTransform(xform, Black, &Lab, 1);
131 cmsDeleteTransform(xform);
  /external/skia/samplecode/
SampleAtlas.cpp 21 static void draw_atlas(SkCanvas* canvas, SkImage* atlas, const SkRSXform xform[],
24 canvas->drawAtlas(atlas, xform, tex, colors, count, SkBlendMode::kModulate, cull, paint);
27 static void draw_atlas_sim(SkCanvas* canvas, SkImage* atlas, const SkRSXform xform[],
32 matrix.setRSXform(xform[i]);
175 SkRSXform xform[N]; variable
180 xform[i] = fRec[i].asRSXform();
190 fProc(canvas, fAtlas.get(), xform, fTex, colorsPtr, N, &cull, &paint);
  /external/skia/src/gpu/
GrColorSpaceXform.cpp 45 // implies no xform is necessary, so nullptr should be returned. This particular case should
86 // just the gamut xform.
128 // Determine if a gamut xform is needed
161 sk_sp<GrColorSpaceXform> xform = gCache->findOrAdd(key, makeXform); local
163 return xform;
165 // If our xform has non-gamut components, or we can't get the spin lock, just build it
192 // This transform step should only happen with textures (not CPU xform of individual values)
  /external/skia/src/gpu/ops/
GrDrawAtlasOp.cpp 206 SkRSXform xform = SkRSXform::MakeFromRadians(random->nextRangeScalar(kMinScale, kMaxScale), local
212 return xform;

Completed in 535 milliseconds

1 2 3