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

    Interface UpscalingReason

    Why the GPU's video upscaler does not work: a stable UpscalingReasonCode to branch on and a sentence to show, the same shape as RenderingReason.

    The plugin disables its upscaling item and shows why. message is the player's English text, naming the GPU and what the user can do (turn on GPU rendering, choose the other GPU, update the driver); code is for decisions.

    const { available, reason } = await plugin.video.upscaling.state();
    if (!available && reason) console.log(`${reason.code}: ${reason.message}`);

    0.5.16

    1.5.37

    interface UpscalingReason {
        code: UpscalingReasonCode;
        message: string;
        cause?: UpscalingDecodingCause;
        plugins?: readonly UpscalingPlugin[];
    }
    Index

    The reason as a stable kebab-case code; branch on this.

    message: string

    The reason as English text for people, for example with the GPU's name and what to change; never branch on it.

    With code decoding only: why the video is not decoded on the GPU that renders it (UpscalingDecodingCause). Absent with every other code, and from players before 0.5.25.

    0.5.25

    1.5.43

    plugins?: readonly UpscalingPlugin[]

    With cause copy-back only: the plugins whose video filters need the frames in memory, which is why the player switched to copy-back decoding, in the order the plugins started (each plugin once). Name them to the user, who can turn the filters off there. Empty when the copy-back decoding is not one the player chose for a filter (the user's own hwdec setting). Absent with any other cause, and from players before 0.5.25.

    0.5.25

    1.5.43