• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /***************************************************************************/
2 /*                                                                         */
3 /*  rastpic.h                                                              */
4 /*                                                                         */
5 /*    The FreeType position independent code services for raster module.   */
6 /*                                                                         */
7 /*  Copyright 2009-2015 by                                                 */
8 /*  Oran Agra and Mickey Gabel.                                            */
9 /*                                                                         */
10 /*  This file is part of the FreeType project, and may only be used,       */
11 /*  modified, and distributed under the terms of the FreeType project      */
12 /*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
13 /*  this file you indicate that you have read the license and              */
14 /*  understand and accept it fully.                                        */
15 /*                                                                         */
16 /***************************************************************************/
17 
18 
19 #ifndef __RASTPIC_H__
20 #define __RASTPIC_H__
21 
22 
23 FT_BEGIN_HEADER
24 
25 #include FT_INTERNAL_PIC_H
26 
27 
28 #ifndef FT_CONFIG_OPTION_PIC
29 
30 #define FT_STANDARD_RASTER_GET  ft_standard_raster
31 
32 #else /* FT_CONFIG_OPTION_PIC */
33 
34   typedef struct  RasterPIC_
35   {
36     int              ref_count;
37     FT_Raster_Funcs  ft_standard_raster;
38 
39   } RasterPIC;
40 
41 
42 #define GET_PIC( lib )                                    \
43           ( (RasterPIC*)( (lib)->pic_container.raster ) )
44 #define FT_STANDARD_RASTER_GET  ( GET_PIC( library )->ft_standard_raster )
45 
46 
47   /* see rastpic.c for the implementation */
48   void
49   ft_raster1_renderer_class_pic_free( FT_Library  library );
50 
51   void
52   ft_raster5_renderer_class_pic_free( FT_Library  library );
53 
54   FT_Error
55   ft_raster1_renderer_class_pic_init( FT_Library  library );
56 
57   FT_Error
58   ft_raster5_renderer_class_pic_init( FT_Library  library );
59 
60 #endif /* FT_CONFIG_OPTION_PIC */
61 
62  /* */
63 
64 FT_END_HEADER
65 
66 #endif /* __RASTPIC_H__ */
67 
68 
69 /* END */
70