Implemented basic tiff encoding

This commit is contained in:
Birk Tjelmeland committed 2019-01-31 21:20:49 +01:00
1 parent 80be60dfd4
commit fb30648c12
4 files changed
+363

No files matched your search

+6
View File
@@ -26,6 +26,12 @@ macro_rules! tags {
Tag::Unknown(n)
}
}
pub fn to_u16(&self) -> u16 {
match self {
$( Tag::$tag => $val, )*
Tag::Unknown(n) => *n,
}
}
}
}
}