/AliOS-Things-master/components/freetype/src/base/ |
A D | ftsynth.c | 87 FT_Library library = slot->library; in FT_GlyphSlot_Embolden() 88 FT_Face face = slot->face; in FT_GlyphSlot_Embolden() 136 if ( slot->advance.x ) in FT_GlyphSlot_Embolden() 137 slot->advance.x += xstr; in FT_GlyphSlot_Embolden() 139 if ( slot->advance.y ) in FT_GlyphSlot_Embolden() 140 slot->advance.y += ystr; in FT_GlyphSlot_Embolden() 142 slot->metrics.width += xstr; in FT_GlyphSlot_Embolden() 143 slot->metrics.height += ystr; in FT_GlyphSlot_Embolden() 144 slot->metrics.horiAdvance += xstr; in FT_GlyphSlot_Embolden() 145 slot->metrics.vertAdvance += ystr; in FT_GlyphSlot_Embolden() [all …]
|
A D | ftglyph.c | 61 FT_GlyphSlot slot ) in ft_bitmap_glyph_init() argument 74 glyph->left = slot->bitmap_left; in ft_bitmap_glyph_init() 75 glyph->top = slot->bitmap_top; in ft_bitmap_glyph_init() 80 glyph->bitmap = slot->bitmap; in ft_bitmap_glyph_init() 159 FT_GlyphSlot slot ) in FT_CALLBACK_DEF() 164 FT_Outline* source = &slot->outline; in FT_CALLBACK_DEF() 252 slot->outline = glyph->outline; in ft_outline_glyph_prepare() 253 slot->outline.flags &= ~FT_OUTLINE_OWNER; in ft_outline_glyph_prepare() 355 FT_Get_Glyph( FT_GlyphSlot slot, in FT_Get_Glyph() argument 365 if ( !slot ) in FT_Get_Glyph() [all …]
|
A D | ftobjs.c | 290 if ( slot->internal && ( slot->internal->flags & FT_GLYPH_OWN_BITMAP ) ) in ft_glyphslot_free_bitmap() 435 *aslot = slot; in FT_New_GlyphSlot() 452 if ( slot ) in FT_Done_GlyphSlot() 475 slot->generic.finalizer( slot ); in FT_Done_GlyphSlot() 594 FT_GlyphSlot slot; in FT_Load_Glyph() local 607 slot = face->glyph; in FT_Load_Glyph() 753 slot->advance.y = slot->metrics.vertAdvance; in FT_Load_Glyph() 757 slot->advance.x = slot->metrics.horiAdvance; in FT_Load_Glyph() 769 slot->linearHoriAdvance = FT_MulDiv( slot->linearHoriAdvance, in FT_Load_Glyph() 772 slot->linearVertAdvance = FT_MulDiv( slot->linearVertAdvance, in FT_Load_Glyph() [all …]
|
A D | ftbitmap.c | 716 FT_GlyphSlot_Own_Bitmap( FT_GlyphSlot slot ) in FT_GlyphSlot_Own_Bitmap() argument 718 if ( slot && slot->format == FT_GLYPH_FORMAT_BITMAP && in FT_GlyphSlot_Own_Bitmap() 719 !( slot->internal->flags & FT_GLYPH_OWN_BITMAP ) ) in FT_GlyphSlot_Own_Bitmap() 726 error = FT_Bitmap_Copy( slot->library, &slot->bitmap, &bitmap ); in FT_GlyphSlot_Own_Bitmap() 730 slot->bitmap = bitmap; in FT_GlyphSlot_Own_Bitmap() 731 slot->internal->flags |= FT_GLYPH_OWN_BITMAP; in FT_GlyphSlot_Own_Bitmap()
|
/AliOS-Things-master/components/freetype/src/autofit/ |
A D | afloader.c | 138 switch ( slot->format ) in af_loader_load_g() 164 slot->outline.tags, in af_loader_load_g() 406 vvector.x = slot->metrics.vertBearingX - slot->metrics.horiBearingX; in af_loader_load_g() 407 vvector.y = slot->metrics.vertBearingY - slot->metrics.horiBearingY; in af_loader_load_g() 445 slot->metrics.horiAdvance = FT_MulFix( slot->metrics.horiAdvance, in af_loader_load_g() 453 slot->metrics.horiAdvance = FT_MulFix( slot->metrics.horiAdvance, in af_loader_load_g() 458 slot->lsb_delta = 0; in af_loader_load_g() 459 slot->rsb_delta = 0; in af_loader_load_g() 469 slot->metrics.vertAdvance = FT_MulFix( slot->metrics.vertAdvance, in af_loader_load_g() 472 slot->metrics.horiAdvance = FT_PIX_ROUND( slot->metrics.horiAdvance ); in af_loader_load_g() [all …]
|
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/utils/ |
A D | quant_levels_utils.c | 78 int s, slot = 0; in QuantizeLevels() local 83 while (slot < num_levels - 1 && in QuantizeLevels() 84 2 * s > inv_q_level[slot] + inv_q_level[slot + 1]) { in QuantizeLevels() 85 ++slot; in QuantizeLevels() 88 q_sum[slot] += s * freq[s]; in QuantizeLevels() 89 q_count[slot] += freq[s]; in QuantizeLevels() 91 q_level[s] = slot; in QuantizeLevels() 96 for (slot = 1; slot < num_levels - 1; ++slot) { in QuantizeLevels() 97 const double count = q_count[slot]; in QuantizeLevels() 99 inv_q_level[slot] = q_sum[slot] / count; in QuantizeLevels() [all …]
|
/AliOS-Things-master/components/freetype/src/smooth/ |
A D | ftsmooth.c | 60 FT_GlyphSlot slot, in ft_smooth_transform() argument 67 if ( slot->format != render->glyph_format ) in ft_smooth_transform() 87 FT_GlyphSlot slot, in ft_smooth_get_cbox() argument 112 FT_Bitmap* bitmap = &slot->bitmap; in ft_smooth_render_generic() 141 outline = &slot->outline; in ft_smooth_render_generic() 210 if ( slot->library->lcd_filter_func ) in ft_smooth_render_generic() 309 if ( slot->library->lcd_filter_func ) in ft_smooth_render_generic() 310 slot->library->lcd_filter_func( bitmap, mode, slot->library ); in ft_smooth_render_generic() 380 slot->bitmap_left = (FT_Int)x_left; in ft_smooth_render_generic() 381 slot->bitmap_top = (FT_Int)y_top; in ft_smooth_render_generic() [all …]
|
/AliOS-Things-master/components/freetype/src/raster/ |
A D | ftrend1.c | 61 FT_GlyphSlot slot, in ft_raster1_transform() argument 68 if ( slot->format != render->glyph_format ) in ft_raster1_transform() 88 FT_GlyphSlot slot, in ft_raster1_get_cbox() argument 93 if ( slot->format == render->glyph_format ) in ft_raster1_get_cbox() 94 FT_Outline_Get_CBox( &slot->outline, cbox ); in ft_raster1_get_cbox() 101 FT_GlyphSlot slot, in ft_raster1_render() argument 116 if ( slot->format != render->glyph_format ) in ft_raster1_render() 156 outline = &slot->outline; in ft_raster1_render() 187 bitmap = &slot->bitmap; in ft_raster1_render() 218 slot->internal->flags |= FT_GLYPH_OWN_BITMAP; in ft_raster1_render() [all …]
|
/AliOS-Things-master/components/py_engine/framework/ |
A D | speech_utils.py | 83 slot = 0 132 slot = int(subNumber / factor) 134 if (slot == 0 and depth == 0): 138 …if ((subTarget < 20 and depth == 1) or (slot == 0 and prevSlotZero) or (slot == 0 and depth == 0)): 141 toneList.append(toneDir + tonenameNumb[slot] + tonenameSuffix[formatFlag]) 143 if (slot == 0 and prevSlotZero == False): 145 elif (prevSlotZero == True and slot != 0): 148 if (slot > 0 and depth > 0) :
|
/AliOS-Things-master/components/freetype/src/type42/ |
A D | t42objs.c | 596 slot->ttslot = ttslot; in T42_GlyphSlot_Init() 620 FT_ZERO( &slot->metrics ); in t42_glyphslot_clear() 621 FT_ZERO( &slot->outline ); in t42_glyphslot_clear() 622 FT_ZERO( &slot->bitmap ); in t42_glyphslot_clear() 624 slot->bitmap_left = 0; in t42_glyphslot_clear() 625 slot->bitmap_top = 0; in t42_glyphslot_clear() 626 slot->num_subglyphs = 0; in t42_glyphslot_clear() 627 slot->subglyphs = 0; in t42_glyphslot_clear() 628 slot->control_data = 0; in t42_glyphslot_clear() 629 slot->control_len = 0; in t42_glyphslot_clear() [all …]
|
A D | t42objs.h | 97 T42_GlyphSlot_Init( FT_GlyphSlot slot ); 107 T42_GlyphSlot_Done( FT_GlyphSlot slot );
|
/AliOS-Things-master/components/freetype/include/ |
A D | ftrender.h | 42 FT_GlyphSlot slot ); 63 FT_GlyphSlot slot ); 89 FT_GlyphSlot slot, 95 FT_GlyphSlot slot, 102 FT_GlyphSlot slot,
|
A D | ftsynth.h | 68 FT_GlyphSlot_Embolden( FT_GlyphSlot slot ); 72 FT_GlyphSlot_Oblique( FT_GlyphSlot slot );
|
/AliOS-Things-master/components/freetype/src/cache/ |
A D | ftcsbits.c | 133 FT_GlyphSlot slot = face->glyph; in ftc_snode_load() local 134 FT_Bitmap* bitmap = &slot->bitmap; in ftc_snode_load() 138 if ( slot->format != FT_GLYPH_FORMAT_BITMAP ) in ftc_snode_load() 153 xadvance = ( slot->advance.x + 32 ) >> 6; in ftc_snode_load() 154 yadvance = ( slot->advance.y + 32 ) >> 6; in ftc_snode_load() 159 !CHECK_CHAR( slot->bitmap_left ) || in ftc_snode_load() 160 !CHECK_CHAR( slot->bitmap_top ) || in ftc_snode_load() 172 sbit->left = (FT_Char)slot->bitmap_left; in ftc_snode_load() 173 sbit->top = (FT_Char)slot->bitmap_top; in ftc_snode_load()
|
/AliOS-Things-master/components/freetype/src/pcf/ |
A D | pcfdrivr.c | 480 PCF_Glyph_Load( FT_GlyphSlot slot, in PCF_Glyph_Load() argument 488 FT_Bitmap* bitmap = &slot->bitmap; in PCF_Glyph_Load() 574 slot->format = FT_GLYPH_FORMAT_BITMAP; in PCF_Glyph_Load() 575 slot->bitmap_left = metric->leftSideBearing; in PCF_Glyph_Load() 576 slot->bitmap_top = metric->ascent; in PCF_Glyph_Load() 578 slot->metrics.horiAdvance = metric->characterWidth << 6; in PCF_Glyph_Load() 579 slot->metrics.horiBearingX = metric->leftSideBearing << 6; in PCF_Glyph_Load() 580 slot->metrics.horiBearingY = metric->ascent << 6; in PCF_Glyph_Load() 581 slot->metrics.width = ( metric->rightSideBearing - in PCF_Glyph_Load() 583 slot->metrics.height = bitmap->rows << 6; in PCF_Glyph_Load() [all …]
|
/AliOS-Things-master/components/freetype/src/pfr/ |
A D | pfrobjs.h | 78 pfr_slot_init( FT_GlyphSlot slot ); /* PFR_Slot */ 81 pfr_slot_done( FT_GlyphSlot slot ); /* PFR_Slot */ 85 pfr_slot_load( FT_GlyphSlot slot, /* PFR_Slot */
|
A D | pfrobjs.c | 293 PFR_Slot slot = (PFR_Slot)pfrslot; in pfr_slot_init() local 297 pfr_glyph_init( &slot->glyph, loader ); in pfr_slot_init() 306 PFR_Slot slot = (PFR_Slot)pfrslot; in pfr_slot_done() local 309 pfr_glyph_done( &slot->glyph ); in pfr_slot_done() 319 PFR_Slot slot = (PFR_Slot)pfrslot; in pfr_slot_load() local 342 error = pfr_slot_load_bitmap( slot, size, gindex ); in pfr_slot_load() 360 error = pfr_glyph_load( &slot->glyph, face->root.stream, in pfr_slot_load() 375 *outline = slot->glyph.loader->base.outline; in pfr_slot_load()
|
/AliOS-Things-master/components/py_engine/engine/py/ |
A D | map.c | 221 mp_map_elem_t *slot = &map->table[pos]; in mp_map_lookup() local 222 if (slot->key == MP_OBJ_NULL) { in mp_map_lookup() 227 avail_slot = slot; in mp_map_lookup() 238 } else if (slot->key == MP_OBJ_SENTINEL) { in mp_map_lookup() 241 avail_slot = slot; in mp_map_lookup() 243 } else if (slot->key == index || (!compare_only_ptrs && mp_obj_equal(slot->key, index))) { in mp_map_lookup() 251 slot->key = MP_OBJ_NULL; in mp_map_lookup() 253 slot->key = MP_OBJ_SENTINEL; in mp_map_lookup() 257 return slot; in mp_map_lookup()
|
/AliOS-Things-master/components/amp_adapter/include/ |
A D | aos_smartcard.h | 79 int aos_smartcard_cpbw(int slot, char *number); 99 int aos_smartcard_cpbr(int slot, char *name, int name_size, char *number, int number_size);
|
/AliOS-Things-master/components/freetype/src/bdf/ |
A D | bdfdrivr.c | 667 BDF_Glyph_Load( FT_GlyphSlot slot, in BDF_Glyph_Load() argument 675 FT_Bitmap* bitmap = &slot->bitmap; in BDF_Glyph_Load() 708 ft_glyphslot_set_bitmap( slot, glyph.bitmap ); in BDF_Glyph_Load() 727 slot->format = FT_GLYPH_FORMAT_BITMAP; in BDF_Glyph_Load() 728 slot->bitmap_left = glyph.bbx.x_offset; in BDF_Glyph_Load() 729 slot->bitmap_top = glyph.bbx.ascent; in BDF_Glyph_Load() 731 slot->metrics.horiAdvance = glyph.dwidth << 6; in BDF_Glyph_Load() 733 slot->metrics.horiBearingY = glyph.bbx.ascent << 6; in BDF_Glyph_Load() 734 slot->metrics.width = bitmap->width << 6; in BDF_Glyph_Load() 735 slot->metrics.height = bitmap->rows << 6; in BDF_Glyph_Load() [all …]
|
/AliOS-Things-master/components/freetype/src/cid/ |
A D | cidobjs.c | 50 cid_slot_done( FT_GlyphSlot slot ) in cid_slot_done() argument 52 slot->internal->glyph_hints = 0; in cid_slot_done() 57 cid_slot_init( FT_GlyphSlot slot ) in cid_slot_init() argument 63 face = (CID_Face)slot->face; in cid_slot_init() 71 module = FT_Get_Module( slot->face->driver->root.library, in cid_slot_init() 79 slot->internal->glyph_hints = (void*)funcs; in cid_slot_init()
|
A D | cidobjs.h | 115 cid_slot_done( FT_GlyphSlot slot ); 118 cid_slot_init( FT_GlyphSlot slot );
|
/AliOS-Things-master/components/freetype/src/winfonts/ |
A D | winfnt.c | 955 FNT_Load_Glyph( FT_GlyphSlot slot, in FNT_Load_Glyph() argument 965 FT_Bitmap* bitmap = &slot->bitmap; in FNT_Load_Glyph() 1063 slot->internal->flags = FT_GLYPH_OWN_BITMAP; in FNT_Load_Glyph() 1064 slot->bitmap_left = 0; in FNT_Load_Glyph() 1065 slot->bitmap_top = font->header.ascent; in FNT_Load_Glyph() 1066 slot->format = FT_GLYPH_FORMAT_BITMAP; in FNT_Load_Glyph() 1069 slot->metrics.width = bitmap->width << 6; in FNT_Load_Glyph() 1070 slot->metrics.height = bitmap->rows << 6; in FNT_Load_Glyph() 1072 slot->metrics.horiBearingX = 0; in FNT_Load_Glyph() 1073 slot->metrics.horiBearingY = slot->bitmap_top << 6; in FNT_Load_Glyph() [all …]
|
/AliOS-Things-master/components/freetype/src/type1/ |
A D | t1objs.h | 143 T1_GlyphSlot_Init( FT_GlyphSlot slot ); 146 T1_GlyphSlot_Done( FT_GlyphSlot slot );
|
A D | t1objs.c | 145 T1_GlyphSlot_Done( FT_GlyphSlot slot ) in T1_GlyphSlot_Done() argument 147 slot->internal->glyph_hints = 0; in T1_GlyphSlot_Done() 152 T1_GlyphSlot_Init( FT_GlyphSlot slot ) in T1_GlyphSlot_Init() argument 158 face = (T1_Face)slot->face; in T1_GlyphSlot_Init() 166 module = FT_Get_Module( slot->face->driver->root.library, in T1_GlyphSlot_Init() 174 slot->internal->glyph_hints = (void*)funcs; in T1_GlyphSlot_Init()
|