Home
last modified time | relevance | path

Searched refs:bitmap (Results 1 – 25 of 58) sorted by relevance

123

/AliOS-Things-master/components/freetype/src/base/
A Dftbitmap.c113 width = bitmap->width; in ft_bitmap_assure_buffer()
114 height = bitmap->rows; in ft_bitmap_assure_buffer()
230 if ( !bitmap || !bitmap->buffer ) in FT_Bitmap_Embolden()
266 *bitmap = tmp; in FT_Bitmap_Embolden()
298 p = bitmap->buffer + pitch * ( bitmap->rows - 1 ); in FT_Bitmap_Embolden()
368 p += bitmap->pitch; in FT_Bitmap_Embolden()
372 bitmap->rows += ystr; in FT_Bitmap_Embolden()
721 FT_Bitmap bitmap; in FT_GlyphSlot_Own_Bitmap() local
726 error = FT_Bitmap_Copy( slot->library, &slot->bitmap, &bitmap ); in FT_GlyphSlot_Own_Bitmap()
730 slot->bitmap = bitmap; in FT_GlyphSlot_Own_Bitmap()
[all …]
A Dftlcdfil.c34 _ft_lcd_filter_fir( FT_Bitmap* bitmap, in _ft_lcd_filter_fir() argument
39 FT_UInt width = (FT_UInt)bitmap->width; in _ft_lcd_filter_fir()
40 FT_UInt height = (FT_UInt)bitmap->rows; in _ft_lcd_filter_fir()
46 FT_Byte* line = bitmap->buffer; in _ft_lcd_filter_fir()
103 FT_Byte* column = bitmap->buffer; in _ft_lcd_filter_fir()
104 FT_Int pitch = bitmap->pitch; in _ft_lcd_filter_fir()
172 FT_UInt width = (FT_UInt)bitmap->width; in _ft_lcd_filter_legacy()
173 FT_UInt height = (FT_UInt)bitmap->rows; in _ft_lcd_filter_legacy()
174 FT_Int pitch = bitmap->pitch; in _ft_lcd_filter_legacy()
189 FT_Byte* line = bitmap->buffer; in _ft_lcd_filter_legacy()
[all …]
A Dftglyph.c80 glyph->bitmap = slot->bitmap; in ft_bitmap_glyph_init()
85 FT_Bitmap_New( &glyph->bitmap ); in ft_bitmap_glyph_init()
86 error = FT_Bitmap_Copy( library, &slot->bitmap, &glyph->bitmap ); in ft_bitmap_glyph_init()
106 return FT_Bitmap_Copy( library, &source->bitmap, &target->bitmap ); in ft_bitmap_glyph_copy()
117 FT_Bitmap_Done( library, &glyph->bitmap ); in ft_bitmap_glyph_done()
512 FT_BitmapGlyph bitmap = NULL; in FT_Glyph_To_Bitmap() local
551 bitmap = (FT_BitmapGlyph)b; in FT_Glyph_To_Bitmap()
587 bitmap->root.advance = glyph->advance; in FT_Glyph_To_Bitmap()
592 *the_glyph = FT_GLYPH( bitmap ); in FT_Glyph_To_Bitmap()
595 if ( error && bitmap ) in FT_Glyph_To_Bitmap()
[all …]
/AliOS-Things-master/kernel/rhino/include/
A Dk_bitmap.h119 RHINO_INLINE void krhino_bitmap_set(uint32_t *bitmap, int32_t nr) in krhino_bitmap_set() argument
121 bitmap[BITMAP_WORD(nr)] |= BITMAP_MASK(nr); in krhino_bitmap_set()
132 RHINO_INLINE void krhino_bitmap_clear(uint32_t *bitmap, int32_t nr) in krhino_bitmap_clear() argument
134 bitmap[BITMAP_WORD(nr)] &= ~BITMAP_MASK(nr); in krhino_bitmap_clear()
144 RHINO_INLINE int32_t krhino_bitmap_first(uint32_t *bitmap) in krhino_bitmap_first() argument
148 while (*bitmap == 0UL) { in krhino_bitmap_first()
150 bitmap++; in krhino_bitmap_first()
153 nr += krhino_clz32(*bitmap); in krhino_bitmap_first()
/AliOS-Things-master/components/SDL2/src/video/haiku/
A DSDL_bframebuffer.cc71 BBitmap *bitmap = bwin->GetBitmap(); in HAIKU_CreateWindowFramebuffer() local
73 if(bitmap) { in HAIKU_CreateWindowFramebuffer()
74 delete bitmap; in HAIKU_CreateWindowFramebuffer()
80 if(bitmap->InitCheck() != B_OK) { in HAIKU_CreateWindowFramebuffer()
81 delete bitmap; in HAIKU_CreateWindowFramebuffer()
86 bwin->SetBitmap(bitmap); in HAIKU_CreateWindowFramebuffer()
89 *pixels = bitmap->Bits(); in HAIKU_CreateWindowFramebuffer()
92 *pitch = bitmap->BytesPerRow(); in HAIKU_CreateWindowFramebuffer()
132 BBitmap *bitmap = NULL; in HAIKU_DrawThread() local
133 bitmap = bwin->GetBitmap(); in HAIKU_DrawThread()
[all …]
/AliOS-Things-master/components/freetype/src/raster/
A Dftrend1.c109 FT_Bitmap* bitmap; in ft_raster1_render() local
187 bitmap = &slot->bitmap; in ft_raster1_render()
193 FT_FREE( bitmap->buffer ); in ft_raster1_render()
202 bitmap->pixel_mode = FT_PIXEL_MODE_GRAY; in ft_raster1_render()
203 bitmap->num_grays = 256; in ft_raster1_render()
208 bitmap->pixel_mode = FT_PIXEL_MODE_MONO; in ft_raster1_render()
211 bitmap->width = width; in ft_raster1_render()
212 bitmap->rows = height; in ft_raster1_render()
213 bitmap->pitch = pitch; in ft_raster1_render()
224 params.target = bitmap; in ft_raster1_render()
[all …]
A Dmodule.mk20 $(ECHO_DRIVER)raster $(ECHO_DRIVER_DESC)monochrome bitmap renderer$(ECHO_DRIVER_DONE)
/AliOS-Things-master/components/SDL2/src/video/x11/
A DSDL_x11shape.c47 data->bitmap = NULL; in X11_CreateShaper()
66 if(data->bitmapsize != bitmapsize || data->bitmap == NULL) { in X11_ResizeWindowShape()
68 if(data->bitmap != NULL) in X11_ResizeWindowShape()
69 free(data->bitmap); in X11_ResizeWindowShape()
70 data->bitmap = malloc(data->bitmapsize); in X11_ResizeWindowShape()
71 if(data->bitmap == NULL) { in X11_ResizeWindowShape()
75 memset(data->bitmap,0,data->bitmapsize); in X11_ResizeWindowShape()
101 SDL_CalculateShapeBitmap(shaper->mode,shape,data->bitmap,8); in X11_SetWindowShape()
104 …eBitmapFromData(windowdata->videodata->display,windowdata->xwindow,data->bitmap,shaper->window->w,… in X11_SetWindowShape()
A DSDL_x11shape.h31 void* bitmap; member
/AliOS-Things-master/components/freetype/src/pcf/
A Dpcfdrivr.c488 FT_Bitmap* bitmap = &slot->bitmap; in PCF_Glyph_Load() local
512 bitmap->num_grays = 1; in PCF_Glyph_Load()
513 bitmap->pixel_mode = FT_PIXEL_MODE_MONO; in PCF_Glyph_Load()
523 bitmap->pitch = ( bitmap->width + 7 ) >> 3; in PCF_Glyph_Load()
527 bitmap->pitch = ( ( bitmap->width + 15 ) >> 4 ) << 1; in PCF_Glyph_Load()
531 bitmap->pitch = ( ( bitmap->width + 31 ) >> 5 ) << 2; in PCF_Glyph_Load()
535 bitmap->pitch = ( ( bitmap->width + 63 ) >> 6 ) << 3; in PCF_Glyph_Load()
543 bytes = bitmap->pitch * bitmap->rows; in PCF_Glyph_Load()
554 BitOrderInvert( bitmap->buffer, bytes ); in PCF_Glyph_Load()
565 TwoByteSwap( bitmap->buffer, bytes ); in PCF_Glyph_Load()
[all …]
A Dmodule.mk31 $(ECHO_DRIVER)pcf $(ECHO_DRIVER_DESC)pcf bitmap fonts$(ECHO_DRIVER_DONE)
/AliOS-Things-master/components/freetype/src/cache/
A Dftcsbits.c44 FT_Bitmap* bitmap, in ftc_sbit_copy_bitmap() argument
48 FT_Int pitch = bitmap->pitch; in ftc_sbit_copy_bitmap()
55 size = (FT_ULong)( pitch * bitmap->rows ); in ftc_sbit_copy_bitmap()
134 FT_Bitmap* bitmap = &slot->bitmap; in ftc_snode_load() local
156 if ( !CHECK_BYTE( bitmap->rows ) || in ftc_snode_load()
157 !CHECK_BYTE( bitmap->width ) || in ftc_snode_load()
158 !CHECK_CHAR( bitmap->pitch ) || in ftc_snode_load()
169 sbit->width = (FT_Byte)bitmap->width; in ftc_snode_load()
170 sbit->height = (FT_Byte)bitmap->rows; in ftc_snode_load()
171 sbit->pitch = (FT_Char)bitmap->pitch; in ftc_snode_load()
[all …]
A Dftcimage.c125 size = bitg->bitmap.rows * ft_labs( bitg->bitmap.pitch ) + in ftc_inode_weight()
/AliOS-Things-master/components/freetype/src/smooth/
A Dftsmooth.c112 FT_Bitmap* bitmap = &slot->bitmap; in ft_smooth_render_generic() local
188 FT_FREE( bitmap->buffer ); in ft_smooth_render_generic()
247 bitmap->pixel_mode = FT_PIXEL_MODE_GRAY; in ft_smooth_render_generic()
248 bitmap->num_grays = 256; in ft_smooth_render_generic()
249 bitmap->width = width; in ft_smooth_render_generic()
250 bitmap->rows = height; in ft_smooth_render_generic()
251 bitmap->pitch = pitch; in ft_smooth_render_generic()
265 params.target = bitmap; in ft_smooth_render_generic()
322 FT_Byte* line = bitmap->buffer; in ft_smooth_render_generic()
349 FT_Byte* write = bitmap->buffer; in ft_smooth_render_generic()
[all …]
A Dmodule.mk20 $(ECHO_DRIVER)smooth $(ECHO_DRIVER_DESC)anti-aliased bitmap renderer$(ECHO_DRIVER_DONE)
22 $(ECHO_DRIVER)smooth $(ECHO_DRIVER_DESC)anti-aliased bitmap renderer for LCDs$(ECHO_DRIVER_DONE)
24 $(ECHO_DRIVER)smooth $(ECHO_DRIVER_DESC)anti-aliased bitmap renderer for vertical LCDs$(ECHO_DRI…
/AliOS-Things-master/components/SDL2/src/video/directfb/
A DSDL_DirectFB_shape.c84 Uint8 *src, *bitmap; in DirectFB_SetWindowShape() local
100 SDL_DFB_ALLOC_CLEAR(bitmap, shape->w * shape->h); in DirectFB_SetWindowShape()
101 SDL_CalculateShapeBitmap(shaper->mode,shape,bitmap,1); in DirectFB_SetWindowShape()
103 src = bitmap; in DirectFB_SetWindowShape()
120 SDL_DFB_FREE(bitmap); in DirectFB_SetWindowShape()
/AliOS-Things-master/components/freetype/src/winfonts/
A Dwinfnt.c965 FT_Bitmap* bitmap = &slot->bitmap; in FNT_Load_Glyph() local
1009 bitmap->width = FT_NEXT_SHORT_LE( p ); in FNT_Load_Glyph()
1030 FT_Int pitch = ( bitmap->width + 7 ) >> 3; in FNT_Load_Glyph()
1035 bitmap->pitch = pitch; in FNT_Load_Glyph()
1037 bitmap->pixel_mode = FT_PIXEL_MODE_MONO; in FNT_Load_Glyph()
1048 if ( FT_ALLOC_MULT( bitmap->buffer, pitch, bitmap->rows ) ) in FNT_Load_Glyph()
1051 column = (FT_Byte*)bitmap->buffer; in FNT_Load_Glyph()
1055 FT_Byte* limit = p + bitmap->rows; 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()
[all …]
A Dmodule.mk20 $(ECHO_DRIVER)winfnt $(ECHO_DRIVER_DESC)Windows bitmap fonts with extension *.fnt or *.fon$(ECHO…
/AliOS-Things-master/components/freetype/src/sfnt/
A Dttsbit.c314 FT_Bitmap* bitmap; member
352 decoder->bitmap = &face->root.glyph->bitmap; in tt_sbit_decoder_init()
542 FT_Bitmap* bitmap; in tt_sbit_decoder_load_byte_aligned() local
546 bitmap = decoder->bitmap; in tt_sbit_decoder_load_byte_aligned()
547 bit_width = bitmap->width; in tt_sbit_decoder_load_byte_aligned()
548 bit_height = bitmap->rows; in tt_sbit_decoder_load_byte_aligned()
549 pitch = bitmap->pitch; in tt_sbit_decoder_load_byte_aligned()
680 FT_Bitmap* bitmap; in tt_sbit_decoder_load_bit_aligned() local
685 bitmap = decoder->bitmap; in tt_sbit_decoder_load_bit_aligned()
686 bit_width = bitmap->width; in tt_sbit_decoder_load_bit_aligned()
[all …]
/AliOS-Things-master/components/freetype/src/bdf/
A Dbdfdrivr.c675 FT_Bitmap* bitmap = &slot->bitmap; in BDF_Glyph_Load() local
699 bitmap->rows = glyph.bbx.height; in BDF_Glyph_Load()
700 bitmap->width = glyph.bbx.width; in BDF_Glyph_Load()
708 ft_glyphslot_set_bitmap( slot, glyph.bitmap ); in BDF_Glyph_Load()
713 bitmap->pixel_mode = FT_PIXEL_MODE_MONO; in BDF_Glyph_Load()
716 bitmap->pixel_mode = FT_PIXEL_MODE_GRAY2; in BDF_Glyph_Load()
719 bitmap->pixel_mode = FT_PIXEL_MODE_GRAY4; in BDF_Glyph_Load()
722 bitmap->pixel_mode = FT_PIXEL_MODE_GRAY; in BDF_Glyph_Load()
723 bitmap->num_grays = 256; in BDF_Glyph_Load()
734 slot->metrics.width = bitmap->width << 6; in BDF_Glyph_Load()
[all …]
A Dmodule.mk31 $(ECHO_DRIVER)bdf $(ECHO_DRIVER_DESC)bdf bitmap fonts$(ECHO_DRIVER_DONE)
/AliOS-Things-master/components/freetype/include/
A Dftbitmap.h127 FT_Bitmap* bitmap,
216 FT_Bitmap *bitmap );
/AliOS-Things-master/components/py_engine/framework/
A Dsh1106.py122 def draw_XBM(self, x, y, w, h, bitmap): argument
124 for nbyte in range(len(bitmap)):
126 if(bitmap[nbyte] & (0b10000000 >> bit)):
132 def draw_buffer(self, x, y, w, h, bitmap): argument
134 for nbyte in range(len(bitmap)):
136 if(bitmap[nbyte] & (1 << bit)):
/AliOS-Things-master/components/freetype/src/pfr/
A Dpfrsbit.c654 glyph->root.bitmap.width = (FT_Int)xsize; in pfr_slot_load_bitmap()
655 glyph->root.bitmap.rows = (FT_Int)ysize; in pfr_slot_load_bitmap()
656 glyph->root.bitmap.pitch = (FT_Int)( xsize + 7 ) >> 3; in pfr_slot_load_bitmap()
657 glyph->root.bitmap.pixel_mode = FT_PIXEL_MODE_MONO; in pfr_slot_load_bitmap()
675 FT_ULong len = glyph->root.bitmap.pitch * ysize; in pfr_slot_load_bitmap()
686 &glyph->root.bitmap ); in pfr_slot_load_bitmap()
/AliOS-Things-master/components/amp/modules/
A Dsh1106.js164 draw_XBM(x, y, w, h, bitmap) {
167 for (let nbyte = 0; nbyte < bitmap.length; nbyte++) {
169 if (bitmap[nbyte] & (0b10000000 >> bit)) {

Completed in 41 milliseconds

123