Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(391)

Side by Side Diff: third_party/freetype/include/freetype/ftimage.h

Issue 1413673003: Update bundled freetype to 2.6.1 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: DEPS for corpus Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /***************************************************************************/ 1 /***************************************************************************/
2 /* */ 2 /* */
3 /* ftimage.h */ 3 /* ftimage.h */
4 /* */ 4 /* */
5 /* FreeType glyph image formats and default raster interface */ 5 /* FreeType glyph image formats and default raster interface */
6 /* (specification). */ 6 /* (specification). */
7 /* */ 7 /* */
8 /* Copyright 1996-2010, 2013, 2014 by */ 8 /* Copyright 1996-2015 by */
9 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
10 /* */ 10 /* */
11 /* This file is part of the FreeType project, and may only be used, */ 11 /* This file is part of the FreeType project, and may only be used, */
12 /* modified, and distributed under the terms of the FreeType project */ 12 /* modified, and distributed under the terms of the FreeType project */
13 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 13 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
14 /* this file you indicate that you have read the license and */ 14 /* this file you indicate that you have read the license and */
15 /* understand and accept it fully. */ 15 /* understand and accept it fully. */
16 /* */ 16 /* */
17 /***************************************************************************/ 17 /***************************************************************************/
18 18
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 /* See @FT_Pixel_Mode for possible values. */ 251 /* See @FT_Pixel_Mode for possible values. */
252 /* */ 252 /* */
253 /* palette_mode :: This field is intended for paletted pixel modes; */ 253 /* palette_mode :: This field is intended for paletted pixel modes; */
254 /* it indicates how the palette is stored. Not */ 254 /* it indicates how the palette is stored. Not */
255 /* used currently. */ 255 /* used currently. */
256 /* */ 256 /* */
257 /* palette :: A typeless pointer to the bitmap palette; this */ 257 /* palette :: A typeless pointer to the bitmap palette; this */
258 /* field is intended for paletted pixel modes. Not */ 258 /* field is intended for paletted pixel modes. Not */
259 /* used currently. */ 259 /* used currently. */
260 /* */ 260 /* */
261 /* <Note> */
262 /* For now, the only pixel modes supported by FreeType are mono and */
263 /* grays. However, drivers might be added in the future to support */
264 /* more `colorful' options. */
265 /* */
266 typedef struct FT_Bitmap_ 261 typedef struct FT_Bitmap_
267 { 262 {
268 unsigned int rows; 263 unsigned int rows;
269 unsigned int width; 264 unsigned int width;
270 int pitch; 265 int pitch;
271 unsigned char* buffer; 266 unsigned char* buffer;
272 unsigned short num_grays; 267 unsigned short num_grays;
273 unsigned char pixel_mode; 268 unsigned char pixel_mode;
274 unsigned char palette_mode; 269 unsigned char palette_mode;
275 void* palette; 270 void* palette;
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after
1071 1066
1072 #define FT_Raster_Done_Func FT_Raster_DoneFunc 1067 #define FT_Raster_Done_Func FT_Raster_DoneFunc
1073 1068
1074 1069
1075 /*************************************************************************/ 1070 /*************************************************************************/
1076 /* */ 1071 /* */
1077 /* <FuncType> */ 1072 /* <FuncType> */
1078 /* FT_Raster_ResetFunc */ 1073 /* FT_Raster_ResetFunc */
1079 /* */ 1074 /* */
1080 /* <Description> */ 1075 /* <Description> */
1081 /* FreeType provides an area of memory called the `render pool', */ 1076 /* FreeType used to provide an area of memory called the `render */
1082 /* available to all registered rasters. This pool can be freely used */ 1077 /* pool' available to all registered rasters. This was not thread */
1083 /* during a given scan-conversion but is shared by all rasters. Its */ 1078 /* safe however and now FreeType never allocates this pool. NULL */
1084 /* content is thus transient. */ 1079 /* is always passed in as pool_base. */
1085 /* */ 1080 /* */
1086 /* This function is called each time the render pool changes, or just */ 1081 /* This function is called each time the render pool changes, or just */
1087 /* after a new raster object is created. */ 1082 /* after a new raster object is created. */
1088 /* */ 1083 /* */
1089 /* <Input> */ 1084 /* <Input> */
1090 /* raster :: A handle to the new raster object. */ 1085 /* raster :: A handle to the new raster object. */
1091 /* */ 1086 /* */
1092 /* pool_base :: The address in memory of the render pool. */ 1087 /* pool_base :: The address in memory of the render pool. */
1093 /* */ 1088 /* */
1094 /* pool_size :: The size in bytes of the render pool. */ 1089 /* pool_size :: The size in bytes of the render pool. */
1095 /* */ 1090 /* */
1096 /* <Note> */ 1091 /* <Note> */
1097 /* Rasters can ignore the render pool and rely on dynamic memory */ 1092 /* Rasters should ignore the render pool and rely on dynamic or stack */
1098 /* allocation if they want to (a handle to the memory allocator is */ 1093 /* allocation if they want to (a handle to the memory allocator is */
1099 /* passed to the raster constructor). However, this is not */ 1094 /* passed to the raster constructor). */
1100 /* recommended for efficiency purposes. */
1101 /* */ 1095 /* */
1102 typedef void 1096 typedef void
1103 (*FT_Raster_ResetFunc)( FT_Raster raster, 1097 (*FT_Raster_ResetFunc)( FT_Raster raster,
1104 unsigned char* pool_base, 1098 unsigned char* pool_base,
1105 unsigned long pool_size ); 1099 unsigned long pool_size );
1106 1100
1107 #define FT_Raster_Reset_Func FT_Raster_ResetFunc 1101 #define FT_Raster_Reset_Func FT_Raster_ResetFunc
1108 1102
1109 1103
1110 /*************************************************************************/ 1104 /*************************************************************************/
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
1211 1205
1212 #endif /* __FTIMAGE_H__ */ 1206 #endif /* __FTIMAGE_H__ */
1213 1207
1214 1208
1215 /* END */ 1209 /* END */
1216 1210
1217 1211
1218 /* Local Variables: */ 1212 /* Local Variables: */
1219 /* coding: utf-8 */ 1213 /* coding: utf-8 */
1220 /* End: */ 1214 /* End: */
OLDNEW
« no previous file with comments | « third_party/freetype/include/freetype/ftgzip.h ('k') | third_party/freetype/include/freetype/ftincrem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698