Skip to main content

stack

Function stack 

Source
pub fn stack(frames: &[VideoFrame], axis: VideoAxis) -> Result<VideoFrame>
Expand description

Join frames of matching cross-extent along one axis.

Along-axis extents of all but the last frame must be even so chroma offsets stay subsample-aligned.

ยงErrors

Returns an error for an empty batch, non-device-planar frames, mixed formats or cross-extents, odd alignment, or extent overflow.