python_vali.PySurfaceResizer

class python_vali.PySurfaceResizer

CUDA-accelerated Surface resizer.

__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: python_vali._python_vali.PySurfaceResizer, format: python_vali._python_vali.PixelFormat, gpu_id: int) -> None

    Constructor method.

    param format:

    target Surface pixel format

    param gpu_id:

    what GPU to run resize on

  2. __init__(self: python_vali._python_vali.PySurfaceResizer, format: python_vali._python_vali.PixelFormat, stream: int) -> None

    Constructor method.

    param format:

    target Surface pixel format

    param stream:

    CUDA stream to use for resize

Methods

Run(self, src, dst)

Resize input Surface.

__init__(*args, **kwargs)

Overloaded function.

Run(self: python_vali._python_vali.PySurfaceResizer, src: VPF::Surface, dst: VPF::Surface) Tuple[bool, python_vali._python_vali.TaskExecInfo]

Resize input Surface.

Parameters:
  • src – input Surface. Must be of same format class instance was created with.

  • dst – output Surface. Must be of same format class instance was created with.

Returns:

tuple containing: success (Bool) True in case of success, False otherwise. info (TaskExecInfo) task execution information.

Return type:

tuple