20 #include FT_FREETYPE_H
21 #include FT_INTERNAL_OBJECTS_H
25 #ifdef FT_CONFIG_OPTION_PIC
34 FT_PIC_Container* pic_container = &library->pic_container;
38 if ( pic_container->smooth )
40 SmoothPIC* container = (SmoothPIC*)pic_container->smooth;
43 if ( --container->ref_count )
46 pic_container->smooth =
NULL;
52 ft_smooth_renderer_class_pic_init(
FT_Library library )
54 FT_PIC_Container* pic_container = &library->pic_container;
62 if ( pic_container->smooth )
64 ((SmoothPIC*)pic_container->smooth)->ref_count++;
69 if (
FT_ALLOC ( container,
sizeof ( *container ) ) )
71 FT_MEM_SET( container, 0,
sizeof ( *container ) );
72 pic_container->smooth = container;
73 container->ref_count = 1;
76 FT_Init_Class_ft_grays_raster( &container->ft_grays_raster );
79 ft_smooth_renderer_class_pic_free( library );
86 return ft_smooth_renderer_class_pic_init( library );
89 void ft_smooth_lcd_renderer_class_pic_free(
FT_Library library )
91 ft_smooth_renderer_class_pic_free( library );
96 return ft_smooth_renderer_class_pic_init( library );
99 void ft_smooth_lcdv_renderer_class_pic_free(
FT_Library library )
101 ft_smooth_renderer_class_pic_free( library );
#define FT_ALLOC(ptr, size)
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
#define FT_MEM_SET(dest, byte, count)