An open API service indexing awesome lists of open source software.

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

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`:
![demo](demo.png)

## 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

---