mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-13 01:21:38 -07:00
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:
@@ -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