codecs: H.264 / Yuv / video registry work, docs/API + guide/video, yuv + mp4 tests (uncommitted work found in the checkout, owner unknown; tests pass on both runtimes)

This commit is contained in:
4DBug committed 2026-11-01 01:16:04 -05:00
1 parent 05eedbc8cf
commit 2956576d7f
12 files changed
+252 -3

No files matched your search

+3 -1
View File
@@ -44,7 +44,9 @@ VideoDecoder saved to an image format (`gif`, `apng`, `webp`) becomes an animate
`F.subtitle`, `F.music`, `F.playlist` each have `load`, `open`, `save` and `formats`: the calls above restricted to
one category. Extras:
- `F.video.open(src)` also opens animated images (GIF / APNG / WebP) as videos; `F.video.fromImage(img)`,
- `F.video.open(src, opts?)`: `opts.maxSide` shrinks the frames (longer side at most n pixels), `opts.yield` is a
cooperative yield point for slow codecs (H.264; see the video guide), `opts.audio = false` skips the audio track.
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`.