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

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

Issue 89753003: Update freetype to latest version of ASOP. (Closed) Base URL: https://chromium.googlesource.com/chromium/src/third_party/freetype.git@master
Patch Set: Created 7 years 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
« no previous file with comments | « include/freetype/ftglyph.h ('k') | include/freetype/ftlcdfil.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, */ 8 /* Copyright 1996-2010, 2013 by */
9 /* 2010 by */
10 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
11 /* */ 10 /* */
12 /* 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, */
13 /* modified, and distributed under the terms of the FreeType project */ 12 /* modified, and distributed under the terms of the FreeType project */
14 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 13 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
15 /* this file you indicate that you have read the license and */ 14 /* this file you indicate that you have read the license and */
16 /* understand and accept it fully. */ 15 /* understand and accept it fully. */
17 /* */ 16 /* */
18 /***************************************************************************/ 17 /***************************************************************************/
19 18
(...skipping 27 matching lines...) Expand all
47 46
48 47
49 /*************************************************************************/ 48 /*************************************************************************/
50 /* */ 49 /* */
51 /* <Type> */ 50 /* <Type> */
52 /* FT_Pos */ 51 /* FT_Pos */
53 /* */ 52 /* */
54 /* <Description> */ 53 /* <Description> */
55 /* The type FT_Pos is used to store vectorial coordinates. Depending */ 54 /* The type FT_Pos is used to store vectorial coordinates. Depending */
56 /* on the context, these can represent distances in integer font */ 55 /* on the context, these can represent distances in integer font */
57 /* units, or 16.16, or 26.6 fixed float pixel coordinates. */ 56 /* units, or 16.16, or 26.6 fixed-point pixel coordinates. */
58 /* */ 57 /* */
59 typedef signed long FT_Pos; 58 typedef signed long FT_Pos;
60 59
61 60
62 /*************************************************************************/ 61 /*************************************************************************/
63 /* */ 62 /* */
64 /* <Struct> */ 63 /* <Struct> */
65 /* FT_Vector */ 64 /* FT_Vector */
66 /* */ 65 /* */
67 /* <Description> */ 66 /* <Description> */
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 /* used for display on LCD displays; the bitmap is three times */ 161 /* used for display on LCD displays; the bitmap is three times */
163 /* wider than the original glyph image. See also */ 162 /* wider than the original glyph image. See also */
164 /* @FT_RENDER_MODE_LCD. */ 163 /* @FT_RENDER_MODE_LCD. */
165 /* */ 164 /* */
166 /* FT_PIXEL_MODE_LCD_V :: */ 165 /* FT_PIXEL_MODE_LCD_V :: */
167 /* An 8-bit bitmap, representing RGB or BGR decimated glyph images */ 166 /* An 8-bit bitmap, representing RGB or BGR decimated glyph images */
168 /* used for display on rotated LCD displays; the bitmap is three */ 167 /* used for display on rotated LCD displays; the bitmap is three */
169 /* times taller than the original glyph image. See also */ 168 /* times taller than the original glyph image. See also */
170 /* @FT_RENDER_MODE_LCD_V. */ 169 /* @FT_RENDER_MODE_LCD_V. */
171 /* */ 170 /* */
171 /* FT_PIXEL_MODE_BGRA :: */
172 /* An image with four 8-bit channels per pixel, representing a */
173 /* color image (such as emoticons) with alpha channel. For each */
174 /* pixel, the format is BGRA, which means, the blue channel comes */
175 /* first in memory. The color channels are pre-multiplied and in */
176 /* the sRGB colorspace. For example, full red at half-translucent */
177 /* opacity will be represented as `00,00,80,80', not `00,00,FF,80'. */
178 /* See also @FT_LOAD_COLOR. */
179 /* */
172 typedef enum FT_Pixel_Mode_ 180 typedef enum FT_Pixel_Mode_
173 { 181 {
174 FT_PIXEL_MODE_NONE = 0, 182 FT_PIXEL_MODE_NONE = 0,
175 FT_PIXEL_MODE_MONO, 183 FT_PIXEL_MODE_MONO,
176 FT_PIXEL_MODE_GRAY, 184 FT_PIXEL_MODE_GRAY,
177 FT_PIXEL_MODE_GRAY2, 185 FT_PIXEL_MODE_GRAY2,
178 FT_PIXEL_MODE_GRAY4, 186 FT_PIXEL_MODE_GRAY4,
179 FT_PIXEL_MODE_LCD, 187 FT_PIXEL_MODE_LCD,
180 FT_PIXEL_MODE_LCD_V, 188 FT_PIXEL_MODE_LCD_V,
189 FT_PIXEL_MODE_BGRA,
181 190
182 FT_PIXEL_MODE_MAX /* do not remove */ 191 FT_PIXEL_MODE_MAX /* do not remove */
183 192
184 } FT_Pixel_Mode; 193 } FT_Pixel_Mode;
185 194
186 195
187 /*************************************************************************/ 196 /*************************************************************************/
188 /* */ 197 /* */
189 /* <Enum> */ 198 /* <Enum> */
190 /* ft_pixel_mode_xxx */ 199 /* ft_pixel_mode_xxx */
(...skipping 1113 matching lines...) Expand 10 before | Expand all | Expand 10 after
1304 1313
1305 #endif /* __FTIMAGE_H__ */ 1314 #endif /* __FTIMAGE_H__ */
1306 1315
1307 1316
1308 /* END */ 1317 /* END */
1309 1318
1310 1319
1311 /* Local Variables: */ 1320 /* Local Variables: */
1312 /* coding: utf-8 */ 1321 /* coding: utf-8 */
1313 /* End: */ 1322 /* End: */
OLDNEW
« no previous file with comments | « include/freetype/ftglyph.h ('k') | include/freetype/ftlcdfil.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698