5e484ad4ab
* Add new jpeg tests. * Resurrect old jpeg. * Fix Jpeg grayscale * Fix 4:1:1 scaling. * Better chunk scanner. * Fight progressive. * Fight restart markers. * Jpeg can now parse all of the test files. * Fuzzing and overflow checks * Make getBits* the only way to read the bits. * Make Quantiziation and IDCT happen only in one place. * Rename jpg folder to jpeg
7 lines
150 B
Nim
7 lines
150 B
Nim
import benchy, pixie/fileformats/jpg
|
|
|
|
let data = readFile("tests/fileformats/jpeg/jpeg420exif.jpg")
|
|
|
|
timeIt "pixie decode":
|
|
discard decodeJpg(data)
|