https://github.com/braheezy/zjpeg
A JPEG decoder
https://github.com/braheezy/zjpeg
jpeg zig
Last synced: about 1 year ago
JSON representation
A JPEG decoder
- Host: GitHub
- URL: https://github.com/braheezy/zjpeg
- Owner: braheezy
- Created: 2024-11-02T17:25:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-03T03:43:13.000Z (about 1 year ago)
- Last Synced: 2025-04-03T04:27:51.779Z (about 1 year ago)
- Topics: jpeg, zig
- Language: Zig
- Homepage:
- Size: 5.17 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# zjpeg
A JPEG decoder in pure Zig. It supports:
- Baseline and Progressive formats
- Gray, YCbCr, RGBA, and YCMK color formats.
Here's proof! The Mac image viewer on the left, and a SDL image viewer in Zig using `zjpeg`:

## Usage
See [`zjpeg.zig`](./src/zjpeg.zig) for an example with SDL.
## Development
Run using `zig`:
zig build run --
Or build and run:
zig build
./zig-out/bin/zjpeg
---