PyNvCodec.PyBufferUploader

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

Overloaded function.

  1. __init__(self: PyNvCodec._PyNvCodec.PyBufferUploader, elem_size: int, num_elems: int, gpu_id: int) -> None

    Constructor method.

    param elem_size:

    single buffer element size in bytes

    param num_elems:

    number of elements in buffer

    param gpu_id:

    GPU to use for memcopy

  2. __init__(self: PyNvCodec._PyNvCodec.PyBufferUploader, elem_size: int, num_elems: int, context: int, stream: int) -> None

    Constructor method.

    param elem_size:

    single buffer element size in bytes

    param num_elems:

    number of elements in buffer

    param context:

    CUDA context to use

    param stream:

    CUDA stream to use

Methods

UploadSingleBuffer(self, array)

Perform HtoD memcopy.

__init__(*args, **kwargs)

Overloaded function.

UploadSingleBuffer(self: PyNvCodec._PyNvCodec.PyBufferUploader, array: numpy.ndarray[numpy.uint8]) PyNvCodec._PyNvCodec.CudaBuffer

Perform HtoD memcopy.

Parameters:

array – output numpy array

Returns:

True in case of success, False otherwise