Mercurial > hg > dmlib
comparison tools/gfxconv.c @ 1747:5e928618fdc8
Change DMGrowBuf API somewhat and implement more copy operations.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 11 Jun 2018 13:57:07 +0300 |
parents | 881a3fc421d8 |
children | 027fb7313d85 |
comparison
equal
deleted
inserted
replaced
1746:dd57dd9430cb | 1747:5e928618fdc8 |
---|---|
1707 forced = &dmC64ImageFormats[optForcedFormat]; | 1707 forced = &dmC64ImageFormats[optForcedFormat]; |
1708 dmMsg(0, "Forced %s format image, type %d, %s\n", | 1708 dmMsg(0, "Forced %s format image, type %d, %s\n", |
1709 forced->name, forced->type, forced->fext); | 1709 forced->name, forced->type, forced->fext); |
1710 } | 1710 } |
1711 | 1711 |
1712 res = dmC64DecodeBMP(&inC64Image, dmGrowBufCreateFrom(&tbuf, dataBuf, dataSize), 0, 2, &inC64Fmt, forced); | 1712 res = dmC64DecodeBMP(&inC64Image, |
1713 dmGrowBufConstCreateFrom(&tbuf, dataBuf, dataSize), | |
1714 0, 2, &inC64Fmt, forced); | |
1715 | |
1713 if (forced == NULL && inC64Fmt != NULL && res == DMERR_OK) | 1716 if (forced == NULL && inC64Fmt != NULL && res == DMERR_OK) |
1714 { | 1717 { |
1715 dmMsg(1, "Probed '%s' format image, type %d, %s\n", | 1718 dmMsg(1, "Probed '%s' format image, type %d, %s\n", |
1716 inC64Fmt->name, inC64Fmt->type, inC64Fmt->fext); | 1719 inC64Fmt->name, inC64Fmt->type, inC64Fmt->fext); |
1717 | 1720 |