png / jpeg: maxSide + yield docs (guide, API) and tested snippet; jpeg destuff calls the yield hook per 64 KB; F.model.loadTextures passes maxSide / yield / yieldRows / maxPixels to the image decoders; bench lines (4096^2 16-bit PNG full vs maxSide 1024, JPEG 1/4); build/ regenerated
init.luau (small, backward compatible): loadTextures forwards those four options to F.load.
This commit is contained in:
1 parent
64a2553c0c
commit
8d7f3e4d34
17 files changed
+2695
-1270
No files matched your search
+5
-1
@@ -49,7 +49,11 @@ one category. Extras:
|
||||
It also opens animated images (GIF / APNG / WebP) as videos; `F.video.fromImage(img)`,
|
||||
`F.video.fromFrames(images, delays?)` (an image sequence: `F.save(F.video.fromFrames(list, 1 / 25), "out.avi")`),
|
||||
`F.video.codecs` (the codec registry `codecs/video/Video`).
|
||||
- `F.model.loadTextures(scene, opts?)`: decodes embedded / referenced textures into `texture.image`.
|
||||
- `F.image.load(src, opts?)`: `opts.maxSide` decodes PNG (power-of-two box reduction) and JPEG (DCT scaling) straight
|
||||
to an image whose sides are at most n pixels, `opts.yield` is a cooperative yield hook (PNG every `opts.yieldRows`
|
||||
rows; JPEG every MCU row); see the image guide.
|
||||
- `F.model.loadTextures(scene, opts?)`: decodes embedded / referenced textures into `texture.image`; `opts.maxSide`,
|
||||
`opts.yield`, `opts.yieldRows` and `opts.maxPixels` reach the image decoders.
|
||||
- `F.cad.toBodies`, `F.cad.fromBodies`, `F.cad.tessellate`: STEP B-rep calls through the injected kernel
|
||||
(`F.plugins.brep`).
|
||||
- `F.data.null`: the JSON / YAML / TOML / msgpack / CBOR null.
|
||||
|
||||
Reference in new issue
Block a user