Home
last modified time | relevance | path

Searched refs:blur (Results 1 - 25 of 33) sorted by relevance

12

/third_party/skia/bench/
H A DImageFilterDAGBench.cpp16 // Exercise a blur filter connected to 5 inputs of the same merge filter.
32 sk_sp<SkImageFilter> blur(SkImageFilters::Blur(20.0f, 20.0f, nullptr));
35 inputs[i] = blur;
84 sk_sp<SkImageFilter> blur(SkImageFilters::Blur(20.0f, 20.0f, nullptr));
87 inputs[i] = blur;
106 // Exercise a blur filter connected to both inputs of an SkDisplacementMapEffect.
119 sk_sp<SkImageFilter> blur(SkImageFilters::Blur(4.0f, 4.0f, nullptr));
124 scale, blur, blur));
148 auto blur variable
[all...]
/third_party/skia/docs/examples/
H A Dskpaint_blur_mask_filter_2.cpp21 SkPaint blur(paint); in REG_FIDDLE()
22 blur.setColor(blurColor); in REG_FIDDLE()
23 blur.setAlpha(blurAlpha); in REG_FIDDLE()
24 blur.setMaskFilter(SkMaskFilter::MakeBlur(kNormal_SkBlurStyle, blurSigma, false)); in REG_FIDDLE()
28 // Draw once with drop shadow blur; in REG_FIDDLE()
29 canvas->drawString(text, x + xDrop, y + yDrop, font, blur); in REG_FIDDLE()
31 // Overdraw with with no blur mask in REG_FIDDLE()
H A Dtext_shadow.cpp16 SkPaint blur(paint); in REG_FIDDLE()
17 blur.setAlpha(blurAlpha); in REG_FIDDLE()
18 blur.setMaskFilter(SkMaskFilter::MakeBlur(kNormal_SkBlurStyle, sigma, 0)); in REG_FIDDLE()
20 canvas->drawTextBlob(blob.get(), x + xDrop, y + yDrop, blur); in REG_FIDDLE()
H A DCanvas_saveLayer_2.cpp9 SkPaint paint, blur; in REG_FIDDLE() local
10 blur.setImageFilter(SkImageFilters::Blur(3, 3, nullptr)); in REG_FIDDLE()
11 canvas->saveLayer(SkRect::MakeWH(90, 90), &blur); in REG_FIDDLE()
H A DCanvas_saveLayer.cpp9 SkPaint paint, blur; in REG_FIDDLE() local
10 blur.setImageFilter(SkImageFilters::Blur(3, 3, nullptr)); in REG_FIDDLE()
11 canvas->saveLayer(nullptr, &blur); in REG_FIDDLE()
/third_party/skia/src/core/
H A DSkBlurMask.cpp21 // IMHO, it actually should be 1: we blur "less" than we should do
25 // all the blur tests.
40 const uint8_t blur[], int blurRB, in merge_src_with_blur()
47 *dst = SkToU8(SkAlphaMul(*blur, SkAlpha255To256(*rowSrc))); in merge_src_with_blur()
50 ++blur; in merge_src_with_blur()
54 blur += blurRB; in merge_src_with_blur()
117 // If there is no effective blur most styles will just produce the original mask. in BoxBlur()
134 const SkIPoint border = blurFilter.blur(src, dst); in BoxBlur()
223 SkMask blur = *dst; in BoxBlur() local
224 SkAutoMaskFreeImage autoFreeBlurMask(blur in BoxBlur()
38 merge_src_with_blur(uint8_t dst[], int dstRB, AlphaIter src, int srcRB, const uint8_t blur[], int blurRB, int sw, int sh) merge_src_with_blur() argument
[all...]
H A DSkMaskBlurFilter.cpp110 template <typename AlphaIter> void blur(const AlphaIter srcBegin, const AlphaIter srcEnd, in blur() function in __anon18702::final::Scan
338 // The blur_x_radius_N function below blur along a row of pixels using a kernel with radius N. This
551 BlurX blur,
561 blur(load(src, 8, nullptr), g0, g1, g2, g3, g4, &d0, &d8);
576 blur(load(src, srcTail, nullptr), g0, g1, g2, g3, g4, &d0, &d8);
594 static void blur_x_rect(BlurX blur,
607 blur_row(blur, g0, g1, g2, g3, g4, src, srcW, dst, dstW);
768 BlurY blur, int radius, int width,
784 auto b = blur(s,
808 BlurY blur, in
[all...]
H A DSkMaskBlurFilter.h18 // Implement a single channel Gaussian blur. The specifics for implementation are taken from:
30 SkIPoint blur(const SkMask& src, SkMask* dst) const;
/third_party/skia/gm/
H A Dimagefiltersgraph.cpp50 sk_sp<SkImageFilter> blur(SkImageFilters::Blur(4.0f, 4.0f, std::move(bitmapSource)));
51 sk_sp<SkImageFilter> erode(SkImageFilters::Erode(4, 4, blur));
54 sk_sp<SkImageFilter> merge(SkImageFilters::Merge(blur, color));
97 sk_sp<SkImageFilter> blur(SkImageFilters::Blur(10, 10, nullptr));
102 SkImageFilters::Blend(SkBlendMode::kSrcIn, std::move(blur), nullptr, &cropRect));
H A Dcrbug_1174354.cpp16 // First create an intermediate layer that has an opaque area that we blur with transparency in draw_bg_blur()
17 // all around it. We want to make sure the transparency doesn't affect the blur of the opaque in draw_bg_blur()
37 // Now do the bg-blur into another save-layer that should only read the opaque region. in draw_bg_blur()
39 auto blur = SkImageFilters::Blur(sigma, sigma, SkTileMode::kClamp, nullptr, rect); in draw_bg_blur() local
41 rec.fBackdrop = blur.get(); in draw_bg_blur()
49 // texture that was used as input to the blur could actually bring in transparency when there in DEF_SIMPLE_GM()
H A Dbackdrop.cpp25 // Make a noisy (with hard-edges) background, so we can see the effect of the blur
50 // now setup a saveLayer that will pull in the backdrop and blur it in do_draw()
60 auto blur = SkImageFilters::Blur(sigma, sigma, SkTileMode::kClamp, nullptr); in do_draw() local
61 auto rec = SkCanvasPriv::ScaledBackdropLayer(drawrptr, nullptr, blur.get(), scaleFactor, 0); in do_draw()
63 // draw something inside, just to demonstrate that we don't blur the new contents, in do_draw()
74 * - row:0 no-hint-rect no-clip-rect expect big blur (except inner circle)
75 * - row:1 no-hint-rect clip-rect expect small blur (except inner circle)
76 * - row:2 hint-rect no-clip-rect expect big blur (except inner circle)
77 * - row:3 hint-rect clip-rect expect small blur (except inner circle)
H A Dgpu_blur_utils.cpp24 static GrSurfaceProxyView blur(GrRecordingContext* ctx, in blur() function
47 // Performs tiling first of the src into dst bounds with a surrounding skirt so the blur can use
89 // A blur of sigma1 followed by a blur of sigma2 is equiv. to a single blur of in slow_blur()
269 // Draw the src subset in the tile mode faded as a reference before drawing the blur in run()
281 // Do a blur for each dstRect in the set over our testArea-sized background. in run()
285 auto blurFn = ref ? slow_blur : blur; in run()
319 // confirmation that the resulting blur is the right size and in the right place. in run()
369 // Because of the way blur sigma
[all...]
H A Dcoloremoji.cpp37 * Spits out an arbitrary gradient to test blur with shader on paint
129 sk_sp<SkImageFilter> blur(make_blur(3.0f, std::move(grayScale)));
130 shaderPaint.setImageFilter(std::move(blur));
H A Dcolorfilterimagefilter.cpp172 sk_sp<SkImageFilter> blur(make_blur(3.0f, nullptr)); in DEF_SIMPLE_GM()
173 sk_sp<SkImageFilter> brightness(make_brightness(0.5f, std::move(blur))); in DEF_SIMPLE_GM()
/third_party/ffmpeg/libavfilter/
H A Dvf_blurdetect.c26 * Marziliano, Pina, et al. "A no-reference perceptual blur metric." Proceedings.
28 * https://infoscience.epfl.ch/record/111802/files/14%20A%20no-reference%20perceptual%20blur%20metric.pdf
269 float blur = 0.0f; in blurdetect_filter_frame() local
303 blur += calculate_blur(s, w, h, hsub, vsub, directions, w, in blurdetect_filter_frame()
308 blur /= nplanes; in blurdetect_filter_frame()
310 s->blur_total += blur; in blurdetect_filter_frame()
313 av_log(ctx, AV_LOG_VERBOSE, "blur: %.7f\n", blur); in blurdetect_filter_frame()
315 set_meta(metadata, "lavfi.blur", blur); in blurdetect_filter_frame()
[all...]
H A Dvf_smartblur.c169 static void blur(uint8_t *dst, const int dst_linesize, in blur() function
248 blur(outpic->data[0], outpic->linesize[0], in filter_frame()
254 blur(outpic->data[1], outpic->linesize[1], in filter_frame()
258 blur(outpic->data[2], outpic->linesize[2], in filter_frame()
H A Dvf_boxblur.c127 static inline void blur ## depth(type *dst, int dst_step, const type *src, \
160 static inline void blur(uint8_t *dst, int dst_step, const uint8_t *src, int src_step, in blur() function
173 blur(a, pixsize, src, src_step, len, radius, pixsize); in blur_power()
176 blur(b, pixsize, a, pixsize, len, radius, pixsize); in blur_power()
180 blur(dst, dst_step, a, pixsize, len, radius, pixsize); in blur_power()
H A Dvf_deband.c36 int blur; member
63 { "blur", "set blur", OFFSET(blur), AV_OPT_TYPE_BOOL, {.i64=1}, 0, 1, FLAGS },
64 { "b", "set blur", OFFSET(blur), AV_OPT_TYPE_BOOL, {.i64=1}, 0, 1, FLAGS },
161 if (s->blur) { in deband_8_c()
212 if (s->blur) { in deband_8_coupling_c()
277 if (s->blur) { in deband_16_coupling_c()
342 if (s->blur) { in deband_16_c()
[all...]
H A Dvf_sab.c217 static void blur(uint8_t *dst, const int dst_linesize, in blur() function
288 blur(outpic->data[0], outpic->linesize[0], inpic->data[0], inpic->linesize[0], in filter_frame()
293 blur(outpic->data[1], outpic->linesize[1], inpic->data[1], inpic->linesize[1], cw, ch, &s->chroma); in filter_frame()
294 blur(outpic->data[2], outpic->linesize[2], inpic->data[2], inpic->linesize[2], cw, ch, &s->chroma); in filter_frame()
319 .description = NULL_IF_CONFIG_SMALL("Apply shape adaptive blur."),
H A Dvf_cover_rect.c51 { "blur", "blur area", 0, AV_OPT_TYPE_CONST, {.i64 = MODE_BLUR}, INT_MIN, INT_MAX, FLAGS, "mode" },
80 static void blur(CoverContext *cover, AVFrame *in, int offx, int offy) in blur() function
176 blur (cover, in, x, y); in filter_frame()
/third_party/skia/modules/skottie/src/text/
H A DTextAnimator.h41 Vec2Value blur = { 0, 0 }, member
57 SkV2 blur = { 0, 0 }, member
H A DTextAnimator.cpp126 // ... as does blur and line spacing in modulateProps()
127 modulated_props.blur += fTextProps.blur * amount; in modulateProps()
200 fHasBlur = acontainer->bind(*abuilder, jprops["bl"], fTextProps.blur ); in TextAnimator()
/third_party/skia/tests/
H A DRepeatedClippedBlurTest.cpp18 // The test simply keeps calling SkImage::makeWithFilter (with a blur image filter) while
21 // blur creation process became exact.
35 ERRORF(reporter, "Could not create surfaces for repeated clipped blur test."); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
85 // Note that the blur has to big enough to kick the blur code into the decimate then in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
93 sk_sp<SkImageFilter> blur = SkImageFilters::Blur(20, 20, nullptr); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
97 sk_sp<SkImage> filteredImg = smImg->makeWithFilter(dContext, blur.get(), subset, clip, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/third_party/skia/src/effects/
H A DSkLayerDrawLooper.cpp159 // bottom layer needs to be just blur(maskfilter) in asABlurShadow()
315 sk_sp<SkMaskFilter> blur = nullptr; in Make() local
317 blur = SkMaskFilter::MakeBlur(kNormal_SkBlurStyle, sigma, true); in Make()
332 paint->setMaskFilter(std::move(blur)); in Make()
/third_party/libwebsockets/minimal-examples/http-server/minimal-http-server-fulltext-search/mount-origin/
H A Dlws-fts.js54 inp.blur();
79 inp.blur();

Completed in 13 milliseconds

12