Home
last modified time | relevance | path

Searched refs:cmap (Results 1 – 4 of 4) sorted by relevance

/frameworks/minikin/tests/unittest/
DCmapCoverageTest.cpp291 std::vector<uint8_t> cmap = in TEST() local
295 CmapCoverage::getCoverage(cmap.data(), 3 /* too small */, &vsTables); in TEST()
301 std::vector<uint8_t> cmap = in TEST() local
304 writeU16(1000, cmap.data(), 2 /* offset of num tables in cmap header */); in TEST()
305 SparseBitSet coverage = CmapCoverage::getCoverage(cmap.data(), cmap.size(), &vsTables); in TEST()
311 std::vector<uint8_t> cmap = in TEST() local
314 writeU16(1000, cmap.data(), 8 /* offset of the offset in the first encoding record */); in TEST()
315 SparseBitSet coverage = CmapCoverage::getCoverage(cmap.data(), cmap.size(), &vsTables); in TEST()
321 std::vector<uint8_t> cmap = CmapBuilder::buildSingleFormat4Cmap( in TEST() local
324 SparseBitSet coverage = CmapCoverage::getCoverage(cmap.data(), cmap.size(), &vsTables); in TEST()
[all …]
/frameworks/base/core/jni/android/graphics/
DGIFMovie.cpp120 static void copyLine(uint32_t* dst, const unsigned char* src, const ColorMapObject* cmap, in copyLine() argument
124 if (*src != transparent && *src < cmap->ColorCount) { in copyLine()
125 const GifColorType& col = cmap->Colors[*src]; in copyLine()
133 const ColorMapObject* cmap, int transparent, int copyWidth, in copyInterlaceGroup() argument
141 copyLine(dst, src, cmap, transparent, copyWidth); in copyInterlaceGroup()
149 static void blitInterlace(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap, in blitInterlace() argument
168 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 8, 0); in blitInterlace()
171 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 8, 4); in blitInterlace()
174 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 4, 2); in blitInterlace()
176 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 2, 1); in blitInterlace()
[all …]
/frameworks/ex/framesequence/jni/
DFrameSequence_gif.cpp114 const ColorMapObject* cmap = mGif->SColorMap; in FrameSequence_gif() local
115 if (cmap) { in FrameSequence_gif()
120 && mGif->SBackGroundColor < cmap->ColorCount) { in FrameSequence_gif()
121 mBgColor = gifColorToColor8888(cmap->Colors[mGif->SBackGroundColor]); in FrameSequence_gif()
150 static void copyLine(Color8888* dst, const unsigned char* src, const ColorMapObject* cmap, in copyLine() argument
153 if (*src != transparent && *src < cmap->ColorCount) { in copyLine()
154 *dst = gifColorToColor8888(cmap->Colors[*src]); in copyLine()
307 const ColorMapObject* cmap = gif->SColorMap; in drawFrame() local
309 cmap = frame.ImageDesc.ColorMap; in drawFrame()
313 if (cmap) { in drawFrame()
[all …]
/frameworks/base/tools/fonts/
Dfontchain_linter.py89 for cmap in ttfont['cmap'].tables:
90 specifier = (cmap.format, cmap.platformID, cmap.platEncID)
93 bmp_cmap = cmap
97 all_unicode_cmap = cmap
99 return all_unicode_cmap.cmap if all_unicode_cmap else bmp_cmap.cmap
105 for cmap in ttfont['cmap'].tables:
106 specifier = (cmap.format, cmap.platformID, cmap.platEncID)
109 vs_cmap = cmap