Documentation
¶
Overview ¶
Package payload turns what a codec, filter, or demuxer wrote into its caller-owned result into payload a stage may publish: the stage's own header over buffers it holds a reference to.
An adapter result is scratch the adapter may rewrite on its next call. A buffer in it that has an Owner is pooled, and its one reference passes to the stage as is. A buffer without one aliases adapter memory (reused output capacity, a decoder's reference pictures), so it is copied once into a pooled buffer. Either way the published bytes are never written again, which is what lets every downstream branch share them by reference.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DropFrames ¶
DropFrames releases the pooled references still left in result frames a stage did not publish (an emit failed midway), keeping scratch bytes.
func DropPacket ¶
DropPacket is DropFrames for one result packet.
func DropPackets ¶
DropPackets is DropFrames for result packets.
Types ¶
This section is empty.