aboutsummaryrefslogtreecommitdiff
path: root/core/image/jpeg
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2025-09-09 13:53:43 +0200
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2025-09-09 13:53:43 +0200
commitdd9fceaae15e4fa597d0ffbaa12bdaeee26ae637 (patch)
tree4b0abe774f045f237565c42a980dc58471af86c3 /core/image/jpeg
parent9abc3f67b52860f3fe85bfdbcd3bc014a4651ad5 (diff)
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()`.
Diffstat (limited to 'core/image/jpeg')
-rw-r--r--core/image/jpeg/jpeg.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/image/jpeg/jpeg.odin b/core/image/jpeg/jpeg.odin
index 6da601c89..58c6dff50 100644
--- a/core/image/jpeg/jpeg.odin
+++ b/core/image/jpeg/jpeg.odin
@@ -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