Mercurial > hg > dmlib
comparison tools/libgfx.c @ 1543:416d7b3ba3b2
Rename libgfx IMGFMT_* constants to DM_IMGFMT_*.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 12 May 2018 17:48:56 +0300 |
parents | 61a486e25dc7 |
children | fd0d1b4efc83 |
comparison
equal
deleted
inserted
replaced
1542:69fa95707e65 | 1543:416d7b3ba3b2 |
---|---|
1987 | 1987 |
1988 return DM_PROBE_SCORE_FALSE; | 1988 return DM_PROBE_SCORE_FALSE; |
1989 } | 1989 } |
1990 | 1990 |
1991 | 1991 |
1992 DMImageFormat dmImageFormatList[IMGFMT_LAST] = | 1992 DMImageFormat dmImageFormatList[DM_IMGFMT_LAST] = |
1993 { | 1993 { |
1994 { | 1994 { |
1995 "PNG", "Portable Network Graphics", | 1995 "PNG", "Portable Network Graphics", |
1996 fmtProbePNG, | 1996 fmtProbePNG, |
1997 #ifdef DM_USE_LIBPNG | 1997 #ifdef DM_USE_LIBPNG |
2037 | 2037 |
2038 int dmImageProbeGeneric(const Uint8 *buf, const size_t len, DMImageFormat **pfmt, int *index) | 2038 int dmImageProbeGeneric(const Uint8 *buf, const size_t len, DMImageFormat **pfmt, int *index) |
2039 { | 2039 { |
2040 int i, scoreMax = DM_PROBE_SCORE_FALSE, scoreIndex = -1; | 2040 int i, scoreMax = DM_PROBE_SCORE_FALSE, scoreIndex = -1; |
2041 | 2041 |
2042 for (i = 0; i < IMGFMT_LAST; i++) | 2042 for (i = 0; i < DM_IMGFMT_LAST; i++) |
2043 { | 2043 { |
2044 DMImageFormat *fmt = &dmImageFormatList[i]; | 2044 DMImageFormat *fmt = &dmImageFormatList[i]; |
2045 if (fmt->probe != NULL) | 2045 if (fmt->probe != NULL) |
2046 { | 2046 { |
2047 int score = fmt->probe(buf, len); | 2047 int score = fmt->probe(buf, len); |