Searched refs:extents (Results 1 - 10 of 10) sorted by relevance

/frameworks/base/core/jni/android/graphics/
H A DHarfBuzzNGFaceSkia.cpp59 static void SkiaGetGlyphWidthAndExtents(SkPaint* paint, hb_codepoint_t codepoint, hb_position_t* width, hb_glyph_extents_t* extents) argument
74 if (extents) {
76 extents->x_bearing = SkScalarToHBFixed(skBounds.fLeft);
77 extents->y_bearing = SkScalarToHBFixed(-skBounds.fTop);
78 extents->width = SkScalarToHBFixed(skBounds.width());
79 extents->height = SkScalarToHBFixed(-skBounds.height());
116 static hb_bool_t harfbuzzGetGlyphExtents(hb_font_t* hbFont, void* fontData, hb_codepoint_t glyph, hb_glyph_extents_t* extents, void* userData) argument
120 SkiaGetGlyphWidthAndExtents(hbFontData->m_paint, glyph, 0, extents);
/frameworks/minikin/include/minikin/
H A DLayout.h103 EndHyphenEdit endHyphen, float* advances, MinikinExtent* extents,
122 // Get extents, copying into caller-provided buffer. The size of this buffer must match the
124 void getExtents(MinikinExtent* extents) const;
167 MinikinExtent* extents, MinikinRect* bounds,
175 MinikinExtent* extents, MinikinRect* bounds, LayoutPieces* lpOut);
H A DMeasuredText.h47 // Fills the each character's advances, extents and overhangs.
48 virtual void getMetrics(const U16StringPiece& text, float* advances, MinikinExtent* extents,
85 void getMetrics(const U16StringPiece& text, float* advances, MinikinExtent* extents,
89 EndHyphenEdit::NO_EDIT, advances, extents, pieces);
125 // TODO: Get the extents information from the caller.
163 // Font vertical extents for characters.
164 // TODO: Introduce compression for extents. Usually, this has the same values for all chars.
165 std::vector<MinikinExtent> extents; member in class:minikin::MeasuredText
174 // TODO: Stop assigning width/extents if layout pieces are available for reducing memory impact.
178 return sizeof(float) * widths.size() + sizeof(MinikinExtent) * extents
[all...]
/frameworks/minikin/libs/minikin/
H A DLayout.cpp275 EndHyphenEdit endHyphen, float* advances, MinikinExtent* extents,
281 MinikinExtent* extentsForRun = extents ? extents + offset : nullptr;
293 MinikinExtent* extents, MinikinRect* bounds, LayoutPieces* lpOut) {
317 extents ? extents + offset : nullptr, bounds, lpOut);
335 extents ? extents + offset : nullptr, bounds, lpOut);
347 MinikinExtent* extents, LayoutPieces* pieces, float* totalAdvance,
357 mExtents(extents),
273 measureText(const U16StringPiece& textBuf, const Range& range, Bidi bidiFlags, const MinikinPaint& paint, StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, float* advances, MinikinExtent* extents, LayoutPieces* pieces) argument
289 doLayoutRunCached(const U16StringPiece& textBuf, const Range& range, bool isRtl, const MinikinPaint& paint, size_t dstStart, StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, const LayoutPieces* lpIn, Layout* layout, float* advances, MinikinExtent* extents, MinikinRect* bounds, LayoutPieces* lpOut) argument
344 LayoutAppendFunctor(const U16StringPiece& textBuf, const Range& range, const MinikinPaint& paint, bool dir, StartHyphenEdit startEdit, EndHyphenEdit endEdit, Layout* layout, float* advances, MinikinExtent* extents, LayoutPieces* pieces, float* totalAdvance, MinikinRect* bounds, uint32_t outOffset, float wordSpacing) argument
402 doLayoutWord(const uint16_t* buf, size_t start, size_t count, size_t bufSize, bool isRtl, const MinikinPaint& paint, size_t bufStart, StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, const LayoutPieces* lpIn, Layout* layout, float* advances, MinikinExtent* extents, MinikinRect* bounds, LayoutPieces* lpOut) argument
721 hb_glyph_extents_t extents = {}; local
[all...]
H A DMeasuredText.cpp37 run->getMetrics(textBuf, widths.data() + runOffset, extents.data() + runOffset, piecesOut);
H A DGreedyLineBreaker.cpp367 extent.extendBy(mMeasuredText.extents[i]);
H A DOptimalLineBreaker.cpp300 res.extendBy(measured.extents[j]);
/frameworks/av/media/extractors/mp4/
H A DItemTable.cpp272 extents.push_back(extent);
278 CHECK(extents.size() == 1);
280 *offset = baseOffset + extents[0].extentOffset;
281 *size = extents[0].extentLength;
284 if (baseOffset + extents[0].extentOffset + extents[0].extentLength
288 *offset = baseOffset + extents[0].extentOffset + idatOffset;
289 *size = extents[0].extentLength;
300 Vector<ExtentEntry> extents; member in struct:android::heif::ItemLoc
427 // if the item is dividec into more than one extents, offse
[all...]
/frameworks/minikin/tests/unittest/
H A DLayoutTest.cpp494 MinikinExtent extents[text.size()]; local
495 layout.getExtents(extents);
497 EXPECT_EQ(-10.0f, extents[i].ascent);
498 EXPECT_EQ(20.0f, extents[i].descent);
499 EXPECT_EQ(0.0f, extents[i].line_gap);
/frameworks/native/vulkan/vkjson/
H A Dvkjson.cc331 inline bool Iterate(Visitor* visitor, VkExtent3D* extents) { argument
333 visitor->Visit("width", &extents->width) &&
334 visitor->Visit("height", &extents->height) &&
335 visitor->Visit("depth", &extents->depth);

Completed in 177 milliseconds