video: frame reuse (opts.reuse, v:release, decoder:release) and the control tests
- codecs/video/Video/Pool: Images a decoder made, handed back and reused (only its own; fresh meta) - H264 / Vp8 / Mpeg2 output Images come from a Pool; H264 / Vp8 decoder:release, VideoCodecDecoder.release - Video.open: opts.reuse recycles the previous frame's Image at the next nextFrame; v:release(frame); the yuv Image under an rgba / scaled frame (never seen by the caller) goes back to the codec at once - tests/video/control.luau: yield hook (identical frames, H.264 / VP8 / MPEG-1, conversions), disposable packets in every container, skipDisposable bit-exact at the right index, reuse identical and recycled, fuzz - docs/guide/video.md: Skipping and reusing frames; docs/API.md
This commit is contained in:
1 parent
15e0dfcc86
commit
0b2d8774b9
10 files changed
+463
-27
No files matched your search
@@ -232,6 +232,8 @@ export type VideoCodecDecoder = {
|
||||
receive: (self: any) -> (Image? | false, number?, boolean?),
|
||||
flush: (self: any) -> (), -- end of stream: pictures held for reordering become available to receive()
|
||||
reset: (self: any) -> (), -- after a seek: drop references / held pictures
|
||||
-- an Image from receive() handed back for reuse (the caller is done with it); false if it was not this decoder's
|
||||
release: ((self: any, image: Image) -> boolean)?,
|
||||
}
|
||||
|
||||
-- Indices are 1-based everywhere (node, mesh, material, texture, ...). Accessor data is tightly packed (no stride, no
|
||||
|
||||
Reference in new issue
Block a user