blob: df9b7ce8ef271834f0cf79f7403db849fc7e0d1f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# stb_image
JPEG and PNG decoding for the command-line program. The inference library does
not link this code. Only JPEG and PNG are enabled, with a maximum dimension of
4096 pixels and RGB8 output.
Upstream: https://github.com/nothings/stb
Revision: `2c980bb59875b0d32144a71867fbdebb2f77cd20`
Upstream `stb_image.h` SHA-256:
`594c2fe35d49488b4382dbfaec8f98366defca819d916ac95becf3e75f4200b3`
The bundled header omits comments. In `stbi__resample_row_h_2`, the final even
output uses `(3 * input[w-1] + input[w-2] + 2) / 4`, consistent with the preceding
2:1 horizontal chroma interpolation. The image tests compare these right-edge
pixels with Pillow's JPEG decoder.
The MIT/public-domain license is in `LICENSE`.
|