Mercurial > hg > dmlib
comparison tools/lib64gfx.h @ 1720:77a4d8fab5cc
Add output buffer cropping to dmFinishRLEBuffers() and the flags and fields to DMGrowBuf.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 06 Jun 2018 15:19:40 +0300 |
parents | 8f47bd264458 |
children | de8e0a404c06 |
comparison
equal
deleted
inserted
replaced
1719:8f47bd264458 | 1720:77a4d8fab5cc |
---|---|
230 DM_RLE_ORDER_2 = 0x0010, // Order: <marker>, <data>, <count/run length> | 230 DM_RLE_ORDER_2 = 0x0010, // Order: <marker>, <data>, <count/run length> |
231 DM_RLE_ORDER_MASK = 0x00f0, | 231 DM_RLE_ORDER_MASK = 0x00f0, |
232 | 232 |
233 DM_RLE_BACKWARDS_INPUT = 0x0100, | 233 DM_RLE_BACKWARDS_INPUT = 0x0100, |
234 DM_RLE_BACKWARDS_OUTPUT = 0x0200, | 234 DM_RLE_BACKWARDS_OUTPUT = 0x0200, |
235 | |
236 DM_OUT_CROP_NONE = 0x0000, | |
237 DM_OUT_CROP_START = 0x1000, | |
238 DM_OUT_CROP_END = 0x2000, | |
239 DM_OUT_CROP_MASK = 0xf000, | |
235 }; | 240 }; |
236 | 241 |
237 | 242 |
238 typedef struct | 243 typedef struct |
239 { | 244 { |
240 char *func; | 245 char *func; |
241 int type; | 246 int type; |
242 int flags; | 247 int flags; |
248 size_t cropOutLen; | |
249 | |
243 Uint8 | 250 Uint8 |
244 // DM_COMP_RLE_MARKER mode | 251 // DM_COMP_RLE_MARKER mode |
245 rleMarkerB, // Marker byte for byte length runs (if DM_RLE_BYTE_RUNS used) | 252 rleMarkerB, // Marker byte for byte length runs (if DM_RLE_BYTE_RUNS used) |
246 rleMarkerW, // Marker byte for word length runs (if DM_RLE_WORD_RUNS used) | 253 rleMarkerW, // Marker byte for word length runs (if DM_RLE_WORD_RUNS used) |
247 | 254 |