mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-27 16:53:55 +00:00
Add more NetPBM variants
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user