Mercurial > hg > dmlib
comparison tools/lib64fmts.c @ 2170:7c4c9013e412
Cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 11 Jun 2019 07:37:56 +0300 |
parents | 271850d7dd9b |
children | de88333acc44 |
comparison
equal
deleted
inserted
replaced
2169:271850d7dd9b | 2170:7c4c9013e412 |
---|---|
1395 | 1395 |
1396 static int fmtConvertECIBMP2Image(DMImage *dst, const DMC64Image *src, | 1396 static int fmtConvertECIBMP2Image(DMImage *dst, const DMC64Image *src, |
1397 const DMC64ImageFormat *fmt, const DMC64ImageConvSpec *spec) | 1397 const DMC64ImageFormat *fmt, const DMC64ImageConvSpec *spec) |
1398 { | 1398 { |
1399 int res; | 1399 int res; |
1400 | |
1400 if ((res = dmSetMixedColorC64Palette(dst)) != DMERR_OK) | 1401 if ((res = dmSetMixedColorC64Palette(dst)) != DMERR_OK) |
1401 return res; | 1402 return res; |
1402 | 1403 |
1403 return dmC64ConvertGenericBMP2Image(dst, src, fmt, spec); | 1404 return dmC64ConvertGenericBMP2Image(dst, src, fmt, spec); |
1404 } | 1405 } |
1439 | 1440 |
1440 | 1441 |
1441 static int fmtDecodeECIPacked(DMC64Image *img, const DMGrowBuf *buf, const DMC64ImageFormat *fmt) | 1442 static int fmtDecodeECIPacked(DMC64Image *img, const DMGrowBuf *buf, const DMC64ImageFormat *fmt) |
1442 { | 1443 { |
1443 int res; | 1444 int res; |
1444 DMGrowBuf tmp; | 1445 DMGrowBuf mem, tmp; |
1445 DMGrowBuf mem; | |
1446 DMCompParams cfg; | 1446 DMCompParams cfg; |
1447 | 1447 |
1448 cfg.func = fmt->name; | 1448 cfg.func = fmt->name; |
1449 cfg.type = DM_COMP_RLE_MARKER; | 1449 cfg.type = DM_COMP_RLE_MARKER; |
1450 cfg.flags = DM_RLE_BYTE_RUNS | DM_RLE_ORDER_1; | 1450 cfg.flags = DM_RLE_BYTE_RUNS | DM_RLE_ORDER_1; |