Mercurial > hg > dmlib
comparison tools/libgfx.h @ 2586:9807ae37ad69
Require stdbool.h, we require C11 now.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 08 Dec 2022 15:59:22 +0200 |
parents | c6ee41fd98dd |
children | c3c1d3c75f53 |
comparison
equal
deleted
inserted
replaced
2585:ef6c826c5b7a | 2586:9807ae37ad69 |
---|---|
62 | 62 |
63 | 63 |
64 // Probe scores | 64 // Probe scores |
65 enum | 65 enum |
66 { | 66 { |
67 DM_PROBE_SCORE_FALSE = 0, | 67 DM_PROBE_SCORE_false = 0, |
68 DM_PROBE_SCORE_MAYBE = 250, | 68 DM_PROBE_SCORE_MAYBE = 250, |
69 DM_PROBE_SCORE_AVG = 500, | 69 DM_PROBE_SCORE_AVG = 500, |
70 DM_PROBE_SCORE_GOOD = 750, | 70 DM_PROBE_SCORE_GOOD = 750, |
71 DM_PROBE_SCORE_MAX = 1000, | 71 DM_PROBE_SCORE_MAX = 1000, |
72 }; | 72 }; |
99 int pitch; // bytes per scanline | 99 int pitch; // bytes per scanline |
100 int bpp; // bits per pixel | 100 int bpp; // bits per pixel |
101 | 101 |
102 float aspect; // aspect ratio (vert / horiz), <= 0 if not set | 102 float aspect; // aspect ratio (vert / horiz), <= 0 if not set |
103 | 103 |
104 BOOL constpal; // is the palette a const? | 104 bool constpal; // is the palette a const? |
105 DMPalette *pal; // pointer to palette struct, NULL if no palette | 105 DMPalette *pal; // pointer to palette struct, NULL if no palette |
106 | 106 |
107 size_t size; | 107 size_t size; |
108 Uint8 *data; | 108 Uint8 *data; |
109 } DMImage; | 109 } DMImage; |
115 int pixfmt; // Target color format DM_PIXFMT_* | 115 int pixfmt; // Target color format DM_PIXFMT_* |
116 int scaleX, scaleY; // Integer scale factors (1..) | 116 int scaleX, scaleY; // Integer scale factors (1..) |
117 | 117 |
118 int nplanes, bpp; // number of bitplanes to use, bits per PLANE to use | 118 int nplanes, bpp; // number of bitplanes to use, bits per PLANE to use |
119 int mask; // masking | 119 int mask; // masking |
120 BOOL planar; // use planar format if the format supports it | 120 bool planar; // use planar format if the format supports it |
121 int compression; // Use compression/compression level (0 = none, 9 = max) | 121 int compression; // Use compression/compression level (0 = none, 9 = max) |
122 // (not all formats support any, or more than on/off compression) | 122 // (not all formats support any, or more than on/off compression) |
123 } DMImageWriteSpec; | 123 } DMImageWriteSpec; |
124 | 124 |
125 | 125 |