PyNvCodec.PyFrameUploader

class PyNvCodec.PyFrameUploader
__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: PyNvCodec._PyNvCodec.PyFrameUploader, width: int, height: int, format: PyNvCodec._PyNvCodec.PixelFormat, gpu_id: int) -> None

    Constructor method.

    param width:

    target Surface width

    param height:

    target Surface height

    param format:

    target Surface pixel format

    param gpu_id:

    what GPU to use for upload.

  2. __init__(self: PyNvCodec._PyNvCodec.PyFrameUploader, width: int, height: int, format: PyNvCodec._PyNvCodec.PixelFormat, context: int, stream: int) -> None

    Constructor method.

    param width:

    target Surface width

    param height:

    target Surface height

    param format:

    target Surface pixel format

    param context:

    CUDA context to use for upload

    param stream:

    CUDA stream to use for upload

Methods

Format(self)

Get pixel format.

UploadSingleFrame(*args, **kwargs)

Overloaded function.

__init__(*args, **kwargs)

Overloaded function.

Format(self: PyNvCodec._PyNvCodec.PyFrameUploader) PyNvCodec._PyNvCodec.PixelFormat

Get pixel format.

UploadSingleFrame(*args, **kwargs)

Overloaded function.

  1. UploadSingleFrame(self: PyNvCodec._PyNvCodec.PyFrameUploader, frame: numpy.ndarray[numpy.uint8]) -> VPF::Surface

    Perform HtoD memcpy.

    param frame:

    input numpy array

    type frame:

    numpy.ndarray of type numpy.uint8

    return:

    Surface

    rtype:

    PyNvCodec.Surface

  2. UploadSingleFrame(self: PyNvCodec._PyNvCodec.PyFrameUploader, frame: numpy.ndarray[numpy.float32]) -> VPF::Surface

    Perform HtoD memcpy.

    param frame:

    input numpy array

    type frame:

    numpy.ndarray of type numpy.f

    return:

    Surface

    rtype:

    PyNvCodec.Surface