aboutsummaryrefslogtreecommitdiff
path: root/fiv-io.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-05-28 10:11:29 +0200
committerPřemysl Eric Janouch <p@janouch.name>2023-05-28 10:13:04 +0200
commita71069272599888742c70f832898094744ddb6dc (patch)
treec41b8fded11b71338960644a29105fa5a3dd69d1 /fiv-io.c
parent859736e5be7746ef90535754e37a3a8ec87dfd5e (diff)
downloadfiv-a71069272599888742c70f832898094744ddb6dc.tar.gz
fiv-a71069272599888742c70f832898094744ddb6dc.tar.xz
fiv-a71069272599888742c70f832898094744ddb6dc.zip
Clean up namespace pollution
Diffstat (limited to 'fiv-io.c')
-rw-r--r--fiv-io.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fiv-io.c b/fiv-io.c
index 88e86ea..5e665be 100644
--- a/fiv-io.c
+++ b/fiv-io.c
@@ -1197,7 +1197,7 @@ parse_mpf_index_ifd(struct tiffer *T)
struct tiffer_entry entry = {};
while (tiffer_next_entry(T, &entry)) {
// 5.2.3.3. MP Entry
- if (entry.tag == MPF_MPEntry && entry.type == UNDEFINED &&
+ if (entry.tag == MPF_MPEntry && entry.type == TIFFER_UNDEFINED &&
!(entry.remaining_count % 16)) {
return parse_mpf_index_entries(T, &entry);
}
@@ -2013,13 +2013,13 @@ load_tiff_ep(
// In any case, chained TIFFs are relatively rare.
struct tiffer_entry entry = {};
bool is_tiffep = tiffer_find(T, TIFF_TIFF_EPStandardID, &entry) &&
- entry.type == BYTE && entry.remaining_count == 4 &&
+ entry.type == TIFFER_BYTE && entry.remaining_count == 4 &&
entry.p[0] == 1 && !entry.p[1] && !entry.p[2] && !entry.p[3];
// Apple ProRAW, e.g., does not claim TIFF/EP compatibility,
// but we should still be able to make sense of it.
bool is_supported_dng = tiffer_find(T, TIFF_DNGBackwardVersion, &entry) &&
- entry.type == BYTE && entry.remaining_count == 4 &&
+ entry.type == TIFFER_BYTE && entry.remaining_count == 4 &&
entry.p[0] == 1 && entry.p[1] <= 6 && !entry.p[2] && !entry.p[3];
if (!is_tiffep && !is_supported_dng) {
set_error(error, "not a supported TIFF/EP or DNG image");
@@ -3714,7 +3714,7 @@ fiv_io_exif_orientation(const guint8 *tiff, gsize len)
while (tiffer_next_entry(&T, &entry)) {
int64_t orientation = 0;
if (G_UNLIKELY(entry.tag == TIFF_Orientation) &&
- entry.type == SHORT && entry.remaining_count == 1 &&
+ entry.type == TIFFER_SHORT && entry.remaining_count == 1 &&
tiffer_integer(&T, &entry, &orientation) &&
orientation >= 1 && orientation <= 8)
return orientation;