Skip to main content

Module adapt

Module adapt 

Source
Expand description

Animation as a layer over the video model, both ways, through the real zencodec animation traits.

Turning planes into a packed canvas and back is a colour conversion, and colour conversion belongs to zenpixels-convert, not to a codec contract. The adapters take it as a RenderFrame / CaptureFrame; Gray8 is the identity for 8-bit monochrome.

Structs§

AnimationVideoEncoder
A full-canvas animation encoder over a video encoder and a muxer.
Gray8
The identity conversion for 8-bit monochrome: one luma plane to GRAY8_SRGB and back.
VideoAnimationDecoder
A composited-canvas animation view over a demuxed, decoded video: the first video track, in presentation order.

Enums§

AdaptError
Failure of an adapter. A is the first stage’s error (demuxer or encoder), B the second’s (decoder or muxer).

Traits§

CaptureFrame
Makes a frame from packed pixels: the step between the animation API and a video encoder.
RenderFrame
Writes a decoded frame onto a packed canvas: the step between a video decoder and the animation API.