Home
last modified time | relevance | path

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

/external/skia/src/core/
DSkColorSpaceXformPriv.h85 static inline SkColorSpaceXform::ColorFormat select_xform_format(SkColorType colorType) { in select_xform_format()
88 return SkColorSpaceXform::kRGBA_8888_ColorFormat; in select_xform_format()
90 return SkColorSpaceXform::kBGRA_8888_ColorFormat; in select_xform_format()
92 return SkColorSpaceXform::kRGBA_F16_ColorFormat; in select_xform_format()
94 return SkColorSpaceXform::kBGR_565_ColorFormat; in select_xform_format()
97 return SkColorSpaceXform::kRGBA_8888_ColorFormat; in select_xform_format()
DSkColorSpaceXform_Base.h18 class SkColorSpaceXform_Base : public SkColorSpaceXform {
22 static std::unique_ptr<SkColorSpaceXform> New(SkColorSpace* srcSpace, SkColorSpace* dstSpace,
33 friend class SkColorSpaceXform; variable
83 friend std::unique_ptr<SkColorSpaceXform> SlowIdentityXform(SkColorSpace_XYZ* space);
102 std::unique_ptr<SkColorSpaceXform> SlowIdentityXform(SkColorSpace_XYZ* space);
DSkColorSpaceXformer.cpp18 std::unique_ptr<SkColorSpaceXform> fromSRGB = SkColorSpaceXform_Base::New( in Make()
47 SkAssertResult(fFromSRGB->apply(SkColorSpaceXform::kBGRA_8888_ColorFormat, xformed, in apply()
48 SkColorSpaceXform::kBGRA_8888_ColorFormat, srgb, in apply()
DSkColorSpaceXform.cpp293 std::unique_ptr<SkColorSpaceXform> SkColorSpaceXform::New(SkColorSpace* srcSpace, in New()
298 std::unique_ptr<SkColorSpaceXform> SkColorSpaceXform_Base::New(SkColorSpace* srcSpace, in New()
314 return std::unique_ptr<SkColorSpaceXform>(new SkColorSpaceXform_A2B(src, dst)); in New()
336 return std::unique_ptr<SkColorSpaceXform>(new SkColorSpaceXform_XYZ in New()
339 return std::unique_ptr<SkColorSpaceXform>(new SkColorSpaceXform_XYZ in New()
342 return std::unique_ptr<SkColorSpaceXform>(new SkColorSpaceXform_XYZ in New()
1015 SkColorSpaceXform::ColorFormat srcColorFormat, in apply_set_src()
1018 case SkColorSpaceXform::kRGBA_8888_ColorFormat: in apply_set_src()
1027 case SkColorSpaceXform::kBGRA_8888_ColorFormat: in apply_set_src()
1134 bool SkColorSpaceXform::apply(ColorFormat dstColorFormat, void* dst, ColorFormat srcColorFormat, in apply()
[all …]
DSkColorSpaceXformer.h31 std::unique_ptr<SkColorSpaceXform> fFromSRGB;
DSkConvertPixels.cpp123 SkColorSpaceXform::ColorFormat dstFormat = select_xform_format(dstInfo.colorType()); in apply_color_xform()
124 SkColorSpaceXform::ColorFormat srcFormat = select_xform_format(srcInfo.colorType()); in apply_color_xform()
149 std::unique_ptr<SkColorSpaceXform> xform = in apply_color_xform()
/external/skia/gm/
Dcolorspacexform.cpp43 std::unique_ptr<SkColorSpaceXform> xform = SkColorSpaceXform::New(srcSpace.get(), in onOnceBeforeDraw()
45 xform->apply(SkColorSpaceXform::kRGBA_F32_ColorFormat, fWideGamutColors0, in onOnceBeforeDraw()
46 SkColorSpaceXform::kBGRA_8888_ColorFormat, colors, kNumColors, in onOnceBeforeDraw()
51 xform = SkColorSpaceXform::New(srcSpace.get(), dstSpace.get()); in onOnceBeforeDraw()
52 xform->apply(SkColorSpaceXform::kRGBA_F32_ColorFormat, fWideGamutColors1, in onOnceBeforeDraw()
53 SkColorSpaceXform::kRGBA_F32_ColorFormat, fSRGBColors, kNumColors, in onOnceBeforeDraw()
Dgammaencodedpremul.cpp32 , fXform(SkColorSpaceXform::New(src.get(), dst.get())) in GammaEncodedPremulGM()
79 SkColorSpaceXform::kBGRA_8888_ColorFormat, row, kAlphaMax, in onDraw()
91 SkColorSpaceXform::kBGRA_8888_ColorFormat, pixels, kAlphaMax, in onDraw()
111 std::unique_ptr<SkColorSpaceXform> fXform;
Dreadpixels.cpp141 auto xform = SkColorSpaceXform::New(dstColorSpace.get(), dstColorSpace.get()); in draw_image()
/external/skia/src/codec/
DSkCodecPriv.h123 const SkPMColor* colorPtr, uint8_t fillIndex, SkColorSpaceXform* colorXform, bool isRGBA) { in get_color_table_fill_value()
137 SkColorSpaceXform::ColorFormat srcFormat = in get_color_table_fill_value()
138 isRGBA ? SkColorSpaceXform::kRGBA_8888_ColorFormat in get_color_table_fill_value()
139 : SkColorSpaceXform::kBGRA_8888_ColorFormat; in get_color_table_fill_value()
368 static inline SkColorSpaceXform::ColorFormat select_xform_format_ct(SkColorType colorType) { in select_xform_format_ct()
371 return SkColorSpaceXform::kRGBA_8888_ColorFormat; in select_xform_format_ct()
373 return SkColorSpaceXform::kBGRA_8888_ColorFormat; in select_xform_format_ct()
377 return SkColorSpaceXform::kRGBA_8888_ColorFormat; in select_xform_format_ct()
379 return SkColorSpaceXform::kBGRA_8888_ColorFormat; in select_xform_format_ct()
383 return SkColorSpaceXform::kRGBA_8888_ColorFormat; in select_xform_format_ct()
DSkPngCodec.cpp301 const SkColorSpaceXform::ColorFormat dstFormat = in createColorTable()
303 const SkColorSpaceXform::ColorFormat srcFormat = select_xform_format(kXformSrcColorType); in createColorTable()
465 static SkColorSpaceXform::ColorFormat png_select_xform_format(const SkEncodedInfo& info) { in png_select_xform_format()
469 return SkColorSpaceXform::kRGBA_U16_BE_ColorFormat; in png_select_xform_format()
471 return SkColorSpaceXform::kRGB_U16_BE_ColorFormat; in png_select_xform_format()
475 return SkColorSpaceXform::kRGBA_8888_ColorFormat; in png_select_xform_format()
479 const SkColorSpaceXform::ColorFormat srcColorFormat = in applyXformRow()
DSkBmpStandardCodec.cpp128 SkColorSpaceXform::ColorFormat dstFormat = select_xform_format_ct(dstColorType); in createColorTable()
129 SkColorSpaceXform::ColorFormat srcFormat = SkColorSpaceXform::kBGRA_8888_ColorFormat; in createColorTable()
DSkGifCodec.cpp169 const SkColorSpaceXform::ColorFormat dstFormat = in initializeColorTable()
171 const SkColorSpaceXform::ColorFormat srcFormat = select_xform_format(kXformSrcColorType); in initializeColorTable()
511 const SkColorSpaceXform::ColorFormat dstFormat = select_xform_format(dstInfo.colorType()); in applyXformRow()
512 const SkColorSpaceXform::ColorFormat srcFormat = select_xform_format(kXformSrcColorType); in applyXformRow()
DSkBmpCodec.cpp650 SkColorSpaceXform* xform = this->colorXform(); in applyColorXform()
652 const SkColorSpaceXform::ColorFormat dstFormat = select_xform_format(dstInfo.colorType()); in applyColorXform()
653 const SkColorSpaceXform::ColorFormat srcFormat = select_xform_format(kXformSrcColorType); in applyColorXform()
DSkPngCodec.h117 SkColorSpaceXform::ColorFormat fXformColorFormat;
DSkWebpCodec.cpp343 SkColorSpaceXform::ColorFormat dstColorFormat = select_xform_format(dstInfo.colorType()); in onGetPixels()
352 SkColorSpaceXform::kBGRA_8888_ColorFormat, xformSrc, scaledWidth, in onGetPixels()
DSkRawCodec.cpp754 const SkColorSpaceXform::ColorFormat srcFormat = in onGetPixels()
756 const SkColorSpaceXform::ColorFormat dstFormat = in onGetPixels()
DSkJpegCodec.cpp536 SkColorSpaceXform::kRGBA_8888_ColorFormat, swizzleDst, dstWidth, in readRows()
/external/skia/include/core/
DSkColorSpaceXform.h15 class SK_API SkColorSpaceXform : SkNoncopyable {
25 static std::unique_ptr<SkColorSpaceXform> New(SkColorSpace* srcSpace, SkColorSpace* dstSpace);
61 virtual ~SkColorSpaceXform() {} in ~SkColorSpaceXform()
64 SkColorSpaceXform() {} in SkColorSpaceXform() function
/external/skia/tests/
DColorSpaceXformTest.cpp23 static std::unique_ptr<SkColorSpaceXform> CreateIdentityXform(const sk_sp<SkGammas>& gammas) { in CreateIdentityXform()
32 static std::unique_ptr<SkColorSpaceXform> CreateIdentityXform_A2B( in CreateIdentityXform_A2B()
58 return SkColorSpaceXform::New(static_cast<SkColorSpace_A2B*>(srcSpace.get()), in CreateIdentityXform_A2B()
84 std::unique_ptr<SkColorSpaceXform> xform = ColorSpaceXformTest::CreateIdentityXform(gammas); in test_identity_xform()
86 SkColorSpaceXform::kBGRA_8888_ColorFormat, srcPixels, width, in test_identity_xform()
122 SkColorSpaceXform::kBGRA_8888_ColorFormat, srcPixels, width, in test_identity_xform_A2B()
309 auto xform = SkColorSpaceXform::New(srcSpace.get(), dstSpace.get()); in DEF_TEST()
310 bool result = xform->apply(SkColorSpaceXform::kRGBA_8888_ColorFormat, dstPixels.get(), in DEF_TEST()
311 SkColorSpaceXform::kRGBA_8888_ColorFormat, srcPixels.get(), in DEF_TEST()
331 std::unique_ptr<SkColorSpaceXform> xform = SkColorSpaceXform::New(adobe.get(), srgb.get()); in DEF_TEST()
[all …]
/external/skia/bench/
DColorCodecBench.cpp48 std::unique_ptr<SkColorSpaceXform> xform = SkColorSpaceXform::New(fSrcSpace.get(), in xformOnly()
56 SkColorSpaceXform::kRGBA_8888_ColorFormat, src, in xformOnly()
/external/skia/include/codec/
DSkCodec.h24 class SkColorSpaceXform; variable
795 SkColorSpaceXform* colorXform() const { return fColorXform.get(); } in colorXform()
817 std::unique_ptr<SkColorSpaceXform> fColorXform;
/external/skia/src/image/
DSkImage_Raster.cpp375 std::unique_ptr<SkColorSpaceXform> xform = SkColorSpaceXform_Base::New( in do_color_xform_non_linear_blending()
389 SkColorSpaceXform::ColorFormat fmt = select_xform_format(kN32_SkColorType); in do_color_xform_non_linear_blending()
/external/skia/gn/
Dcore.gni88 "$_src/core/SkColorSpaceXform.cpp",
/external/skia/
DAndroid.bp138 "src/core/SkColorSpaceXform.cpp",