Mercurial > hg > dmlib
comparison tools/lib64fmts.c @ 1984:e7f2ddaf94a6
Change encode and decode function format parameter type from DMC64ImageFormat to DMC64ImageCommonFormat.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 01 Jul 2018 07:00:38 +0300 |
parents | 214c7bd8692f |
children | 5817e3335f53 |
comparison
equal
deleted
inserted
replaced
1983:214c7bd8692f | 1984:e7f2ddaf94a6 |
---|---|
211 return DM_PROBE_SCORE_FALSE; | 211 return DM_PROBE_SCORE_FALSE; |
212 } | 212 } |
213 | 213 |
214 | 214 |
215 static BOOL fmtDrazLaceGetLaceType(DMC64Image *img, const DMC64EncDecOp *op, | 215 static BOOL fmtDrazLaceGetLaceType(DMC64Image *img, const DMC64EncDecOp *op, |
216 const DMGrowBuf *buf, const DMC64ImageFormat *fmt) | 216 const DMGrowBuf *buf, const DMC64ImageCommonFormat *fmt) |
217 { | 217 { |
218 (void) fmt; | 218 (void) fmt; |
219 | 219 |
220 if (buf != NULL) | 220 if (buf != NULL) |
221 img->laceType = buf->data[op->offs] ? D64_ILACE_RES : D64_ILACE_COLOR; | 221 img->laceType = buf->data[op->offs] ? D64_ILACE_RES : D64_ILACE_COLOR; |
225 return TRUE; | 225 return TRUE; |
226 } | 226 } |
227 | 227 |
228 | 228 |
229 static BOOL fmtDrazLaceSetLaceType(const DMC64EncDecOp *op, DMGrowBuf *buf, | 229 static BOOL fmtDrazLaceSetLaceType(const DMC64EncDecOp *op, DMGrowBuf *buf, |
230 const DMC64Image *img, const DMC64ImageFormat *fmt) | 230 const DMC64Image *img, const DMC64ImageCommonFormat *fmt) |
231 { | 231 { |
232 (void) fmt; | 232 (void) fmt; |
233 buf->data[op->offs] = (img->laceType == D64_ILACE_RES) ? 1 : 0; | 233 buf->data[op->offs] = (img->laceType == D64_ILACE_RES) ? 1 : 0; |
234 return TRUE; | 234 return TRUE; |
235 } | 235 } |
333 return DM_PROBE_SCORE_FALSE; | 333 return DM_PROBE_SCORE_FALSE; |
334 } | 334 } |
335 | 335 |
336 | 336 |
337 static BOOL fmtEncodeGunPaint(const DMC64EncDecOp *op, DMGrowBuf *buf, | 337 static BOOL fmtEncodeGunPaint(const DMC64EncDecOp *op, DMGrowBuf *buf, |
338 const DMC64Image *img, const DMC64ImageFormat *fmt) | 338 const DMC64Image *img, const DMC64ImageCommonFormat *fmt) |
339 { | 339 { |
340 (void) op; | 340 (void) op; |
341 (void) img; | 341 (void) img; |
342 (void) fmt; | 342 (void) fmt; |
343 // Here we assume that the op triggering this function is | 343 // Here we assume that the op triggering this function is |
546 img->extraData[0].data[rasterY] & 15); | 546 img->extraData[0].data[rasterY] & 15); |
547 } | 547 } |
548 | 548 |
549 | 549 |
550 static BOOL fmtTruePaintGetLaceType(DMC64Image *img, const DMC64EncDecOp *op, | 550 static BOOL fmtTruePaintGetLaceType(DMC64Image *img, const DMC64EncDecOp *op, |
551 const DMGrowBuf *buf, const DMC64ImageFormat *fmt) | 551 const DMGrowBuf *buf, const DMC64ImageCommonFormat *fmt) |
552 { | 552 { |
553 (void) op; | 553 (void) op; |
554 (void) buf; | 554 (void) buf; |
555 (void) fmt; | 555 (void) fmt; |
556 img->laceType = D64_ILACE_RES; | 556 img->laceType = D64_ILACE_RES; |
931 return dmC64GetGenericSCPixel(img, bmoffs, scroffs, shift, rasterY & 7, bitmap, 0); | 931 return dmC64GetGenericSCPixel(img, bmoffs, scroffs, shift, rasterY & 7, bitmap, 0); |
932 } | 932 } |
933 | 933 |
934 | 934 |
935 static BOOL fmtECIGetLaceType(DMC64Image *img, const DMC64EncDecOp *op, | 935 static BOOL fmtECIGetLaceType(DMC64Image *img, const DMC64EncDecOp *op, |
936 const DMGrowBuf *buf, const DMC64ImageFormat *fmt) | 936 const DMGrowBuf *buf, const DMC64ImageCommonFormat *fmt) |
937 { | 937 { |
938 (void) op; | 938 (void) op; |
939 (void) buf; | 939 (void) buf; |
940 (void) fmt; | 940 (void) fmt; |
941 img->laceType = D64_ILACE_COLOR; | 941 img->laceType = D64_ILACE_COLOR; |