comparison tools/lib64fmts.c @ 2301:d71185584d95

Comment the necessity of fmtProbeGigapaintHires()..
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 08 Jul 2019 08:57:31 +0300
parents a494e4a4b6bc
children 7c26b5f86ff7
comparison
equal deleted inserted replaced
2300:a494e4a4b6bc 2301:d71185584d95
9 #include "lib64gfx.h" 9 #include "lib64gfx.h"
10 10
11 #define DM_MEMCMP_SIZE(mptr, mcmp) memcmp((mptr), (mcmp), sizeof(mcmp)) 11 #define DM_MEMCMP_SIZE(mptr, mcmp) memcmp((mptr), (mcmp), sizeof(mcmp))
12 #define DM_MEMCMP_LEN(mptr, mcmp) memcmp((mptr), (mcmp), strlen(mcmp)) 12 #define DM_MEMCMP_LEN(mptr, mcmp) memcmp((mptr), (mcmp), strlen(mcmp))
13 13
14
15 // Basic probe, but return MAX score for this format
14 static int fmtProbeGigapaintHires(const DMGrowBuf *buf, const DMC64ImageFormat *fmt) 16 static int fmtProbeGigapaintHires(const DMGrowBuf *buf, const DMC64ImageFormat *fmt)
15 { 17 {
16 if (buf->len == fmt->size && 18 if (buf->len == fmt->size &&
17 dmCompareAddr16(buf, 0, fmt->addr)) 19 dmCompareAddr16(buf, 0, fmt->addr))
18 return DM_PROBE_SCORE_MAX; 20 return DM_PROBE_SCORE_MAX;