|
||||||||||
| 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 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(TypedPointer<T> pDst,
long nDstPitch,
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(TypedPointer<T> pDst,
long nDstPitch,
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(TypedPointer<T> pPixels)
Free the given memory |
void |
HostToDeviceCopy2D(TypedPointer<T> pDst,
long nDstPitch,
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. |
TypedPointer<T> |
Malloc2D(int nWidth,
int nHeight,
int[] pPitch)
Allocate the specified memory block for the data type of this allocator. |
| Method Detail |
|---|
TypedPointer<T> Malloc2D(int nWidth,
int nHeight,
int[] pPitch)
nWidth - The widthnHeight - The heightpPitch - Will contain the pitch
void Free2D(TypedPointer<T> pPixels)
pPixels - The memory
void Copy2D(TypedPointer<T> pDst,
long nDstPitch,
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
void HostToDeviceCopy2D(TypedPointer<T> pDst,
long nDstPitch,
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
void DeviceToHostCopy2D(TypedPointer<T> pDst,
long nDstPitch,
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 | |||||||||