Home
last modified time | relevance | path

Searched refs:SkEndian_SwapBE16 (Results 1 – 13 of 13) sorted by relevance

/external/skia/src/sfnt/
DSkOTTable_name.cpp20 SkUnichar c = SkEndian_SwapBE16(*src++); in SkUTF16BE_NextUnichar()
24 unsigned c2 = SkEndian_SwapBE16(*src++); in SkUTF16BE_NextUnichar()
441 const size_t nameRecordsCount = SkEndian_SwapBE16(fName.count); in next()
457 const uint16_t stringTableOffset = SkEndian_SwapBE16(fName.stringOffset); in next()
461 const uint16_t nameOffset = SkEndian_SwapBE16(nameRecord->offset); in next()
462 const uint16_t nameLength = SkEndian_SwapBE16(nameRecord->length); in next()
501 const uint16_t languageID = SkEndian_SwapBE16(nameRecord->languageID.languageTagID); in next()
510 if (languageTagRecordIndex < SkEndian_SwapBE16(format1ext->langTagCount)) { in next()
514 uint16_t offset = SkEndian_SwapBE16(languageTagRecord[languageTagRecordIndex].offset); in next()
515 uint16_t length = SkEndian_SwapBE16(languageTagRecord[languageTagRecordIndex].length); in next()
DSkOTUtils.cpp47 int numTables = SkEndian_SwapBE16(sfntHeader.numTables); in RenameFont()
122 nameTable->count = SkEndian_SwapBE16(namesCount); in RenameFont()
123 nameTable->stringOffset = SkEndian_SwapBE16(stringOffset); in RenameFont()
131 nameRecords[i].offset = SkEndian_SwapBE16(0); in RenameFont()
132 nameRecords[i].length = SkEndian_SwapBE16(SkToU16(fontNameLen * sizeof(wchar_t))); in RenameFont()
137 nameString[i] = SkEndian_SwapBE16(fontName[i]); in RenameFont()
DSkOTTable_glyf.h42 … : uint32_t(SkEndian_SwapBE16(*fLocaPtr.shortOffset) << 1); in advance()
/external/skia/src/ports/
DSkTypeface_win_dw.cpp380 (1 == SkEndian_SwapBE16(hheaTable->numberOfHMetrics))); in onGetAdvancedTypefaceMetrics()
412 info->fBBox = SkIRect::MakeLTRB((int32_t)SkEndian_SwapBE16((uint16_t)headTable->xMin), in onGetAdvancedTypefaceMetrics()
413 (int32_t)SkEndian_SwapBE16((uint16_t)headTable->yMax), in onGetAdvancedTypefaceMetrics()
414 (int32_t)SkEndian_SwapBE16((uint16_t)headTable->xMax), in onGetAdvancedTypefaceMetrics()
415 (int32_t)SkEndian_SwapBE16((uint16_t)headTable->yMin)); in onGetAdvancedTypefaceMetrics()
DSkScalerContext_win_dw.cpp644 metrics->fTop = -fTextSizeRender * (int16_t)SkEndian_SwapBE16(head->yMax) / upem; in generateFontMetrics()
645 metrics->fBottom = -fTextSizeRender * (int16_t)SkEndian_SwapBE16(head->yMin) / upem; in generateFontMetrics()
646 metrics->fXMin = fTextSizeRender * (int16_t)SkEndian_SwapBE16(head->xMin) / upem; in generateFontMetrics()
647 metrics->fXMax = fTextSizeRender * (int16_t)SkEndian_SwapBE16(head->xMax) / upem; in generateFontMetrics()
DSkFontHost_mac.cpp1329 uint16_t xHeight = SkEndian_SwapBE16(heights.sxHeight); in generateFontMetrics()
1333 uint16_t capHeight = SkEndian_SwapBE16(heights.sCapHeight); in generateFontMetrics()
1642 header->numTables = SkEndian_SwapBE16(numTables); in onOpenStream()
1643 header->searchRange = SkEndian_SwapBE16(searchRange); in onOpenStream()
1644 header->entrySelector = SkEndian_SwapBE16(entrySelector); in onOpenStream()
1645 header->rangeShift = SkEndian_SwapBE16(rangeShift); in onOpenStream()
DSkFontHost_win.cpp164 return SkEndian_SwapBE16(glyphs); in calculateGlyphCount()
2218 int numTables = SkEndian_SwapBE16(header.numTables); in onGetTableTags()
/external/skia/src/core/
DSkEndian.h116 #define SkEndian_SwapBE16(n) SkEndianSwap16(n) macro
130 #define SkEndian_SwapBE16(n) (n) macro
DSkFontStream.cpp99 return SkEndian_SwapBE16(header->fSingle.fNumTables); in count_tables()
DSkICC.cpp294 ptr[2] = (uint32_t) (SkEndian_SwapBE16(kGABCDEF_ParaCurveType)); in write_trc_tag()
/external/skia/tests/
DTypefaceTest.cpp36 int numTables = SkEndian_SwapBE16(sfntHeader->numTables); in TypefaceStyle_test()
47 os2Table->usWeightClass.value = SkEndian_SwapBE16(weight); in TypefaceStyle_test()
49 os2Table->usWidthClass.value = static_cast<WidthType>(SkEndian_SwapBE16(width)); in TypefaceStyle_test()
DFontHostTest.cpp44 tableUPEM = SkEndian_SwapBE16(rawUPEM); in test_unitsPerEm()
63 tableGlyphs = SkEndian_SwapBE16(rawGlyphs); in test_countGlyphs()
/external/skia/src/xps/
DSkXPSDevice.cpp389 int numTables = SkEndian_SwapBE16(sfntHeader->numTables); in subset_typeface()