Home
last modified time | relevance | path

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

123

/external/skia/src/core/
DSkBlendMode.cpp64 void SkBlendMode_AppendStagesNoClamp(SkBlendMode mode, SkRasterPipeline* p) { in SkBlendMode_AppendStagesNoClamp()
65 auto stage = SkRasterPipeline::srcover; in SkBlendMode_AppendStagesNoClamp()
67 case SkBlendMode::kClear: stage = SkRasterPipeline::clear; break; in SkBlendMode_AppendStagesNoClamp()
69 case SkBlendMode::kDst: stage = SkRasterPipeline::move_dst_src; break; in SkBlendMode_AppendStagesNoClamp()
70 case SkBlendMode::kSrcOver: stage = SkRasterPipeline::srcover; break; in SkBlendMode_AppendStagesNoClamp()
71 case SkBlendMode::kDstOver: stage = SkRasterPipeline::dstover; break; in SkBlendMode_AppendStagesNoClamp()
72 case SkBlendMode::kSrcIn: stage = SkRasterPipeline::srcin; break; in SkBlendMode_AppendStagesNoClamp()
73 case SkBlendMode::kDstIn: stage = SkRasterPipeline::dstin; break; in SkBlendMode_AppendStagesNoClamp()
74 case SkBlendMode::kSrcOut: stage = SkRasterPipeline::srcout; break; in SkBlendMode_AppendStagesNoClamp()
75 case SkBlendMode::kDstOut: stage = SkRasterPipeline::dstout; break; in SkBlendMode_AppendStagesNoClamp()
[all …]
DSkRasterPipelineBlitter.cpp27 const SkRasterPipeline& shaderPipeline,
52 void append_load_d(SkRasterPipeline*) const;
53 void append_blend (SkRasterPipeline*) const;
54 void maybe_clamp (SkRasterPipeline*) const;
55 void append_store (SkRasterPipeline*) const;
64 SkRasterPipeline fColorPipeline;
122 shaderPipeline.append(SkRasterPipeline::scale_1_float, in SkCreateRasterPipelineBlitter()
135 const SkRasterPipeline& shaderPipeline, in SkCreateRasterPipelineBlitter()
146 const SkRasterPipeline& shaderPipeline, in Create()
162 colorPipeline->append(SkRasterPipeline::load_f32, &blitter->fShaderOutput); in Create()
[all …]
DSkRasterPipeline.cpp11 SkRasterPipeline::SkRasterPipeline(SkArenaAlloc* alloc) : fAlloc(alloc) { in SkRasterPipeline() function in SkRasterPipeline
14 void SkRasterPipeline::reset() { in reset()
20 void SkRasterPipeline::append(StockStage stage, void* ctx) { in append()
24 void SkRasterPipeline::unchecked_append(StockStage stage, void* ctx) { in unchecked_append()
30 void SkRasterPipeline::extend(const SkRasterPipeline& src) { in extend()
51 void SkRasterPipeline::dump() const { in dump()
79 void SkRasterPipeline::append_uniform_color(SkArenaAlloc* alloc, const SkPM4f& c) { in append_uniform_color()
110 void SkRasterPipeline::append_from_srgb(SkAlphaType at) { in append_from_srgb()
113 this->append(SkRasterPipeline::clamp_a); in append_from_srgb()
117 void SkRasterPipeline::append_from_srgb_dst(SkAlphaType at) { in append_from_srgb_dst()
[all …]
DSkColorSpaceXform_A2B.cpp26 pipeline.append(SkRasterPipeline::load_bgra, &src); in onApply()
29 pipeline.append(SkRasterPipeline::load_8888, &src); in onApply()
32 pipeline.append(SkRasterPipeline::load_u16_be, &src); in onApply()
35 pipeline.append(SkRasterPipeline::load_rgb_u16_be, &src); in onApply()
45 pipeline.append(SkRasterPipeline::premul); in onApply()
50 pipeline.append(SkRasterPipeline::store_bgra, &dst); in onApply()
53 pipeline.append(SkRasterPipeline::store_8888, &dst); in onApply()
59 pipeline.append(SkRasterPipeline::store_f16, &dst); in onApply()
65 pipeline.append(SkRasterPipeline::store_f32, &dst); in onApply()
71 pipeline.append(SkRasterPipeline::store_565, &dst); in onApply()
[all …]
DSkConvertPixels.cpp270 pipeline.append(SkRasterPipeline::load_8888, &srcRow); in convert_with_pipeline()
273 pipeline.append(SkRasterPipeline::load_bgra, &srcRow); in convert_with_pipeline()
276 pipeline.append(SkRasterPipeline::load_565, &srcRow); in convert_with_pipeline()
279 pipeline.append(SkRasterPipeline::load_f16, &srcRow); in convert_with_pipeline()
282 pipeline.append(SkRasterPipeline::load_g8, &srcRow); in convert_with_pipeline()
285 pipeline.append(SkRasterPipeline::load_4444, &srcRow); in convert_with_pipeline()
294 pipeline.append(SkRasterPipeline::unpremul); in convert_with_pipeline()
303 pipeline.append(SkRasterPipeline::parametric_r, &srcFn); in convert_with_pipeline()
304 pipeline.append(SkRasterPipeline::parametric_g, &srcFn); in convert_with_pipeline()
305 pipeline.append(SkRasterPipeline::parametric_b, &srcFn); in convert_with_pipeline()
[all …]
DSkRasterPipeline.h97 class SkRasterPipeline {
99 explicit SkRasterPipeline(SkArenaAlloc*);
101 SkRasterPipeline(const SkRasterPipeline&) = delete;
102 SkRasterPipeline(SkRasterPipeline&&) = default;
104 SkRasterPipeline& operator=(const SkRasterPipeline&) = delete;
105 SkRasterPipeline& operator=(SkRasterPipeline&&) = default;
118 void extend(const SkRasterPipeline&);
162 class SkRasterPipeline_ : public SkRasterPipeline {
165 : SkRasterPipeline(&fBuiltinAlloc) {} in SkRasterPipeline_()
DSkBlitter_Sprite.cpp114 SkRasterPipeline p(fAlloc); in setup()
116 case kAlpha_8_SkColorType: p.append(SkRasterPipeline::load_a8, &fSrcPtr); break; in setup()
117 case kGray_8_SkColorType: p.append(SkRasterPipeline::load_g8, &fSrcPtr); break; in setup()
118 case kRGB_565_SkColorType: p.append(SkRasterPipeline::load_565, &fSrcPtr); break; in setup()
119 case kARGB_4444_SkColorType: p.append(SkRasterPipeline::load_4444, &fSrcPtr); break; in setup()
120 case kBGRA_8888_SkColorType: p.append(SkRasterPipeline::load_bgra, &fSrcPtr); break; in setup()
121 case kRGBA_8888_SkColorType: p.append(SkRasterPipeline::load_8888, &fSrcPtr); break; in setup()
122 case kRGBA_F16_SkColorType: p.append(SkRasterPipeline::load_f16, &fSrcPtr); break; in setup()
130 p.append(SkRasterPipeline::set_rgb, &fPaintColor); in setup()
131 p.append(SkRasterPipeline::premul); in setup()
[all …]
DSkXfermode.cpp40 p.append(SkRasterPipeline::load_bgra_dst, &dst); in xfer32()
41 p.append(SkRasterPipeline::load_bgra , &src); in xfer32()
43 p.append(SkRasterPipeline::load_8888_dst, &dst); in xfer32()
44 p.append(SkRasterPipeline::load_8888, &src); in xfer32()
49 p.append(SkRasterPipeline::lerp_u8, &aa); in xfer32()
54 p.append(SkRasterPipeline::store_bgra, &dst); in xfer32()
56 p.append(SkRasterPipeline::store_8888, &dst); in xfer32()
DSkPM4fPriv.h103 static inline void append_gamut_transform(SkRasterPipeline* p, float scratch_matrix_3x4[12], in append_gamut_transform()
134 p->append(SkRasterPipeline::matrix_3x4, scratch_matrix_3x4); in append_gamut_transform()
135 if (needs_clamp_0) { p->append(SkRasterPipeline::clamp_0); } in append_gamut_transform()
137 (kPremul_SkAlphaType == alphaType) ? p->append(SkRasterPipeline::clamp_a) in append_gamut_transform()
138 : p->append(SkRasterPipeline::clamp_1); in append_gamut_transform()
142 static inline void append_gamut_transform(SkRasterPipeline* p, SkArenaAlloc* scratch, in append_gamut_transform()
156 p.append(SkRasterPipeline::uniform_color, color4f_ptr); in to_colorspace()
158 p.append(SkRasterPipeline::store_f32, &color4f_ptr); in to_colorspace()
DSkBlendModePriv.h14 class SkRasterPipeline; variable
22 void SkBlendMode_AppendStagesNoClamp(SkBlendMode, SkRasterPipeline*);
23 void SkBlendMode_AppendClampIfNeeded(SkBlendMode, SkRasterPipeline*);
25 static inline void SkBlendMode_AppendStages(SkBlendMode mode, SkRasterPipeline* p) { in SkBlendMode_AppendStages()
DSkColorFilter.cpp44 void SkColorFilter::appendStages(SkRasterPipeline* p, in appendStages()
70 SkRasterPipeline pipeline(&alloc); in filterColor4f()
75 pipeline.append(SkRasterPipeline::store_f32, &dstPtr); in filterColor4f()
111 void onAppendStages(SkRasterPipeline* p, SkColorSpace* dst, SkArenaAlloc* scratch, in onAppendStages()
235 void onAppendStages(SkRasterPipeline* p, SkColorSpace*, SkArenaAlloc* alloc, in SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS()
238 p->append(SkRasterPipeline::unpremul); in SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS()
242 p->append(SkRasterPipeline::to_srgb); in SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS()
249 p->append(SkRasterPipeline::premul); in SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS()
DSkColorSpaceXform.cpp1169 pipeline.append(SkRasterPipeline::load_8888, &src); in applyPipeline()
1175 pipeline.append(SkRasterPipeline::load_tables, &loadTables); in applyPipeline()
1181 pipeline.append(SkRasterPipeline::load_bgra, &src); in applyPipeline()
1187 pipeline.append(SkRasterPipeline::load_tables, &loadTables); in applyPipeline()
1188 pipeline.append(SkRasterPipeline::swap_rb); in applyPipeline()
1196 pipeline.append(SkRasterPipeline::load_f16, &src); in applyPipeline()
1202 pipeline.append(SkRasterPipeline::load_f32, &src); in applyPipeline()
1207 pipeline.append(SkRasterPipeline::load_u16_be, &src); in applyPipeline()
1210 pipeline.append(SkRasterPipeline::load_u16_be, &src); in applyPipeline()
1218 pipeline.append(SkRasterPipeline::load_tables_u16_be, &loadTables); in applyPipeline()
[all …]
/external/skia/src/shaders/
DSkImageShader.cpp245 bool SkImageShader::onAppendStages(SkRasterPipeline* p, SkColorSpace* dstCS, SkArenaAlloc* alloc, in onAppendStages()
292 p->append(SkRasterPipeline::seed_shader); in onAppendStages()
316 case kClamp_TileMode: p->append(SkRasterPipeline::clamp_x, limit_x); break; in onAppendStages()
317 case kMirror_TileMode: p->append(SkRasterPipeline::mirror_x, limit_x); break; in onAppendStages()
318 case kRepeat_TileMode: p->append(SkRasterPipeline::repeat_x, limit_x); break; in onAppendStages()
321 case kClamp_TileMode: p->append(SkRasterPipeline::clamp_y, limit_y); break; in onAppendStages()
322 case kMirror_TileMode: p->append(SkRasterPipeline::mirror_y, limit_y); break; in onAppendStages()
323 case kRepeat_TileMode: p->append(SkRasterPipeline::repeat_y, limit_y); break; in onAppendStages()
326 case kAlpha_8_SkColorType: p->append(SkRasterPipeline::gather_a8, gather); break; in onAppendStages()
327 case kGray_8_SkColorType: p->append(SkRasterPipeline::gather_g8, gather); break; in onAppendStages()
[all …]
DSkComposeShader.cpp87 bool SkComposeShader::onAppendStages(SkRasterPipeline* pipeline, SkColorSpace* dstCS, in onAppendStages()
101 pipeline->append(SkRasterPipeline::store_rgba, storage->fRGBA); in onAppendStages()
109 pipeline->append(SkRasterPipeline::move_src_dst); in onAppendStages()
110 pipeline->append(SkRasterPipeline::load_rgba, storage->fRGBA); in onAppendStages()
116 pipeline->append(SkRasterPipeline::lerp_1_float, &fLerpT); in onAppendStages()
/external/skia/bench/
DSkRasterPipelineBench.cpp43 p.append(SkRasterPipeline::load_8888, &src_ctx); in onDraw()
45 p.append(SkRasterPipeline::scale_u8, &mask_ctx); in onDraw()
46 p.append(SkRasterPipeline::move_src_dst); in onDraw()
48 p.append(SkRasterPipeline::load_f16, &dst_ctx); in onDraw()
50 p.append(SkRasterPipeline::load_8888, &dst_ctx); in onDraw()
53 p.append(SkRasterPipeline::dstover); in onDraw()
55 p.append(SkRasterPipeline::store_f16, &dst_ctx); in onDraw()
57 p.append(SkRasterPipeline::to_srgb); in onDraw()
58 p.append(SkRasterPipeline::store_8888, &dst_ctx); in onDraw()
83 p.append(SkRasterPipeline::load_8888, &dst_ctx); in onDraw()
[all …]
/external/skia/src/images/
DSkImageEncoderFns.h158 p.append(SkRasterPipeline::load_8888, &src); in transform_scanline_unpremultiply_sRGB()
160 p.append(SkRasterPipeline::load_bgra, &src); in transform_scanline_unpremultiply_sRGB()
164 p.append(SkRasterPipeline::unpremul); in transform_scanline_unpremultiply_sRGB()
165 p.append(SkRasterPipeline::to_srgb); in transform_scanline_unpremultiply_sRGB()
166 p.append(SkRasterPipeline::store_8888, &dst); in transform_scanline_unpremultiply_sRGB()
186 p.append(SkRasterPipeline::load_8888, (const void**) &src); in transform_scanline_to_premul_linear()
188 p.append(SkRasterPipeline::premul); in transform_scanline_to_premul_linear()
189 p.append(SkRasterPipeline::to_srgb); in transform_scanline_to_premul_linear()
190 p.append(SkRasterPipeline::store_8888, (void**) &dst); in transform_scanline_to_premul_linear()
260 p.append(SkRasterPipeline::load_f16, (const void**) &src); in transform_scanline_F16()
[all …]
/external/skia/tests/
DSkRasterPipelineTest.cpp13 DEF_TEST(SkRasterPipeline, r) { in DEF_TEST() argument
25 p.append(SkRasterPipeline::load_f16, &load_s_ctx); in DEF_TEST()
26 p.append(SkRasterPipeline::load_f16_dst, &load_d_ctx); in DEF_TEST()
27 p.append(SkRasterPipeline::srcover); in DEF_TEST()
28 p.append(SkRasterPipeline::store_f16, &store_ctx); in DEF_TEST()
48 p.append(SkRasterPipeline::srcover); in DEF_TEST()
69 p.append(SkRasterPipeline:: load_8888, &src); in DEF_TEST()
70 p.append(SkRasterPipeline::store_8888, &dst); in DEF_TEST()
120 p.append(SkRasterPipeline::load_f32, &src); in DEF_TEST()
121 p.append(SkRasterPipeline::store_f32, &dst); in DEF_TEST()
[all …]
DSRGBTest.cpp52 p.append(SkRasterPipeline::load_8888, &ptr); in DEF_TEST()
54 p.append(SkRasterPipeline::to_srgb); in DEF_TEST()
55 p.append(SkRasterPipeline::store_8888, &ptr); in DEF_TEST()
73 p.append(SkRasterPipeline::uniform_color, &color); in DEF_TEST()
74 p.append(SkRasterPipeline::to_srgb); in DEF_TEST()
75 p.append(SkRasterPipeline::store_f32, &dst); in DEF_TEST()
DParametricStageTest.cpp23 p.append(SkRasterPipeline::load_f32, &ip); in check_error()
24 p.append(SkRasterPipeline::parametric_r, &fn); in check_error()
25 p.append(SkRasterPipeline::parametric_g, &fn); in check_error()
26 p.append(SkRasterPipeline::parametric_b, &fn); in check_error()
27 p.append(SkRasterPipeline::parametric_a, &fn); in check_error()
28 p.append(SkRasterPipeline::store_f32, &op); in check_error()
DF16StagesTest.cpp26 p.append(SkRasterPipeline:: load_f32, &f32); in DEF_TEST()
27 p.append(SkRasterPipeline::store_f16, &f16); in DEF_TEST()
41 p.append(SkRasterPipeline:: load_f16, &f16); in DEF_TEST()
42 p.append(SkRasterPipeline::store_f32, &f32); in DEF_TEST()
/external/skia/src/effects/
DSkHighContrastFilter.cpp41 void onAppendStages(SkRasterPipeline* p,
61 void SkHighContrast_Filter::onAppendStages(SkRasterPipeline* p, in onAppendStages()
66 p->append(SkRasterPipeline::unpremul); in onAppendStages()
76 p->append(SkRasterPipeline::parametric_r, square); in onAppendStages()
77 p->append(SkRasterPipeline::parametric_g, square); in onAppendStages()
78 p->append(SkRasterPipeline::parametric_b, square); in onAppendStages()
89 p->append(SkRasterPipeline::matrix_3x4, matrix); in onAppendStages()
96 p->append(SkRasterPipeline::matrix_3x4, matrix); in onAppendStages()
98 p->append(SkRasterPipeline::rgb_to_hsl); in onAppendStages()
102 p->append(SkRasterPipeline::matrix_3x4, matrix); in onAppendStages()
[all …]
/external/skia/tools/
Dpicture_utils.cpp91 case kRGBA_F16_SkColorType: p.append(SkRasterPipeline::load_f16, &src); break; in encode_bitmap_for_png()
92 case kBGRA_8888_SkColorType: p.append(SkRasterPipeline::load_bgra, &src); break; in encode_bitmap_for_png()
93 case kRGBA_8888_SkColorType: p.append(SkRasterPipeline::load_8888, &src); break; in encode_bitmap_for_png()
94 case kRGB_565_SkColorType: p.append(SkRasterPipeline::load_565, &src); break; in encode_bitmap_for_png()
100 p.append(SkRasterPipeline::unpremul); in encode_bitmap_for_png()
101 p.append(SkRasterPipeline::clamp_0); in encode_bitmap_for_png()
102 p.append(SkRasterPipeline::clamp_1); in encode_bitmap_for_png()
105 p.append(SkRasterPipeline::to_srgb); in encode_bitmap_for_png()
107 p.append(SkRasterPipeline::store_8888, &dst); in encode_bitmap_for_png()
/external/skia/src/jumper/
DSkJumper.cpp43 static void log_missing(SkRasterPipeline::StockStage st) {
56 static void log_missing(SkRasterPipeline::StockStage) {} in log_missing()
188 template <SkRasterPipeline::StockStage st>
191 template <SkRasterPipeline::StockStage st>
195 template <> constexpr StageFn* hsw_lowp<SkRasterPipeline::st>() { \
198 template <> constexpr StageFn* ssse3_lowp<SkRasterPipeline::st>() { \
326 #define M(st) hsw_lowp<SkRasterPipeline::st>(), in choose_lowp()
336 #define M(st) ssse3_lowp<SkRasterPipeline::st>(), in choose_lowp()
349 const SkJumper_Engine& SkRasterPipeline::build_pipeline(void** ip) const { in build_pipeline()
357 if (st->stage == SkRasterPipeline::clamp_0) { in build_pipeline()
[all …]
/external/skia/src/shaders/gradients/
DSkTwoPointConicalGradient.cpp177 SkRasterPipeline* p, in adjustMatrixAndAppendStages()
178 SkRasterPipeline* postPipeline) const { in adjustMatrixAndAppendStages()
187 p->append(SkRasterPipeline::xy_to_radius); in adjustMatrixAndAppendStages()
223 p->append(SkRasterPipeline::xy_to_2pt_conical_linear, ctx); in adjustMatrixAndAppendStages()
237 p->append(fFlippedGrad ? SkRasterPipeline::xy_to_2pt_conical_quadratic_min in adjustMatrixAndAppendStages()
238 : SkRasterPipeline::xy_to_2pt_conical_quadratic_max, ctx); in adjustMatrixAndAppendStages()
242 p->append(SkRasterPipeline::xy_to_2pt_conical_quadratic_max, ctx); in adjustMatrixAndAppendStages()
247 p->append(SkRasterPipeline::mask_2pt_conical_degenerates, ctx); in adjustMatrixAndAppendStages()
248 postPipeline->append(SkRasterPipeline::apply_vector_mask, &ctx->fMask); in adjustMatrixAndAppendStages()
/external/skia/src/codec/
DSkWebpCodec.cpp325 static void pick_memory_stages(SkColorType ct, SkRasterPipeline::StockStage* load, in pick_memory_stages()
326 SkRasterPipeline::StockStage* store) { in pick_memory_stages()
335 if (load) *load = SkRasterPipeline::load_565; in pick_memory_stages()
336 if (store) *store = SkRasterPipeline::store_565; in pick_memory_stages()
339 if (load) *load = SkRasterPipeline::load_8888; in pick_memory_stages()
340 if (store) *store = SkRasterPipeline::store_8888; in pick_memory_stages()
343 if (load) *load = SkRasterPipeline::load_bgra; in pick_memory_stages()
344 if (store) *store = SkRasterPipeline::store_bgra; in pick_memory_stages()
347 if (load) *load = SkRasterPipeline::load_f16; in pick_memory_stages()
348 if (store) *store = SkRasterPipeline::store_f16; in pick_memory_stages()
[all …]

123