|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The data type for this allocatorpublic interface Allocator<T extends jcuda.jnpp.types.NppType>
Interface for an allocator. An allocator manages all memory
operations for an image, be it a CPU (host) or NPP (device)
image. Implementations of this interface are defined in
the ImageAllocatorsCPU
and ImageAllocatorsNPP
class.
Method Summary | |
---|---|
void |
Copy2D(jcuda.jnpp.TypedPointer<T> pDst,
long nDstPitch,
jcuda.jnpp.TypedPointer<T> pSrc,
long nSrcPitch,
long nWidth,
long nHeight)
2D copy operation for the specified memory blocks consisting of data with the type that is defined by this allocator. |
void |
DeviceToHostCopy2D(jcuda.jnpp.TypedPointer<T> pDst,
long nDstPitch,
jcuda.jnpp.TypedPointer<T> pSrc,
long nSrcPitch,
long nWidth,
long nHeight)
2D device-to-host copy for the specified memory blocks consisting of data with the type that is defined by this allocator. |
void |
Free2D(jcuda.jnpp.TypedPointer<T> pPixels)
Free the given memory |
void |
HostToDeviceCopy2D(jcuda.jnpp.TypedPointer<T> pDst,
long nDstPitch,
jcuda.jnpp.TypedPointer<T> pSrc,
long nSrcPitch,
long nWidth,
long nHeight)
2D host-to-device copy for the specified memory blocks consisting of data with the type that is defined by this allocator. |
jcuda.jnpp.TypedPointer<T> |
Malloc2D(int nWidth,
int nHeight,
int[] pPitch)
Allocate the specified memory block for the data type of this allocator. |
Method Detail |
---|
jcuda.jnpp.TypedPointer<T> Malloc2D(int nWidth, int nHeight, int[] pPitch)
nWidth
- The widthnHeight
- The heightpPitch
- Will contain the pitch
void Free2D(jcuda.jnpp.TypedPointer<T> pPixels)
pPixels
- The memoryvoid Copy2D(jcuda.jnpp.TypedPointer<T> pDst, long nDstPitch, jcuda.jnpp.TypedPointer<T> pSrc, long nSrcPitch, long nWidth, long nHeight)
pDst
- The destination pointernDstPitch
- The destination pitchpSrc
- The source pointernSrcPitch
- The source pitchnWidth
- The widthnHeight
- The heightvoid HostToDeviceCopy2D(jcuda.jnpp.TypedPointer<T> pDst, long nDstPitch, jcuda.jnpp.TypedPointer<T> pSrc, long nSrcPitch, long nWidth, long nHeight)
pDst
- The destination pointernDstPitch
- The destination pitchpSrc
- The source pointernSrcPitch
- The source pitchnWidth
- The widthnHeight
- The heightvoid DeviceToHostCopy2D(jcuda.jnpp.TypedPointer<T> pDst, long nDstPitch, jcuda.jnpp.TypedPointer<T> pSrc, long nSrcPitch, long nWidth, long nHeight)
pDst
- The destination pointernDstPitch
- The destination pitchpSrc
- The source pointernSrcPitch
- The source pitchnWidth
- The widthnHeight
- The height
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |