vpi.Container
- class vpi.Container
The container base class.
The container class is the base class of three types of containers:
vpi.Image,vpi.Arrayandvpi.Pyramid. The methods listed below can be used by any container class, providing different ways to access their contents.It has an internal class named
vpi.Container.Lockto represent the locked container.Hint
The
vpi.Container.Lockclass is used automatically behind the scenes to allow access to the container data using the as of a with statement.Methods
cpu(self)Get the container data in
CPU.cuda(self)Get the container data in
CUDA.lock(-> vpi.Container.Lock)Lock the container data.
lock_cpu(self[, mode])Lock the container data in
CPU.lock_cuda(self[, mode])Lock the container data in
CUDA.rlock(self, memtype)Lock the container data for
readaccess.rlock_cpu(self)rlock_cuda(self)rwlock(self, memtype)Lock the container data for
read-and-writeaccess.rwlock_cpu(self)Lock the container data for
read-and-writeaccess inCPU.rwlock_cuda(self)Lock the container data for
read-and-writeaccess inCUDA.to(self, memtype)Get the container data.
wlock(self, memtype)Lock the container data for
writeaccess.wlock_cpu(self)wlock_cuda(self)