Home
last modified time | relevance | path

Searched refs:subset (Results 26 - 50 of 246) sorted by relevance

12345678910

/third_party/skia/src/gpu/ops/
H A DLatticeOp.cpp424 /** Randomly divides subset into count divs. */
431 // 2) Randomly assign the remaining pixels of the subset to divs.
441 // 2) Assign the remaining subset pixels to fall
451 // 3) Now convert the counts between divs to pixel indices, incorporating the subset's offset.
463 // edge of the image subset, respectively.
468 SkIRect subset;
489 subset.fLeft = random->nextULessThan(dims.fWidth);
490 subset.fRight = random->nextRangeU(subset.fLeft + 1, dims.fWidth);
491 subset
[all...]
H A DTextureOp.cpp130 // Normalize the subset. If 'subsetRect' is null, it is assumed no subset constraint is desired,
132 // subsets overall. When there is a subset it will be inset based on the filter mode. Normalization
139 // Either the quad has no subset constraint and is batched with a subset constrained op in normalize_and_inset_subset()
140 // (in which case we want a subset that doesn't restrict normalized tex coords), or the in normalize_and_inset_subset()
141 // entire op doesn't use the subset, in which case the returned value is ignored. in normalize_and_inset_subset()
198 // can push all the way up to the edges of the the subset rect and the sampler shouldn't in safe_to_ignore_subset_rect()
211 // If the local quad is inset by at least 0.5 pixels into the subset rect's bounds, the in safe_to_ignore_subset_rect()
217 // The subset rec in safe_to_ignore_subset_rect()
229 Make(GrRecordingContext* context, GrSurfaceProxyView proxyView, sk_sp<GrColorSpaceXform> textureXform, GrSamplerState::Filter filter, GrSamplerState::MipmapMode mm, const SkPMColor4f& color, Saturate saturate, GrAAType aaType, DrawQuad* quad, const SkRect* subset) Make() argument
388 Subset subset() const { return static_cast<Subset>(fSubset); } subset() function
472 SkRect subset = normalize_and_inset_subset(filter, params, subsetRect); TextureOpImpl() local
617 SkRect subset = normalize_and_inset_subset(filter, proxyParams, subsetForQuad); TextureOpImpl() local
636 appendQuad(DrawQuad* quad, const SkPMColor4f& color, const SkRect& subset) appendQuad() argument
810 Subset subset = Subset::kNo; characterize() local
1129 Make(GrRecordingContext* context, GrSurfaceProxyView proxyView, SkAlphaType alphaType, sk_sp<GrColorSpaceXform> textureXform, GrSamplerState::Filter filter, GrSamplerState::MipmapMode mm, const SkPMColor4f& color, Saturate saturate, SkBlendMode blendMode, GrAAType aaType, DrawQuad* quad, const SkRect* subset) Make() argument
1300 const SkRect* subset = constraint == SkCanvas::kStrict_SrcRectConstraint AddTextureSetOps() local
[all...]
/third_party/skia/docs/examples/
H A DBitmap_pixelRefOrigin.cpp7 SkBitmap subset; in REG_FIDDLE() local
8 source.extractSubset(&subset, SkIRect::MakeXYWH(32, 64, 128, 256)); in REG_FIDDLE()
10 SkIPoint subsetOrigin = subset.pixelRefOrigin(); in REG_FIDDLE()
12 SkDebugf("subset origin: %d, %d\n", subsetOrigin.fX, subsetOrigin.fY); in REG_FIDDLE()
H A DBitmap_extractSubset.cpp10 SkBitmap subset; in REG_FIDDLE() local
14 bool success = source.extractSubset(&subset, b); in REG_FIDDLE()
15 SkDebugf("subset: %4d, %4d, %4d, %4d ", b.fLeft, b.fTop, b.fRight, b.fBottom); in REG_FIDDLE()
18 subset.getBounds(&s); in REG_FIDDLE()
19 SkDebugf(" subset: %d, %d, %d, %d", s.fLeft, s.fTop, s.fRight, s.fBottom); in REG_FIDDLE()
H A DBitmap_getSubset.cpp10 SkBitmap subset; in REG_FIDDLE() local
11 source.extractSubset(&subset, bounds); in REG_FIDDLE()
14 r = subset.getSubset(); in REG_FIDDLE()
15 SkDebugf("subset: %d, %d, %d, %d\n", r.fLeft, r.fTop, r.fRight, r.fBottom); in REG_FIDDLE()
H A Dsubset_example.cpp22 SkBitmap subset; in REG_FIDDLE() local
23 source.extractSubset(&subset, SkIRect::MakeXYWH(w * x, h * y, w, h)); in REG_FIDDLE()
24 canvas->drawImage(subset.asImage(), w * i, h * j); in REG_FIDDLE()
/third_party/skia/tests/
H A DSpecialSurfaceTest.cpp21 return surf->subset(); in Subset()
50 const SkIRect imgSubset = img->subset(); in test_surface()
70 const SkIRect subset = SkIRect::MakeXYWH(kPad, kPad, kSmallerSize, kSmallerSize); in DEF_TEST() local
72 sk_sp<SkSpecialSurface> surf(SkSpecialSurface::MakeFromBitmap(subset, bm, SkSurfaceProps())); in DEF_TEST()
H A DPDFGlyphsToUnicodeTest.cpp39 SkPDFGlyphUse subset(1, kMaximumGlyphIndex); in DEF_TEST()
81 subset.set(v); in DEF_TEST()
83 SkPDFAppendCmapSections(&glyphToUnicode[0], &subset, &buffer, true, 0, in DEF_TEST()
106 SkPDFAppendCmapSections(&glyphToUnicode[0], &subset, &buffer, true, 8, in DEF_TEST()
125 SkPDFAppendCmapSections(&glyphToUnicode[0], &subset, &buffer, true, 0x00D, in DEF_TEST()
/third_party/skia/third_party/externals/harfbuzz/test/api/
H A Dtest-subset-hdmx.c28 #include "hb-subset-test.h"
79 hb_face_t *subset; in test_subset_hdmx_invalid() local
85 subset = hb_subset_or_fail (face, input); in test_subset_hdmx_invalid()
86 g_assert (!subset); in test_subset_hdmx_invalid()
89 hb_face_destroy (subset); in test_subset_hdmx_invalid()
H A Dhb-subset-test.h33 #include "hb-subset.h"
87 hb_face_t *subset = hb_subset_or_fail (source, input); in hb_subset_test_create_subset() local
88 g_assert (subset); in hb_subset_test_create_subset()
91 return subset; in hb_subset_test_create_subset()
H A Dtest-subset-hmtx.c28 #include "hb-subset-test.h"
157 hb_face_t *subset; in test_subset_invalid_hmtx() local
165 subset = hb_subset_or_fail (face, input); in test_subset_invalid_hmtx()
166 g_assert (!subset); in test_subset_invalid_hmtx()
169 hb_face_destroy (subset); in test_subset_invalid_hmtx()
/third_party/skia/experimental/graphite/src/
H A DSurface_Graphite.cpp30 sk_sp<SkImage> Surface_Graphite::onNewImageSnapshot(const SkIRect* subset) { in onNewImageSnapshot() argument
31 SkImageInfo ii = subset ? this->imageInfo().makeDimensions(subset->size()) in onNewImageSnapshot()
/third_party/skia/src/gpu/effects/
H A DGrBicubicEffect.cpp147 const SkRect& subset, in MakeSubset()
154 std::move(view), alphaType, SkMatrix::I(), sampler, subset, caps); in MakeSubset()
166 const SkRect& subset, in MakeSubset()
182 std::move(view), alphaType, SkMatrix::I(), sampler, subset, expandedDomain, caps); in MakeSubset()
270 SkRect subset; in TestCreate() local
271 subset.fLeft = d->fRandom->nextSScalar1() * view.width(); in TestCreate()
272 subset.fTop = d->fRandom->nextSScalar1() * view.height(); in TestCreate()
273 subset.fRight = d->fRandom->nextSScalar1() * view.width(); in TestCreate()
274 subset.fBottom = d->fRandom->nextSScalar1() * view.height(); in TestCreate()
275 subset in TestCreate()
141 MakeSubset( GrSurfaceProxyView view, SkAlphaType alphaType, const SkMatrix& matrix, const GrSamplerState::WrapMode wrapX, const GrSamplerState::WrapMode wrapY, const SkRect& subset, SkImage::CubicResampler kernel, Direction direction, const GrCaps& caps) MakeSubset() argument
160 MakeSubset( GrSurfaceProxyView view, SkAlphaType alphaType, const SkMatrix& matrix, const GrSamplerState::WrapMode wrapX, const GrSamplerState::WrapMode wrapY, const SkRect& subset, const SkRect& domain, SkImage::CubicResampler kernel, Direction direction, const GrCaps& caps) MakeSubset() argument
[all...]
H A DGrYUVtoRGBEffect.cpp37 const SkRect* subset, in Make()
39 SkASSERT(!subset || SkRect::Make(yuvaProxies.yuvaInfo().dimensions()).contains(*subset)); in Make()
56 bool useSubset = SkToBool(subset); in Make()
76 if (subset) { in Make()
77 planeSubset = {subset->fLeft *scaleX, in Make()
78 subset->fTop *scaleY, in Make()
79 subset->fRight *scaleX, in Make()
80 subset->fBottom*scaleY}; in Make()
129 if (subset) { in Make()
33 Make(const GrYUVATextureProxies& yuvaProxies, GrSamplerState samplerState, const GrCaps& caps, const SkMatrix& localMatrix, const SkRect* subset, const SkRect* domain) Make() argument
[all...]
/third_party/skia/src/core/
H A DSkSpecialSurface.h71 static sk_sp<SkSpecialSurface> MakeFromBitmap(const SkIRect& subset, SkBitmap& bm,
85 SkSpecialSurface(const SkIRect& subset, const SkSurfaceProps&);
89 const SkIRect& subset() const { return fSubset; } in subset() function in SkSpecialSurface
/third_party/skia/samplecode/
H A DSampleWritePixels.cpp43 SkBitmap subset; variable
44 bitmap.extractSubset(&subset, SkIRect::MakeXYWH(x, y, x, y));
49 canvas->writePixels(subset, 0, 0);
/third_party/skia/src/pdf/
H A DSkPDFMakeToUnicodeCmap.cpp153 const SkPDFGlyphUse* subset, in SkPDFAppendCmapSections()
172 bool inSubset = i < limit && (subset == nullptr || subset->has(gid)); in SkPDFAppendCmapSections()
210 const SkPDFGlyphUse* subset,
216 SkPDFAppendCmapSections(glyphToUnicode, subset, &cmap, multiByteGlyphs,
152 SkPDFAppendCmapSections(const SkUnichar* glyphToUnicode, const SkPDFGlyphUse* subset, SkDynamicMemoryWStream* cmap, bool multiByteGlyphs, SkGlyphID firstGlyphID, SkGlyphID lastGlyphID) SkPDFAppendCmapSections() argument
/third_party/python/Tools/c-analyzer/c_common/
H A Dscriptutil.py415 def add_commands_cli(parser, commands, *, commonspecs=COMMON_CLI, subset=None):
417 if isinstance(subset, str):
418 cmdname = subset
422 raise ValueError(f'unsupported subset {subset!r}')
426 if subset is None:
427 cmdnames = subset = list(commands)
428 elif not subset:
430 elif isinstance(subset, set):
431 cmdnames = [k for k in commands if k in subset]
[all...]
/third_party/cups-filters/fontembed/
H A Dembed.h58 BITSET subset; member
70 if (emb->subset) { in emb_set()
72 bit_set(emb->subset,gid); in emb_set()
H A Dembed.c44 subset,CID(multibyte),(PS:)text/binary,(PS:)incremental
56 TODO?! "always subset CJK"
84 fprintf(stderr,"Bad subset specification\n"); in emb_new()
121 return ret; // never subset, no multibyte in emb_new()
163 // alloc subset in emb_new()
165 ret->subset=bitset_new(numGlyphs); in emb_new()
166 if (!ret->subset) { in emb_new()
207 return otf_subset(emb->font->sfnt,emb->subset,output,context); in emb_embed()
224 return otf_subset_cff(emb->font->sfnt,emb->subset,output,context); in emb_embed()
252 free(emb->subset); in emb_close()
[all...]
/third_party/skia/gm/
H A Dimagefromyuvtextures.cpp210 auto subset = SkRect::Make(image->dimensions());
211 subset.inset(subset.width() * .05f, subset.height() * .1f);
212 auto dst = SkRect::MakeWH(subset.width(), subset.height());
213 canvas->drawImageRect(image, subset, dst, sampling, nullptr,
/third_party/skia/third_party/externals/harfbuzz/src/
H A Dhb-ot-layout-gdef-table.hh47 bool subset (hb_subset_context_t *c) const in subset() function
84 bool subset (hb_subset_context_t *c) const in subset() function
129 bool subset (hb_subset_context_t *c) const in subset() function
159 bool subset (hb_subset_context_t *c) const in subset() function
200 bool subset (hb_subset_context_t *c) const in subset() function
316 bool subset (hb_subset_context_t *c) const in subset() function
371 bool subset (hb_subset_context_t *c) const in subset() function
425 bool subset (hb_subset_context_t *c) const in subset() function
478 bool subset (hb_subset_context_t *c) const in subset() function
482 case 1: return_trace (u.format1.subset ( in subset()
638 bool subset (hb_subset_context_t *c) const subset() function
[all...]
H A Dhb-ot-color-colr-table.hh176 bool subset (hb_subset_context_t *c) const in subset() function
179 if (!value.subset (c)) return_trace (false); in subset()
208 bool subset (hb_subset_context_t *c) const in subset() function
211 return_trace (value.subset (c)); in subset()
232 bool subset (hb_subset_context_t *c) const in subset() function
274 bool subset (hb_subset_context_t *c) const in subset() function
286 if (!stop.subset (c)) return_trace (false); in subset()
375 bool subset (hb_subset_context_t *c) const in subset() function
404 bool subset (hb_subset_context_t *c) const in subset() function
432 bool subset (hb_subset_context_ function
466 bool subset (hb_subset_context_t *c) const subset() function
500 bool subset (hb_subset_context_t *c) const subset() function
532 bool subset (hb_subset_context_t *c) const subset() function
562 bool subset (hb_subset_context_t *c) const subset() function
589 bool subset (hb_subset_context_t *c) const subset() function
617 bool subset (hb_subset_context_t *c) const subset() function
644 bool subset (hb_subset_context_t *c) const subset() function
671 bool subset (hb_subset_context_t *c) const subset() function
700 bool subset (hb_subset_context_t *c) const subset() function
726 bool subset (hb_subset_context_t *c) const subset() function
754 bool subset (hb_subset_context_t *c) const subset() function
780 bool subset (hb_subset_context_t *c) const subset() function
808 bool subset (hb_subset_context_t *c) const subset() function
835 bool subset (hb_subset_context_t *c) const subset() function
864 bool subset (hb_subset_context_t *c) const subset() function
1021 bool subset (hb_subset_context_t *c) const subset() function
1191 bool subset (hb_subset_context_t *c) const subset() function
1222 bool subset (hb_subset_context_t *c) const subset() function
1430 bool subset (hb_subset_context_t *c) const subset() function
[all...]
/third_party/skia/include/core/
H A DSkPixmap.h109 /** Sets subset width, height, pixel address to intersection of SkPixmap with area,
110 if intersection is not empty; and return true. Otherwise, leave subset unchanged
115 @param subset storage for width, height, pixel address of intersection
119 bool SK_WARN_UNUSED_RESULT extractSubset(SkPixmap* subset, const SkIRect& area) const;
664 /** Writes color to pixels bounded by subset; returns true on success.
665 Returns false if colorType() is kUnknown_SkColorType, or if subset does
669 @param subset bounding integer SkRect of written pixels
674 bool erase(SkColor color, const SkIRect& subset) const;
685 /** Writes color to pixels bounded by subset; returns true on success.
686 if subset i
[all...]
/kernel/linux/linux-5.10/drivers/irqchip/
H A Dirq-mvebu-icu.c75 const struct mvebu_icu_subset_data *subset = msi_data->subset_data; in mvebu_icu_init() local
81 writel_relaxed(msg[0].address_hi, icu->base + subset->offset_set_ah); in mvebu_icu_init()
82 writel_relaxed(msg[0].address_lo, icu->base + subset->offset_set_al); in mvebu_icu_init()
84 if (subset->icu_group != ICU_GRP_NSR) in mvebu_icu_init()
88 writel_relaxed(msg[1].address_hi, icu->base + subset->offset_clr_ah); in mvebu_icu_init()
89 writel_relaxed(msg[1].address_lo, icu->base + subset->offset_clr_al); in mvebu_icu_init()
341 .name = "mvebu-icu-subset",

Completed in 16 milliseconds

12345678910