Home
last modified time | relevance | path

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

123456

/external/libgdx/extensions/gdx-freetype/jni/freetype-2.6.2/src/psaux/
Dt1cmap.c35 t1_cmap_std_init( T1_CMapStd cmap, in t1_cmap_std_init() argument
38 T1_Face face = (T1_Face)FT_CMAP_FACE( cmap ); in t1_cmap_std_init()
42 cmap->num_glyphs = (FT_UInt)face->type1.num_glyphs; in t1_cmap_std_init()
43 cmap->glyph_names = (const char* const*)face->type1.glyph_names; in t1_cmap_std_init()
44 cmap->sid_to_string = psnames->adobe_std_strings; in t1_cmap_std_init()
45 cmap->code_to_sid = is_expert ? psnames->adobe_expert_encoding in t1_cmap_std_init()
48 FT_ASSERT( cmap->code_to_sid != NULL ); in t1_cmap_std_init()
53 t1_cmap_std_done( T1_CMapStd cmap ) in t1_cmap_std_done() argument
55 cmap->num_glyphs = 0; in t1_cmap_std_done()
56 cmap->glyph_names = NULL; in t1_cmap_std_done()
[all …]
/external/freetype/src/psaux/
Dt1cmap.c35 t1_cmap_std_init( T1_CMapStd cmap, in t1_cmap_std_init() argument
38 T1_Face face = (T1_Face)FT_CMAP_FACE( cmap ); in t1_cmap_std_init()
42 cmap->num_glyphs = (FT_UInt)face->type1.num_glyphs; in t1_cmap_std_init()
43 cmap->glyph_names = (const char* const*)face->type1.glyph_names; in t1_cmap_std_init()
44 cmap->sid_to_string = psnames->adobe_std_strings; in t1_cmap_std_init()
45 cmap->code_to_sid = is_expert ? psnames->adobe_expert_encoding in t1_cmap_std_init()
48 FT_ASSERT( cmap->code_to_sid != NULL ); in t1_cmap_std_init()
53 t1_cmap_std_done( T1_CMapStd cmap ) in t1_cmap_std_done() argument
55 cmap->num_glyphs = 0; in t1_cmap_std_done()
56 cmap->glyph_names = NULL; in t1_cmap_std_done()
[all …]
/external/pdfium/third_party/freetype/src/psaux/
Dt1cmap.c35 t1_cmap_std_init( T1_CMapStd cmap, in t1_cmap_std_init() argument
38 T1_Face face = (T1_Face)FT_CMAP_FACE( cmap ); in t1_cmap_std_init()
42 cmap->num_glyphs = (FT_UInt)face->type1.num_glyphs; in t1_cmap_std_init()
43 cmap->glyph_names = (const char* const*)face->type1.glyph_names; in t1_cmap_std_init()
44 cmap->sid_to_string = psnames->adobe_std_strings; in t1_cmap_std_init()
45 cmap->code_to_sid = is_expert ? psnames->adobe_expert_encoding in t1_cmap_std_init()
48 FT_ASSERT( cmap->code_to_sid != NULL ); in t1_cmap_std_init()
53 t1_cmap_std_done( T1_CMapStd cmap ) in t1_cmap_std_done() argument
55 cmap->num_glyphs = 0; in t1_cmap_std_done()
56 cmap->glyph_names = NULL; in t1_cmap_std_done()
[all …]
/external/freetype/src/sfnt/
Dttcmap.c55 tt_cmap_init( TT_CMap cmap, in tt_cmap_init() argument
58 cmap->data = table; in tt_cmap_init()
124 tt_cmap0_char_index( TT_CMap cmap, in tt_cmap0_char_index() argument
127 FT_Byte* table = cmap->data; in tt_cmap0_char_index()
135 tt_cmap0_char_next( TT_CMap cmap, in tt_cmap0_char_next() argument
138 FT_Byte* table = cmap->data; in tt_cmap0_char_next()
161 tt_cmap0_get_info( TT_CMap cmap, in tt_cmap0_get_info() argument
164 FT_Byte* p = cmap->data + 4; in tt_cmap0_get_info()
445 tt_cmap2_char_index( TT_CMap cmap, in tt_cmap2_char_index() argument
448 FT_Byte* table = cmap->data; in tt_cmap2_char_index()
[all …]
/external/libgdx/extensions/gdx-freetype/jni/freetype-2.6.2/src/sfnt/
Dttcmap.c62 tt_cmap_init( TT_CMap cmap, in tt_cmap_init() argument
65 cmap->data = table; in tt_cmap_init()
131 tt_cmap0_char_index( TT_CMap cmap, in tt_cmap0_char_index() argument
134 FT_Byte* table = cmap->data; in tt_cmap0_char_index()
142 tt_cmap0_char_next( TT_CMap cmap, in tt_cmap0_char_next() argument
145 FT_Byte* table = cmap->data; in tt_cmap0_char_next()
168 tt_cmap0_get_info( TT_CMap cmap, in tt_cmap0_get_info() argument
171 FT_Byte* p = cmap->data + 4; in tt_cmap0_get_info()
453 tt_cmap2_char_index( TT_CMap cmap, in tt_cmap2_char_index() argument
456 FT_Byte* table = cmap->data; in tt_cmap2_char_index()
[all …]
/external/pdfium/third_party/freetype/src/sfnt/
Dttcmap.c62 tt_cmap_init( TT_CMap cmap, in tt_cmap_init() argument
65 cmap->data = table; in tt_cmap_init()
131 tt_cmap0_char_index( TT_CMap cmap, in tt_cmap0_char_index() argument
134 FT_Byte* table = cmap->data; in tt_cmap0_char_index()
142 tt_cmap0_char_next( TT_CMap cmap, in tt_cmap0_char_next() argument
145 FT_Byte* table = cmap->data; in tt_cmap0_char_next()
168 tt_cmap0_get_info( TT_CMap cmap, in tt_cmap0_get_info() argument
171 FT_Byte* p = cmap->data + 4; in tt_cmap0_get_info()
453 tt_cmap2_char_index( TT_CMap cmap, in tt_cmap2_char_index() argument
456 FT_Byte* table = cmap->data; in tt_cmap2_char_index()
[all …]
/external/libgdx/extensions/gdx-freetype/jni/freetype-2.6.2/src/pfr/
Dpfrcmap.c28 pfr_cmap_init( PFR_CMap cmap, in pfr_cmap_init() argument
32 PFR_Face face = (PFR_Face)FT_CMAP_FACE( cmap ); in pfr_cmap_init()
37 cmap->num_chars = face->phy_font.num_chars; in pfr_cmap_init()
38 cmap->chars = face->phy_font.chars; in pfr_cmap_init()
46 for ( n = 1; n < cmap->num_chars; n++ ) in pfr_cmap_init()
48 if ( cmap->chars[n - 1].char_code >= cmap->chars[n].char_code ) in pfr_cmap_init()
62 pfr_cmap_done( PFR_CMap cmap ) in pfr_cmap_done() argument
64 cmap->chars = NULL; in pfr_cmap_done()
65 cmap->num_chars = 0; in pfr_cmap_done()
70 pfr_cmap_char_index( PFR_CMap cmap, in pfr_cmap_char_index() argument
[all …]
/external/sfntly/cpp/src/test/
Dcmap_editing_test.cc43 (CMapTable::Builder*)font_builder->GetTableBuilder(Tag::cmap); in TEST()
59 CMapTablePtr cmap_table = down_cast<CMapTable*>(font->GetTable(Tag::cmap)); in TEST()
61 CMapTable::CMapPtr cmap; in TEST() local
62 cmap.Attach(cmap_table->GetCMap(CMapTable::WINDOWS_BMP)); in TEST()
63 ASSERT_EQ(CMapTable::WINDOWS_BMP, cmap->cmap_id()); in TEST()
76 CMapTablePtr cmap_table = down_cast<CMapTable*>(font->GetTable(Tag::cmap)); in TEST()
80 (CMapTable::Builder*)font_builder->NewTableBuilder(Tag::cmap); in TEST()
84 CMapTable::CMapPtr cmap; in TEST() local
85 cmap.Attach(cmap_iter.Next()); in TEST()
86 if (!cmap) in TEST()
[all …]
/external/fonttools/Lib/fontTools/ttLib/tables/
D_c_m_a_p.py51 table.cmap = tables[seenOffsets[offset]].cmap
66 offset = seen[id(table.cmap)]
72 offset = seen[id(table.cmap)] = done[chunk] = totalOffset + len(tableData)
137 codes = sorted(self.cmap.items())
188 self.cmap = cmap = {}
192 list(map(operator.setitem, [cmap]*lenArray, charCodes, names))
199 charCodeList = sorted(self.cmap.items())
213 self.cmap = {}
214 cmap = self.cmap
221 cmap[safeEval(attrs["code"])] = attrs["name"]
[all …]
/external/icu/icu4c/source/samples/layout/
Dcmaps.cpp59 CMAPMapper *CMAPMapper::createUnicodeMapper(const CMAPTable *cmap) in createUnicodeMapper() argument
62 le_uint16 nSubtables = SWAPW(cmap->numberSubtables); in createUnicodeMapper()
67 const CMAPEncodingSubtableHeader *esh = &cmap->encodingSubtableHeaders[i]; in createUnicodeMapper()
85 subtable = (const CMAPEncodingSubtable *) ((const char *) cmap + offset10); in createUnicodeMapper()
87 subtable = (const CMAPEncodingSubtable *) ((const char *) cmap + offset1); in createUnicodeMapper()
94 return new CMAPFormat4Mapper(cmap, (const CMAPFormat4Encoding *) subtable); in createUnicodeMapper()
100 return new CMAPGroupMapper(cmap, encoding->groups, SWAPL(encoding->nGroups)); in createUnicodeMapper()
110 CMAPFormat4Mapper::CMAPFormat4Mapper(const CMAPTable *cmap, const CMAPFormat4Encoding *header) in CMAPFormat4Mapper() argument
111 : CMAPMapper(cmap) in CMAPFormat4Mapper()
170 CMAPGroupMapper::CMAPGroupMapper(const CMAPTable *cmap, const CMAPGroup *groups, le_uint32 nGroups) in CMAPGroupMapper() argument
[all …]
Dcmaps.h27 static CMAPMapper *createUnicodeMapper(const CMAPTable *cmap);
30 CMAPMapper(const CMAPTable *cmap);
41 CMAPFormat4Mapper(const CMAPTable *cmap, const CMAPFormat4Encoding *header);
62 CMAPGroupMapper(const CMAPTable *cmap, const CMAPGroup *groups, le_uint32 nGroups);
77 inline CMAPMapper::CMAPMapper(const CMAPTable *cmap) in CMAPMapper() argument
78 : fcmap(cmap) in CMAPMapper()
/external/opencv3/3rdparty/libjasper/
Djp2_dec.c189 if (!dec->cmap) { in jp2_decode()
190 dec->cmap = box; in jp2_decode()
305 if (dec->cmap && !dec->pclr) { in jp2_decode()
307 jp2_box_destroy(dec->cmap); in jp2_decode()
308 dec->cmap = 0; in jp2_decode()
312 if (!dec->cmap && dec->pclr) { in jp2_decode()
320 …dec->numchans = dec->cmap ? dec->cmap->data.cmap.numchans : JAS_CAST(uint, jas_image_numcmpts(dec-… in jp2_decode()
323 if (dec->cmap) { in jp2_decode()
326 … if (dec->cmap->data.cmap.ents[i].cmptno >= JAS_CAST(uint, jas_image_numcmpts(dec->image))) { in jp2_decode()
331 if (dec->cmap->data.cmap.ents[i].pcol >= dec->pclr->data.pclr.numchans) { in jp2_decode()
[all …]
/external/icu/icu4c/source/test/letest/
Dcmaps.cpp54 CMAPMapper *CMAPMapper::createUnicodeMapper(const CMAPTable *cmap) in createUnicodeMapper() argument
57 le_uint16 nSubtables = SWAPW(cmap->numberSubtables); in createUnicodeMapper()
66 const CMAPEncodingSubtableHeader *esh = &cmap->encodingSubtableHeaders[i]; in createUnicodeMapper()
92 const CMAPEncodingSubtableHeader *esh = &cmap->encodingSubtableHeaders[i]; in createUnicodeMapper()
122 subtable = (const CMAPEncodingSubtable *) ((const char *) cmap + foundOffset); in createUnicodeMapper()
137 return new CMAPFormat4Mapper(cmap, (const CMAPFormat4Encoding *) subtable); in createUnicodeMapper()
143 return new CMAPGroupMapper(cmap, encoding->groups, SWAPL(encoding->nGroups)); in createUnicodeMapper()
154 CMAPFormat4Mapper::CMAPFormat4Mapper(const CMAPTable *cmap, const CMAPFormat4Encoding *header) in CMAPFormat4Mapper() argument
155 : CMAPMapper(cmap) in CMAPFormat4Mapper()
214 CMAPGroupMapper::CMAPGroupMapper(const CMAPTable *cmap, const CMAPGroup *groups, le_uint32 nGroups) in CMAPGroupMapper() argument
[all …]
Dcmaps.h23 static CMAPMapper *createUnicodeMapper(const CMAPTable *cmap);
26 CMAPMapper(const CMAPTable *cmap);
37 CMAPFormat4Mapper(const CMAPTable *cmap, const CMAPFormat4Encoding *header);
58 CMAPGroupMapper(const CMAPTable *cmap, const CMAPGroup *groups, le_uint32 nGroups);
73 inline CMAPMapper::CMAPMapper(const CMAPTable *cmap) in CMAPMapper() argument
74 : fcmap(cmap) in CMAPMapper()
/external/icu/icu4c/source/test/perf/leperf/
Dcmaps.cpp54 CMAPMapper *CMAPMapper::createUnicodeMapper(const CMAPTable *cmap) in createUnicodeMapper() argument
57 le_uint16 nSubtables = SWAPW(cmap->numberSubtables); in createUnicodeMapper()
66 const CMAPEncodingSubtableHeader *esh = &cmap->encodingSubtableHeaders[i]; in createUnicodeMapper()
92 const CMAPEncodingSubtableHeader *esh = &cmap->encodingSubtableHeaders[i]; in createUnicodeMapper()
122 subtable = (const CMAPEncodingSubtable *) ((const char *) cmap + foundOffset); in createUnicodeMapper()
134 return new CMAPFormat4Mapper(cmap, (const CMAPFormat4Encoding *) subtable); in createUnicodeMapper()
140 return new CMAPGroupMapper(cmap, encoding->groups, SWAPL(encoding->nGroups)); in createUnicodeMapper()
151 CMAPFormat4Mapper::CMAPFormat4Mapper(const CMAPTable *cmap, const CMAPFormat4Encoding *header) in CMAPFormat4Mapper() argument
152 : CMAPMapper(cmap) in CMAPFormat4Mapper()
211 CMAPGroupMapper::CMAPGroupMapper(const CMAPTable *cmap, const CMAPGroup *groups, le_uint32 nGroups) in CMAPGroupMapper() argument
[all …]
Dcmaps.h23 static CMAPMapper *createUnicodeMapper(const CMAPTable *cmap);
26 CMAPMapper(const CMAPTable *cmap);
37 CMAPFormat4Mapper(const CMAPTable *cmap, const CMAPFormat4Encoding *header);
58 CMAPGroupMapper(const CMAPTable *cmap, const CMAPGroup *groups, le_uint32 nGroups);
73 inline CMAPMapper::CMAPMapper(const CMAPTable *cmap) in CMAPMapper() argument
74 : fcmap(cmap) in CMAPMapper()
/external/skia/src/images/
DSkImageDecoder_libgif.cpp119 const ColorMapObject* cmap = gif->Image.ColorMap; in find_colormap() local
120 if (nullptr == cmap) { in find_colormap()
121 cmap = gif->SColorMap; in find_colormap()
124 if (nullptr == cmap) { in find_colormap()
129 if (cmap && ((unsigned)cmap->ColorCount > 256 || in find_colormap()
130 cmap->ColorCount != (1 << cmap->BitsPerPixel))) { in find_colormap()
131 cmap = nullptr; in find_colormap()
133 return cmap; in find_colormap()
339 const ColorMapObject* cmap = find_colormap(gif); local
340 if (cmap != nullptr) {
[all …]
DSkMovie_gif.cpp121 static void copyLine(uint32_t* dst, const unsigned char* src, const ColorMapObject* cmap, in copyLine() argument
126 const GifColorType& col = cmap->Colors[*src]; in copyLine()
134 const ColorMapObject* cmap, int transparent, int copyWidth, in copyInterlaceGroup() argument
142 copyLine(dst, src, cmap, transparent, copyWidth); in copyInterlaceGroup()
150 static void blitInterlace(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap, in blitInterlace() argument
169 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 8, 0); in blitInterlace()
172 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 8, 4); in blitInterlace()
175 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 4, 2); in blitInterlace()
177 copyInterlaceGroup(bm, src, cmap, transparent, copyWidth, copyHeight, frame->ImageDesc, 2, 1); in blitInterlace()
181 static void blitNormal(SkBitmap* bm, const SavedImage* frame, const ColorMapObject* cmap, in blitNormal() argument
[all …]
/external/pdfium/third_party/freetype/src/cff/
Dcffcmap.c36 cff_cmap_encoding_init( CFF_CMapStd cmap, in cff_cmap_encoding_init() argument
39 TT_Face face = (TT_Face)FT_CMAP_FACE( cmap ); in cff_cmap_encoding_init()
46 cmap->gids = encoding->codes; in cff_cmap_encoding_init()
53 cff_cmap_encoding_done( CFF_CMapStd cmap ) in cff_cmap_encoding_done() argument
55 cmap->gids = NULL; in cff_cmap_encoding_done()
60 cff_cmap_encoding_char_index( CFF_CMapStd cmap, in cff_cmap_encoding_char_index() argument
67 result = cmap->gids[char_code]; in cff_cmap_encoding_char_index()
74 cff_cmap_encoding_char_next( CFF_CMapStd cmap, in cff_cmap_encoding_char_next() argument
93 result = cmap->gids[code]; in cff_cmap_encoding_char_next()
/external/freetype/src/cff/
Dcffcmap.c36 cff_cmap_encoding_init( CFF_CMapStd cmap, in cff_cmap_encoding_init() argument
39 TT_Face face = (TT_Face)FT_CMAP_FACE( cmap ); in cff_cmap_encoding_init()
46 cmap->gids = encoding->codes; in cff_cmap_encoding_init()
53 cff_cmap_encoding_done( CFF_CMapStd cmap ) in cff_cmap_encoding_done() argument
55 cmap->gids = NULL; in cff_cmap_encoding_done()
60 cff_cmap_encoding_char_index( CFF_CMapStd cmap, in cff_cmap_encoding_char_index() argument
67 result = cmap->gids[char_code]; in cff_cmap_encoding_char_index()
74 cff_cmap_encoding_char_next( CFF_CMapStd cmap, in cff_cmap_encoding_char_next() argument
93 result = cmap->gids[code]; in cff_cmap_encoding_char_next()
/external/libgdx/extensions/gdx-freetype/jni/freetype-2.6.2/src/cff/
Dcffcmap.c36 cff_cmap_encoding_init( CFF_CMapStd cmap, in cff_cmap_encoding_init() argument
39 TT_Face face = (TT_Face)FT_CMAP_FACE( cmap ); in cff_cmap_encoding_init()
46 cmap->gids = encoding->codes; in cff_cmap_encoding_init()
53 cff_cmap_encoding_done( CFF_CMapStd cmap ) in cff_cmap_encoding_done() argument
55 cmap->gids = NULL; in cff_cmap_encoding_done()
60 cff_cmap_encoding_char_index( CFF_CMapStd cmap, in cff_cmap_encoding_char_index() argument
67 result = cmap->gids[char_code]; in cff_cmap_encoding_char_index()
74 cff_cmap_encoding_char_next( CFF_CMapStd cmap, in cff_cmap_encoding_char_next() argument
93 result = cmap->gids[code]; in cff_cmap_encoding_char_next()
/external/harfbuzz_ng/src/
Dhb-ot-font.cc228 this->blob = OT::Sanitizer<OT::cmap>::sanitize (face->reference_table (HB_OT_TAG_cmap)); in init()
229 const OT::cmap *cmap = OT::Sanitizer<OT::cmap>::lock_instance (this->blob); in init() local
234 if (!subtable) subtable = cmap->find_subtable (3, 10); in init()
235 if (!subtable) subtable = cmap->find_subtable (0, 6); in init()
236 if (!subtable) subtable = cmap->find_subtable (0, 4); in init()
238 if (!subtable) subtable = cmap->find_subtable (3, 1); in init()
239 if (!subtable) subtable = cmap->find_subtable (0, 3); in init()
240 if (!subtable) subtable = cmap->find_subtable (0, 2); in init()
241 if (!subtable) subtable = cmap->find_subtable (0, 1); in init()
242 if (!subtable) subtable = cmap->find_subtable (0, 0); in init()
[all …]
/external/pdfium/third_party/libopenjpeg20/
D0008-jp2_check_color.patch9 - OPJ_UINT16 pcol = cmap[i].pcol;
10 - assert(cmap[i].mtyp == 0 || cmap[i].mtyp == 1);
11 + if (cmap[i].mtyp != 0 && cmap[i].mtyp != 1) {
16 + OPJ_UINT16 pcol = cmap[i].pcol;
/external/sfntly/cpp/src/test/autogenerated/
Dcmap_basic_test.cc71 cmap_table_ = down_cast<CMapTable*>(font->GetTable(Tag::cmap)); in SetUp()
95 Ptr<CMapTable::CMap> cmap; in TEST_P() local
96 cmap.Attach(cmap_table_->GetCMap(platform_id, encoding_id)); in TEST_P()
97 if (!cmap) { in TEST_P()
102 ASSERT_EQ(cmap->platform_id(), platform_id); in TEST_P()
103 ASSERT_EQ(cmap->encoding_id(), encoding_id); in TEST_P()
114 ASSERT_EQ(cmap->GlyphId(character), glyph_id); in TEST_P()
/external/skia/src/pdf/
DSkPDFFont.cpp363 static void append_tounicode_header(SkDynamicMemoryWStream* cmap, in append_tounicode_header() argument
372 cmap->writeText(kHeader); in append_tounicode_header()
384 cmap->writeText(kSysInfo); in append_tounicode_header()
393 cmap->writeText(kTypeInfoHeader); in append_tounicode_header()
398 cmap->writeText(range.c_str()); in append_tounicode_header()
401 cmap->writeText(kTypeInfoFooter); in append_tounicode_header()
404 static void append_cmap_footer(SkDynamicMemoryWStream* cmap) { in append_cmap_footer() argument
410 cmap->writeText(kFooter); in append_cmap_footer()
425 SkDynamicMemoryWStream* cmap) { in append_bfchar_section() argument
430 cmap->writeDecAsText(count); in append_bfchar_section()
[all …]

123456