From 9921ac01cca70d30bbb551070d72bc8e7f651def Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 14 May 2022 14:26:11 +0100 Subject: [PATCH] Add more NetPBM variants --- core/image/which.odin | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/image/which.odin b/core/image/which.odin index c34f7fe35..c3caef621 100644 --- a/core/image/which.odin +++ b/core/image/which.odin @@ -14,7 +14,7 @@ Which_File_Type :: enum { JPEG, JPEG_2000, JPEG_XL, - PBM, PGM, PPM, // NetPBM family + PBM, PGM, PPM, PAM, PFM, // NetPBM family PIC, // Softimage PIC PNG, // Portable Network Graphics PSD, // Photoshop PSD @@ -117,6 +117,10 @@ which_bytes :: proc(data: []byte) -> Which_File_Type { return .PGM case '3', '6': return .PPM + case '7': + return .PAM + case 'f', 'F': + return .PFM } } case s[:8] == "\x89PNG\r\n\x1a\n":