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:
1 parent
9abc3f67b5
commit
dd9fceaae1
3 files changed
+277
-270
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user