docs: rosetta naming in README, docs, guide, licenses
This commit is contained in:
1 parent
22ddcd78fa
commit
753ae98d4a
20 files changed
+123
-123
No files matched your search
+2
-2
@@ -39,13 +39,13 @@ another format): `F.video.open` / `F.load` set it; calling a video format's `ope
|
||||
|
||||
## Adding a codec (H.264, ...)
|
||||
|
||||
The registry is static (Roblox has no dynamic require): add an entry to `BUILTIN` in `src/Formats/codecs/video/Video/init.luau`
|
||||
The registry is static (Roblox has no dynamic require): add an entry to `BUILTIN` in `src/Rosetta/codecs/video/Video/init.luau`
|
||||
with a `new` constructor that requires the codec lazily, or call `Video.register(entry)` at run time
|
||||
(`F.video.codecs.register`).
|
||||
|
||||
```luau
|
||||
{ id = "h264", name = "H.264 / AVC", fourcc = { "avc1", "avc3", "H264", ... }, matroska = { "V_MPEG4/ISO/AVC" },
|
||||
new = function(track, opts) return require("@formats/codecs/video/H264").newVideoDecoder(track, opts) end }
|
||||
new = function(track, opts) return require("@rosetta/codecs/video/H264").newVideoDecoder(track, opts) end }
|
||||
```
|
||||
|
||||
`new(track, opts)` returns a `Types.VideoCodecDecoder`:
|
||||
|
||||
Reference in new issue
Block a user