Make progressive JPEGs return a proper error

Add progressive JPEG file to test suite and test that loading it returns the expected `Unsupported_Frame_Type` error.

This JPEG variant will hopefully be supported in the future, but we should at least return an error rather than use `unsupported()`.
This commit is contained in:
Jeroen van Rijn
2025-09-09 13:53:43 +02:00
parent 9abc3f67b5
commit dd9fceaae1
3 changed files with 277 additions and 270 deletions
+1 -1
View File
@@ -637,7 +637,7 @@ load_from_context :: proc(ctx: ^$C, options := Options{}, allocator := context.a
color_components[id].h_sampling_factor = cast(int)horizontal_sampling
}
case .SOF2: // Progressive DCT
unimplemented("SOF2")
fallthrough
case .SOF3: // Lossless (sequential)
fallthrough
case .SOF5: // Differential sequential DCT