Searched refs:glyphCount (Results 1 - 25 of 60) sorted by relevance

123

/external/icu/icu4c/source/test/perf/leperf/
H A Dleperf.cpp28 le_int32 glyphCount; member in class:Params
46 le_int32 glyphCount = 0; local
48 glyphCount = engine->layoutChars(chars, 0, params->charLen, params->charLen, TRUE, 0.0, 0.0, status);
49 glyphs = LE_NEW_ARRAY(LEGlyphID, glyphCount + 10);
50 indices = LE_NEW_ARRAY(le_int32, glyphCount + 10);
51 positions = LE_NEW_ARRAY(float, glyphCount + 10);
53 params->glyphCount = glyphCount;
118 u_printf("leperf: glyphs=%d\n", p.glyphCount);
H A Dxmlreader.cpp187 int32_t glyphCount = 0, indexCount = 0, positionCount = 0; local
232 expected.glyphs = (LEGlyphID *) getHexArray(glyphs, glyphCount);
236 expected.glyphCount = glyphCount;
238 if (glyphCount < charCount || indexCount != glyphCount || positionCount < glyphCount * 2 + 2) {
239 log_err("Test %s: inconsistent input data: charCount = %d, glyphCount = %d, indexCount = %d, positionCount = %d\n",
240 id, charCount, glyphCount, indexCount, positionCount);
/external/skia/bench/
H A DCmapBench.cpp24 int glyphCount);
27 int glyphCount) {
34 int glyphCount) {
36 SkASSERT(glyphCount <= NGLYPHS);
44 size_t len, int glyphCount) {
47 SkASSERT(glyphCount <= NGLYPHS);
51 face->charsToGlyphs(text, encoding, glyphs, glyphCount);
56 size_t len, int glyphCount) {
61 face->charsToGlyphs(text, encoding, nullptr, glyphCount);
26 containsText_proc(int loops, const SkPaint& paint, const void* text, size_t len, int glyphCount) argument
33 textToGlyphs_proc(int loops, const SkPaint& paint, const void* text, size_t len, int glyphCount) argument
43 charsToGlyphs_proc(int loops, const SkPaint& paint, const void* text, size_t len, int glyphCount) argument
55 charsToGlyphsNull_proc(int loops, const SkPaint& paint, const void* text, size_t len, int glyphCount) argument
/external/skia/gm/
H A Dtextblobshader.cpp41 int glyphCount = fGlyphs.count(); variable
44 run = &builder.allocRun(p, glyphCount, 10, 10, nullptr);
45 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t));
47 run = &builder.allocRunPosH(p, glyphCount, 80, nullptr);
48 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t));
49 for (int i = 0; i < glyphCount; ++i) {
53 run = &builder.allocRunPos(p, glyphCount, nullptr);
54 memcpy(run->glyphs, fGlyphs.begin(), glyphCount * sizeof(uint16_t));
55 for (int i = 0; i < glyphCount; ++i) {
57 run->pos[i * 2 + 1] = 150 + 5 * sinf((float)i * 8 / glyphCount);
[all...]
H A Dtypeface.cpp52 int glyphCount = paint.textToGlyphs(text, len, glyphs); local
53 if (glyphCount < 1) {
57 SkAutoSTMalloc<128, int32_t> adjustmentStorage(glyphCount - 1);
59 if (!face->getKerningPairAdjustments(glyphs, glyphCount, adjustments)) {
67 SkAutoSTMalloc<128, SkPoint> posStorage(glyphCount);
69 getGlyphPositions(glyphPaint, glyphs, glyphCount, x, y, pos);
71 applyKerning(pos, adjustments, glyphCount, glyphPaint);
72 canvas->drawPosText(glyphs, glyphCount * sizeof(uint16_t), pos, glyphPaint);
/external/skia/tools/
H A DSkShaper_primitive.cpp40 int glyphCount = paint.countText(utf8text, textBytes); local
41 if (glyphCount <= 0) {
48 builder->allocRunTextPosH(paint, glyphCount, point.y(), textBytes, SkString(), &bounds);
51 for (int i = 0; i < glyphCount; ++i) {
61 for (int i = 0; i < glyphCount; ++i) {
/external/skia/src/core/
H A DSkTextBlobRunIterator.h25 uint32_t glyphCount() const;
H A DSkTextBlob.cpp149 uint32_t glyphCount() const {
190 static size_t StorageSize(int glyphCount, int textSize, argument
195 + SkAlign4(glyphCount* sizeof(uint16_t))
196 + PosCount(glyphCount, positioning) * sizeof(SkScalar);
199 + sizeof(uint32_t) * glyphCount
243 + StorageSize(run->glyphCount(), run->textSize(), run->positioning()));
246 static size_t PosCount(int glyphCount, argument
248 return glyphCount * ScalarsPerGlyph(positioning);
347 uint32_t SkTextBlobRunIterator::glyphCount() const { function in class:SkTextBlobRunIterator
349 return fCurrentRun->glyphCount();
762 int glyphCount = reader.read32(); local
[all...]
H A DSkTypeface.cpp58 uint16_t glyphs[], int glyphCount) const override {
59 if (glyphs && glyphCount > 0) {
60 sk_bzero(glyphs, glyphCount * sizeof(glyphs[0]));
254 uint16_t glyphs[], int glyphCount) const {
255 if (glyphCount <= 0) {
260 sk_bzero(glyphs, glyphCount * sizeof(glyphs[0]));
264 return this->onCharsToGlyphs(chars, encoding, glyphs, glyphCount);
/external/icu/icu4c/source/test/letest/
H A Dletest.h44 le_int32 glyphCount; member in struct:TestResult
H A Dcletest.c49 le_int32 glyphCount = 0; local
59 glyphCount = le_getGlyphCount(engine, &status);
60 if (glyphCount != 0) {
61 log_err("Calling getGlyphCount() on an empty layout returned %d.\n", glyphCount);
64 glyphs = NEW_ARRAY(LEGlyphID, glyphCount + 10);
65 indices = NEW_ARRAY(le_int32, glyphCount + 10);
66 positions = NEW_ARRAY(float, glyphCount + 10);
128 glyphCount = le_layoutChars(engine, NULL, 0, 0, 0, FALSE, 0.0, 0.0, &status);
135 glyphCount = le_layoutChars(engine, chars, -1, 6, 20, TRUE, 0.0, 0.0, &status);
142 glyphCount
218 le_int32 glyphCount; local
670 const le_int32 glyphCount = pl_getVisualRunGlyphCount(visualRun); local
[all...]
H A Dletest.cpp64 le_int32 glyphCount = 0; local
66 glyphCount = engine->getGlyphCount();
67 if (glyphCount != 0) {
68 log_err("Calling getGlyphCount() on an empty layout returned %d.\n", glyphCount);
71 glyphs = NEW_ARRAY(LEGlyphID, glyphCount + 10);
72 indices = NEW_ARRAY(le_int32, glyphCount + 10);
73 positions = NEW_ARRAY(float, glyphCount + 10);
149 glyphCount = engine->layoutChars(NULL, 0, 0, 0, FALSE, 0.0, 0.0, status);
162 glyphCount = engine->layoutChars(chars, -1, 6, 20, TRUE, 0.0, 0.0, status);
169 glyphCount
246 le_int32 glyphCount; local
615 int32_t glyphCount = 0, indexCount = 0, positionCount = 0; local
900 le_int32 glyphCount = visualRun->getGlyphCount(); local
[all...]
H A Dxmlreader.cpp183 int32_t glyphCount = 0, indexCount = 0, positionCount = 0; local
228 expected.glyphs = (LEGlyphID *) getHexArray(glyphs, glyphCount);
232 expected.glyphCount = glyphCount;
234 if (glyphCount < charCount || indexCount != glyphCount || positionCount < glyphCount * 2 + 2) {
235 log_err("Test %s: inconsistent input data: charCount = %d, glyphCount = %d, indexCount = %d, positionCount = %d\n",
236 id, charCount, glyphCount, indexCount, positionCount);
H A Dgendata.cpp206 int32_t glyphCount = 0; local
316 glyphCount = engine->layoutChars(text.getBuffer(), 0, charCount, charCount, getRTL(text), 0, 0, leStatus);
318 glyphs = NEW_ARRAY(LEGlyphID, glyphCount);
319 indices = NEW_ARRAY(le_int32, glyphCount);
320 positions = NEW_ARRAY(float, glyphCount * 2 + 2);
333 dumpLongs(outputFile, "result-glyphs", (le_int32 *) glyphs, glyphCount);
335 dumpLongs(outputFile, "result-indices", indices, glyphCount);
337 dumpFloats(outputFile, "result-positions", positions, glyphCount * 2 + 2);
/external/skia/src/gpu/text/
H A DGrTextBlobCache.h36 sk_sp<GrAtlasTextBlob> makeBlob(int glyphCount, int runCount) { argument
37 return GrAtlasTextBlob::Make(&fPool, glyphCount, runCount);
41 int glyphCount = 0; local
43 BlobGlyphCount(&glyphCount, &runCount, blob);
44 return GrAtlasTextBlob::Make(&fPool, glyphCount, runCount);
87 static void BlobGlyphCount(int* glyphCount, int* runCount, const SkTextBlob* blob) { argument
90 *glyphCount += itCounter.glyphCount();
H A DGrAtlasTextBlob_regenInOp.cpp143 SkAutoGlyphCache* lazyCache, int glyphCount, size_t vertexStride,
171 for (int glyphIdx = 0; glyphIdx < glyphCount; glyphIdx++) {
242 *glyphCount, vertexStride, color, transX, transY
250 void** vertices, size_t* byteCount, int* glyphCount) {
274 *glyphCount = info.glyphCount();
320 helper->incGlyphCount(*glyphCount);
141 regenInOp(GrDrawOp::Target* target, GrAtlasGlyphCache* fontCache, GrBlobRegenHelper* helper, Run* run, Run::SubRunInfo* info, SkAutoGlyphCache* lazyCache, int glyphCount, size_t vertexStride, GrColor color, SkScalar transX, SkScalar transY) const argument
244 regenInOp(GrDrawOp::Target* target, GrAtlasGlyphCache* fontCache, GrBlobRegenHelper* helper, int runIndex, int subRunIndex, SkAutoGlyphCache* lazyCache, size_t vertexStride, const SkMatrix& viewMatrix, SkScalar x, SkScalar y, GrColor color, void** vertices, size_t* byteCount, int* glyphCount) argument
H A DGrAtlasTextContext.cpp136 int glyphCount = 0; local
138 GrTextBlobCache::BlobGlyphCount(&glyphCount, &runCount, blob);
139 sk_sp<GrAtlasTextBlob> sanityBlob(cache->makeBlob(glyphCount, runCount));
175 int glyphCount = it.glyphCount(); local
176 size_t textLen = glyphCount * sizeof(uint16_t);
243 int glyphCount = paint.skPaint().countText(text, byteLength); local
245 sk_sp<GrAtlasTextBlob> blob = blobCache->makeBlob(glyphCount, 1);
269 int glyphCount = paint.skPaint().countText(text, byteLength); local
271 sk_sp<GrAtlasTextBlob> blob = blobCache->makeBlob(glyphCount,
[all...]
/external/skia/src/ports/
H A DSkTypeface_win_dw.cpp79 uint16_t glyphs[], int glyphCount) const
83 for (int i = 0; i < glyphCount; ++i) {
91 return glyphCount;
100 for (int baseGlyph = 0; baseGlyph < glyphCount; baseGlyph += scratchCount) {
101 int glyphsLeft = glyphCount - baseGlyph;
112 fDWriteFontFace->GetGlyphIndices(utf32, glyphCount, glyphs);
119 for (int i = 0; i < glyphCount; ++i) {
124 return glyphCount;
298 const unsigned glyphCount,
302 (SkUnichar*)sk_calloc_throw(sizeof(SkUnichar) * glyphCount));
297 populate_glyph_to_unicode(IDWriteFontFace* fontFace, const unsigned glyphCount, SkTDArray<SkUnichar>* glyphToUnicode) argument
328 const unsigned glyphCount = fDWriteFontFace->GetGlyphCount(); local
[all...]
/external/skia/tests/
H A DTextBlobTest.cpp161 const int glyphCount = p.textToGlyphs(txt, txtLen, nullptr); local
164 const SkTextBlobBuilder::RunBuffer& buffer = builder.allocRunPos(p, glyphCount);
169 memset(buffer.pos, 0, sizeof(SkScalar) * glyphCount * 2);
265 unsigned glyphCount = 0; local
270 glyphCount += in[i].count;
284 REPORTER_ASSERT(reporter, out[i].count == it.glyphCount());
292 for (unsigned k = 0; k < it.glyphCount(); ++k) {
356 int glyphCount = paint.textToGlyphs(text1, strlen(text1), nullptr); local
357 SkAutoTMalloc<uint16_t> glyphs(glyphCount);
362 paint, glyphCount,
400 int glyphCount = paint.textToGlyphs(text, strlen(text), nullptr); local
[all...]
/external/skia/src/gpu/ops/
H A DGrAtlasTextOp.h40 int glyphCount, GrAtlasGlyphCache* fontCache) {
55 op->fNumGlyphs = glyphCount;
63 GrPaint&& paint, int glyphCount, GrAtlasGlyphCache* fontCache,
77 op->fNumGlyphs = glyphCount;
212 void incGlyphCount(int glyphCount = 1) { fFlushInfo->fGlyphsToFlush += glyphCount; }
39 MakeBitmap(GrPaint&& paint, GrMaskFormat maskFormat, int glyphCount, GrAtlasGlyphCache* fontCache) argument
62 MakeDistanceField( GrPaint&& paint, int glyphCount, GrAtlasGlyphCache* fontCache, const GrDistanceFieldAdjustTable* distanceAdjustTable, bool useGammaCorrectDistanceTable, SkColor luminanceColor, bool isLCD, bool useBGR, bool isAntiAliased) argument
/external/icu/icu4c/source/layoutex/
H A DParagraphLayout.cpp397 fStyleRunInfo[run].glyphCount = 0;
420 fStyleRunInfo[run].glyphCount = fStyleRunInfo[run].engine->layoutChars(fChars, runStart, fStyleRunLimits[run] - runStart, fCharCount,
429 fGlyphCount += fStyleRunInfo[run].glyphCount;
453 le_int32 glyphCount = fStyleRunInfo[run].glyphCount; local
456 fStyleRunInfo[run].glyphs = LE_NEW_ARRAY(LEGlyphID, glyphCount);
457 fStyleRunInfo[run].positions = LE_NEW_ARRAY(float, glyphCount * 2 + 2);
482 for (glyph = 0; glyph < glyphCount; glyph += 1) {
487 LXUtilities::reverse(&fGlyphWidths[glyphBase], glyphCount);
488 LXUtilities::reverse(&fGlyphToCharMap[glyphBase], glyphCount);
1102 le_int32 glyphCount = rightGlyph - leftGlyph; local
1208 le_int32 glyphCount = lastRun->getGlyphCount(); local
1223 append(const LEFontInstance *font, UBiDiDirection direction, le_int32 glyphCount, const LEGlyphID glyphs[], const float positions[], const le_int32 glyphToCharMap[]) argument
[all...]
/external/skia/src/fonts/
H A DSkTestScalerContext.cpp152 int glyphCount = this->onCountGlyphs();
155 toUnicode.setCount(glyphCount);
156 SkASSERT(glyphCount == SkToInt(fTestFont->fCharCodesCount));
157 for (int gid = 0; gid < glyphCount; ++gid) {
170 uint16_t glyphs[], int glyphCount) const {
172 for (int index = 0; index < glyphCount; ++index) {
176 return glyphCount;
H A DSkRandomScalerContext.h35 uint16_t glyphs[], int glyphCount) const override;
/external/icu/icu4c/source/layoutex/layout/
H A DParagraphLayout.h188 void append(const LEFontInstance *font, UBiDiDirection direction, le_int32 glyphCount,
349 inline VisualRun(const LEFontInstance *font, UBiDiDirection direction, le_int32 glyphCount,
578 le_int32 glyphCount; member in struct:ParagraphLayout::StyleRunInfo
739 inline ParagraphLayout::VisualRun::VisualRun(const LEFontInstance *font, UBiDiDirection direction, le_int32 glyphCount, argument
741 : fFont(font), fDirection(direction), fGlyphCount(glyphCount),
/external/icu/icu4c/source/samples/layout/
H A DGnomeFontInstance.cpp184 void GnomeFontInstance::rasterizeGlyphs(cairo_t *cairo, const LEGlyphID *glyphs, le_int32 glyphCount, const float *positions, argument
187 cairo_glyph_t *glyph_t = LE_NEW_ARRAY(cairo_glyph_t, glyphCount);
190 for (in = 0, out = 0; in < glyphCount; in += 1) {

Completed in 1388 milliseconds

123