codecs: JPEG / MPEG-1/2 yield hooks (per MCU row, per slice), banded Mpeg2.toRgba with RGB clamp table; build.py: reserved child names pass (work from the userspace session)
This commit is contained in:
1 parent
551fd937b9
commit
05eedbc8cf
10 files changed
+246
-14
No files matched your search
@@ -45,6 +45,10 @@ export type DecodeOptions = {
|
||||
fields: boolean?, -- two JPEGs back to back are two fields of one frame (default: when the AVI1 segment says so)
|
||||
raw: boolean?, -- no colour conversion: 3 / 4 components as R, G, B (, A) bytes (default false; BLP1 BGRA JPEGs)
|
||||
maxPixels: number?, -- refuse larger images (default 2^26)
|
||||
-- a cooperative yield point, run after every MCU row of a scan, every block row of the IDCT and every 8 output
|
||||
-- rows: e.g. a function that calls coroutine.yield() when a time budget is spent, so one image is decoded over
|
||||
-- several frames (decode then runs inside a coroutine). Errors in it are ignored.
|
||||
yield: (() -> ())?,
|
||||
}
|
||||
export type EncodeOptions = {
|
||||
quality: number?, -- 1..100 (default 90), libjpeg's scaling of the T.81 annex K tables
|
||||
|
||||
Reference in new issue
Block a user