Skip to main content

Module frames

Module frames 

Source
Expand description

Converts between VapourSynth’s strided plane buffers and the tightly packed rows core’s converters accept, plus the frame window core windowed algorithms request around each output frame.

Functions§

pack_plane
Copies src, a plane with row stride stride bytes, into a new tightly packed buffer of width_bytes * height bytes.
unpack_plane_into
Writes a tightly packed plane, src, back into dst, a strided buffer with row stride stride bytes. The reverse of pack_plane.
window_indices
The behind + 1 + ahead source frame indices for the window around output frame n, behind older and ahead newer, clamped so nothing runs off either end of a clip whose last valid index is last_frame.