View Source Evision.CUDA.BufferPool (Evision v0.2.9)
Summary
Types
@type t() :: %Evision.CUDA.BufferPool{ref: reference()}
Type that represents an CUDA.BufferPool
struct.
ref.
reference()
The underlying erlang resource variable.
Functions
@spec bufferPool(Keyword.t()) :: any() | {:error, String.t()}
@spec bufferPool(Evision.CUDA.Stream.t()) :: t() | {:error, String.t()}
BufferPool
Positional Arguments
- stream:
Evision.CUDA.Stream.t()
Return
- self:
Evision.CUDA.BufferPool.t()
Python prototype (for reference only):
BufferPool(stream) -> <cuda_BufferPool object>
@spec getAllocator(Keyword.t()) :: any() | {:error, String.t()}
@spec getAllocator(t()) :: reference() | {:error, String.t()}
getAllocator
Positional Arguments
- self:
Evision.CUDA.BufferPool.t()
Return
- retval:
GpuMat::Allocator
Python prototype (for reference only):
getAllocator() -> retval
@spec getBuffer(t(), {number(), number()}, integer()) :: Evision.CUDA.GpuMat.t() | {:error, String.t()}
getBuffer
Positional Arguments
- self:
Evision.CUDA.BufferPool.t()
- size:
Size
- type:
integer()
Return
- retval:
Evision.CUDA.GpuMat.t()
Python prototype (for reference only):
getBuffer(size, type) -> retval
@spec getBuffer(t(), integer(), integer(), integer()) :: Evision.CUDA.GpuMat.t() | {:error, String.t()}
getBuffer
Positional Arguments
- self:
Evision.CUDA.BufferPool.t()
- rows:
integer()
- cols:
integer()
- type:
integer()
Return
- retval:
Evision.CUDA.GpuMat.t()
Python prototype (for reference only):
getBuffer(rows, cols, type) -> retval