From 14a95f0c183917437fbfedc9084308b212e0c50c Mon Sep 17 00:00:00 2001 From: Muaz Ahmad Date: Tue, 12 Dec 2023 16:02:06 +0500 Subject: [PATCH] README --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..4365b56 --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +# img-stream-enc + +continuous jpg encoder for piping raw YUV420P images to. Works well enough for 0.5 qual. For some reason anything higher tends to corrupt the output file. + +Zig std lib only, Uses SIMD Vector optimization + pre-computing coefficients for quantization. Bottleneck is on rle, huffman code and output. + +**Not intended for actual use**. Again higher qual tends to corrupt files, Corruption is progressive, and pixels start getting wonky well before, decoders complain, image is still usable though + +`zig build` to a bin. Usage is `img-stream-enc ` + +* `width`: pixel width of input image (must be multiple of 16) +* `height`: pixel height of input (multiple of 16) +* `quality`: quality factor, float between 0 and 1 +* `n_jobs`: number of threads to spawn for quantization