/third_party/skia/bench/ |
H A D | ImageFilterDAGBench.cpp | 16 // 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 D | skpaint_blur_mask_filter_2.cpp | 21 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 D | text_shadow.cpp | 16 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 D | Canvas_saveLayer_2.cpp | 9 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 D | Canvas_saveLayer.cpp | 9 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 D | SkBlurMask.cpp | 21 // 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 D | SkMaskBlurFilter.cpp | 110 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 D | SkMaskBlurFilter.h | 18 // 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 D | imagefiltersgraph.cpp | 50 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 D | crbug_1174354.cpp | 16 // 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 D | backdrop.cpp | 25 // 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 D | gpu_blur_utils.cpp | 24 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 D | coloremoji.cpp | 37 * 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 D | colorfilterimagefilter.cpp | 172 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 D | vf_blurdetect.c | 26 * 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 D | vf_smartblur.c | 169 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 D | vf_boxblur.c | 127 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 D | vf_deband.c | 36 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 D | vf_sab.c | 217 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 D | vf_cover_rect.c | 51 { "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 D | TextAnimator.h | 41 Vec2Value blur = { 0, 0 }, member 57 SkV2 blur = { 0, 0 }, member
|
H A D | TextAnimator.cpp | 126 // ... 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 D | RepeatedClippedBlurTest.cpp | 18 // 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 D | SkLayerDrawLooper.cpp | 159 // 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 D | lws-fts.js | 54 inp.blur(); 79 inp.blur();
|