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

    Interface WireUpscalingState

    The GPU video upscaler's state as video.upscaling.state and video.upscaling.set answer it (also sent without enabled as the event video.upscaling.changed): what UpscalingState is made from.

    The player's wire shape (video.upscaling.state, video.upscaling.changed), part of the protocol, which is not semver: it can gain fields with a player version.

    1.7.0

    interface WireUpscalingState {
        available: boolean;
        reason: WireUpscalingReason | null;
        enabled: boolean;
        requested: boolean;
        factor: number | null;
        video?:
            | {
                width: number;
                height: number;
                displayWidth: number;
                displayHeight: number;
            }
            | null;
        area?: { width: number; height: number }
        | null;
        gpu?: string | null;
        hwdecCurrent?: string | null;
        inChain?: boolean;
    }
    Index
    available: boolean

    The upscaler works now.

    reason: WireUpscalingReason | null

    Why not, when available is false; else null.

    enabled: boolean

    This plugin asked for upscaling and has not turned it off.

    requested: boolean

    The player has the upscaler in the video filter chain now, for this plugin or another one.

    factor: number | null

    The scale factor the upscaler was asked for, in hundredths; null while nothing is requested.

    video?:
        | {
            width: number;
            height: number;
            displayWidth: number;
            displayHeight: number;
        }
        | null

    The video's size as the upscaler gets it; null while no video decodes.

    Type Declaration

    • { width: number; height: number; displayWidth: number; displayHeight: number }
      • width: number

        The frames' stored width in pixels.

      • height: number

        The frames' stored height in pixels.

      • displayWidth: number

        The width the video is meant to be shown at (non-square pixels).

      • displayHeight: number

        The height the video is meant to be shown at.

    • null
    area?: { width: number; height: number } | null

    The area the video is shown in, in pixels; null while the player shows no video area.

    Type Declaration

    • { width: number; height: number }
      • width: number

        Width in physical pixels.

      • height: number

        Height in physical pixels.

    • null
    gpu?: string | null

    The name of the GPU that renders; null in software rendering or where the player does not know it.

    hwdecCurrent?: string | null

    The hardware decoder in use, as mpv names it (no: software); null while no video decodes.

    inChain?: boolean

    The upscaler is in the player's video filter chain now, read from the chain itself.