Member Junction
    Preparing search index...

    One sampled frame to scale, rotate and encode.

    interface VideoEncodeRequest {
        Height: number;
        Kind: "encode";
        OutHeight: number;
        OutWidth: number;
        Planes: ArrayBuffer;
        Quality: number;
        RequestID: number;
        RotationDegrees: VideoRotationDegrees;
        Width: number;
    }
    Index

    Properties

    Height: number

    The stored frame's height in pixels.

    Kind: "encode"

    The message kind.

    OutHeight: number

    The encoded image's height, computed on the room's thread.

    OutWidth: number

    The encoded image's width, computed on the room's thread (upright, then capped for the source's kind).

    Planes: ArrayBuffer

    The frame's packed I420 planes (Y, then U, then V): a copy the host owns, in the transfer list.

    Quality: number

    JPEG quality, 1-100 (clamped by the worker).

    RequestID: number

    Increasing per host; echoed in the reply.

    RotationDegrees: VideoRotationDegrees

    Clockwise rotation the frame needs to stand upright.

    Width: number

    The stored frame's width in pixels.