@vestra-player/sdk - v1.11.3
    Preparing search index...

    Type Alias ConvolutionPlane

    One plane's kernel of a convolution VideoNode: each output sample is (sum of matrix × neighbourhood) × rdiv + bias, clipped to the sample range.

    1.5.39

    type ConvolutionPlane = {
        mode: "square" | "row" | "column";
        matrix: number[];
        rdiv: number;
        bias: number;
    }
    Index
    mode: "square" | "row" | "column"

    square: matrix is a 3×3, 5×5 or 7×7 kernel, row by row (9, 25 or 49 entries); row / column: a horizontal / vertical kernel with an odd number of entries up to 49.

    matrix: number[]

    Integers −1024–1024 (FFmpeg reads whole numbers only).

    rdiv: number

    Multiplier 0–256; 0 divides by the sum of the matrix (by 1 when it sums to 0), which keeps the brightness of a blur.

    bias: number

    Added after the multiplication, 0–65535 in the plane's sample units (128 is mid grey for 8-bit video).