MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / typeName

Method typeName

src/image.cpp:240–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240const char* Image::typeName(uint16_t tag) {
241 //! List of TIFF image tags
242 const char* result = nullptr;
243 switch (tag) {
244 case Exiv2::unsignedByte:
245 result = "BYTE";
246 break;
247 case Exiv2::asciiString:
248 result = "ASCII";
249 break;
250 case Exiv2::unsignedShort:
251 result = "SHORT";
252 break;
253 case Exiv2::unsignedLong:
254 result = "LONG";
255 break;
256 case Exiv2::unsignedRational:
257 result = "RATIONAL";
258 break;
259 case Exiv2::signedByte:
260 result = "SBYTE";
261 break;
262 case Exiv2::undefined:
263 result = "UNDEFINED";
264 break;
265 case Exiv2::signedShort:
266 result = "SSHORT";
267 break;
268 case Exiv2::signedLong:
269 result = "SLONG";
270 break;
271 case Exiv2::signedRational:
272 result = "SRATIONAL";
273 break;
274 case Exiv2::tiffFloat:
275 result = "FLOAT";
276 break;
277 case Exiv2::tiffDouble:
278 result = "DOUBLE";
279 break;
280 case Exiv2::tiffIfd:
281 result = "IFD";
282 break;
283 default:
284 result = "unknown";
285 break;
286 }
287 return result;
288}
289
290static bool typeValid(uint16_t type) {
291 return type >= 1 && type <= 13;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected