mediaforge - v2.2.0
    Preparing search index...

    Function buildHwScaleFilter

    • Build a GPU-accelerated scale filter.

      Throws for accelerations ffmpeg has no GPU scaler for (videotoolbox and the D3D/DXVA/VA-API-on-Windows paths do not ship one) rather than silently emitting a software scale the caller would think is accelerated.

      Parameters

      • opts: {
            accel: Hwaccel;
            width: number;
            height: number;
            format?: string;
            mode?: "fast_bilinear" | "bilinear" | "bicubic" | "neighbor" | "area";
        }
        • accel: Hwaccel
        • width: number
        • height: number
        • Optionalformat?: string

          Optional format string for VAAPI (e.g. 'nv12|cuda').

        • Optionalmode?: "fast_bilinear" | "bilinear" | "bicubic" | "neighbor" | "area"

      Returns string