From 7057f5fc115db9413b33a60833e9b02fb4234842 Mon Sep 17 00:00:00 2001 From: Jeroen van Rijn Date: Sat, 14 May 2022 15:17:37 +0200 Subject: [PATCH] Add PAM and PFM to format detection. --- 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..30cb78405 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":